mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2024-11-27 17:45:40 -05:00
Added login button and fixed bg color
This commit is contained in:
parent
538344094b
commit
3f1547488c
3 changed files with 23 additions and 0 deletions
|
@ -33,6 +33,13 @@
|
||||||
#filter-button, #create-alert-button
|
#filter-button, #create-alert-button
|
||||||
float: right
|
float: right
|
||||||
|
|
||||||
|
#login-link, #logout-button
|
||||||
|
float: right
|
||||||
|
color: #333333
|
||||||
|
display: inline-block
|
||||||
|
:visited
|
||||||
|
color: #333333
|
||||||
|
|
||||||
#tagline, .hiring-call-to-action
|
#tagline, .hiring-call-to-action
|
||||||
width: 100%
|
width: 100%
|
||||||
text-align: center
|
text-align: center
|
||||||
|
|
|
@ -6,6 +6,12 @@ block content
|
||||||
h1(data-i18n="employers.hire_developers_not_credentials") Hire developers, not credentials.
|
h1(data-i18n="employers.hire_developers_not_credentials") Hire developers, not credentials.
|
||||||
button.btn.get-started-button Get started
|
button.btn.get-started-button Get started
|
||||||
else
|
else
|
||||||
|
if me.get('anonymous')
|
||||||
|
a#login-link(href="/account") Login
|
||||||
|
br
|
||||||
|
else
|
||||||
|
a#logout-button(data-i18n="login.log_out") Logout
|
||||||
|
br
|
||||||
#filter
|
#filter
|
||||||
.panel-group#filter_panel
|
.panel-group#filter_panel
|
||||||
.panel.panel-default
|
.panel.panel-default
|
||||||
|
|
|
@ -24,6 +24,8 @@ module.exports = class EmployersView extends View
|
||||||
'change #filters input': 'onFilterChanged'
|
'change #filters input': 'onFilterChanged'
|
||||||
'click #filter-button': 'applyFilters'
|
'click #filter-button': 'applyFilters'
|
||||||
'change #select_all_checkbox': 'handleSelectAllChange'
|
'change #select_all_checkbox': 'handleSelectAllChange'
|
||||||
|
'click .get-started-button': 'openSignupModal'
|
||||||
|
'click .navbar-brand': 'restoreBodyColor'
|
||||||
|
|
||||||
constructor: (options) ->
|
constructor: (options) ->
|
||||||
super options
|
super options
|
||||||
|
@ -38,7 +40,13 @@ module.exports = class EmployersView extends View
|
||||||
afterInsert: ->
|
afterInsert: ->
|
||||||
super()
|
super()
|
||||||
_.delay @checkForEmployerSignupHash, 500
|
_.delay @checkForEmployerSignupHash, 500
|
||||||
|
#fairly hacky, change this in the future
|
||||||
|
@originalBackgroundColor = $("body").css 'background-color'
|
||||||
|
$("body").css 'background-color', '#B4B4B4'
|
||||||
|
|
||||||
|
restoreBodyColor: ->
|
||||||
|
$("body").css 'background-color', @originalBackgroundColor
|
||||||
|
|
||||||
onFilterChanged: ->
|
onFilterChanged: ->
|
||||||
@resetFilters()
|
@resetFilters()
|
||||||
that = @
|
that = @
|
||||||
|
@ -58,6 +66,8 @@ module.exports = class EmployersView extends View
|
||||||
if filterValues.length is 0
|
if filterValues.length is 0
|
||||||
@filters[filterName] = @defaultFilters[filterName]
|
@filters[filterName] = @defaultFilters[filterName]
|
||||||
|
|
||||||
|
openSignupModal: ->
|
||||||
|
@openModalView new EmployerSignupView
|
||||||
handleSelectAllChange: (e) ->
|
handleSelectAllChange: (e) ->
|
||||||
checkedState = e.currentTarget.checked
|
checkedState = e.currentTarget.checked
|
||||||
$("#filters :input").each ->
|
$("#filters :input").each ->
|
||||||
|
|
Loading…
Reference in a new issue