Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
coopwire-hypothesis
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
孙灵跃 Leon Sun
coopwire-hypothesis
Commits
dacbab28
Commit
dacbab28
authored
Jul 29, 2014
by
Aron Carroll
Committed by
Randall Leeds
Aug 21, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove unimplemented templates and directives
We're only implementing the account form for the moment.
parent
d1bf6b1d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
43 deletions
+0
-43
directives.coffee
h/static/scripts/directives.coffee
+0
-43
No files found.
h/static/scripts/directives.coffee
View file @
dacbab28
...
...
@@ -368,14 +368,6 @@ match = ->
restrict
:
'A'
require
:
'ngModel'
confirmPasswordCheck
=
[
'$resource'
,
(
$resource
)
->
link
:
(
scope
,
elem
,
attr
,
ctrl
)
->
return
unless
ctrl
?
# Check password against server.
restrict
:
'A'
require
:
'ngModel'
]
accountManagement
=
[
'$filter'
,
'flash'
,
'profile'
,
(
$filter
,
flash
,
profile
)
->
link
:
(
scope
,
elem
,
attr
,
ctrl
)
->
scope
.
emailCheck
=
->
...
...
@@ -437,38 +429,6 @@ accountManagement = ['$filter', 'flash', 'profile', ($filter, flash, profile) ->
templateUrl
:
'account_management.html'
]
accountProfile
=
->
# This is the acount profile stuff that will eventually be outside of the settings panel.
# Rational for keeping it in the settings panel (temporarily):
# 1. We might as well write the back end for this stuff, then when I do the front end stuff for profiles we'll
# have the backend work started.
# 2. As a directive it is extremely easy to move this around and get it out of the side bar.
link
:
(
scope
,
elem
,
attr
,
ctrl
)
->
scope
.
editProfile
=
->
# Switches profile into edit mode.
return
controller
:
(
$scope
)
->
$scope
.
demoData
=
# Is there any thing else we should be collecting for now?
name
:
"Jake Hartnell"
password
:
"password"
location
:
"Berkeley, CA"
bio
:
"A short bio..."
website
:
"http://jakehartnell.com"
gravatar
:
""
restrict
:
'C'
templateUrl
:
'profile.html'
settings
=
->
# Question: Should each setting be it's own directive?
link
:
(
scope
,
elem
,
attr
,
ctrl
)
->
return
controller
:
(
$scope
)
->
return
restrict
:
'C'
templateUrl
:
'settings.html'
angular
.
module
(
'h.directives'
,
[
'ngSanitize'
,
'ngTagsInput'
])
.
directive
(
'formValidate'
,
formValidate
)
.
directive
(
'fuzzytime'
,
fuzzytime
)
...
...
@@ -482,7 +442,4 @@ angular.module('h.directives', ['ngSanitize', 'ngTagsInput'])
.
directive
(
'repeatAnim'
,
repeatAnim
)
.
directive
(
'whenscrolled'
,
whenscrolled
)
.
directive
(
'match'
,
match
)
.
directive
(
'confirmPasswordCheck'
,
confirmPasswordCheck
)
.
directive
(
'accountManagement'
,
accountManagement
)
.
directive
(
'accountProfile'
,
accountProfile
)
.
directive
(
'settings'
,
settings
)
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment