add Log out button, hide admin-only nav links if not admin
authorTom Clegg <tom@clinicalfuture.com>
Fri, 1 Feb 2013 06:20:00 +0000 (22:20 -0800)
committerTom Clegg <tom@clinicalfuture.com>
Fri, 1 Feb 2013 06:51:56 +0000 (22:51 -0800)
commitdb86d76c8b2751d4f558d19298ad3f7e45dd5243
tree3b9407b54cdc4dd769f727e9248df0b185ac6d7a
parent4fe932f760617054c213ee02d1fe7ab14461874c
add Log out button, hide admin-only nav links if not admin
12 files changed:
app/assets/javascripts/sessions.js.coffee [new file with mode: 0644]
app/assets/stylesheets/sessions.css.scss [new file with mode: 0644]
app/controllers/application_controller.rb
app/controllers/sessions_controller.rb [new file with mode: 0644]
app/helpers/application_helper.rb
app/helpers/sessions_helper.rb [new file with mode: 0644]
app/models/orvos_api_client.rb
app/views/layouts/application.html.erb
app/views/sessions/index.html.erb [new file with mode: 0644]
config/routes.rb
test/functional/sessions_controller_test.rb [new file with mode: 0644]
test/unit/helpers/sessions_helper_test.rb [new file with mode: 0644]