summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAzul <azul@leap.se>2012-10-19 12:09:59 +0200
committerAzul <azul@leap.se>2012-10-19 12:09:59 +0200
commit93974e99296641822c734a3c192cc6c550efc696 (patch)
treeb3fd48ceff284ab0aa5ed81c351e0ec1936a3cc8
parentd9a510fa2126c29f0af58c6bbeff35802777eee6 (diff)
moved login navigation to the right
-rw-r--r--app/views/layouts/_navigation.html.haml12
-rw-r--r--users/app/views/sessions/_nav.html.haml8
2 files changed, 12 insertions, 8 deletions
diff --git a/app/views/layouts/_navigation.html.haml b/app/views/layouts/_navigation.html.haml
index 04d2356..b75eed7 100644
--- a/app/views/layouts/_navigation.html.haml
+++ b/app/views/layouts/_navigation.html.haml
@@ -1,10 +1,6 @@
= link_to "Leap Web", root_path, :class => 'brand'
%ul.nav
- - if current_user
- %li
- = link_to t(:logout), logout_path
- - else
- %li
- = link_to t(:login), login_path
- %li
- = link_to t(:signup), signup_path
+ // = render '/tickets/nav'
+
+%ul.nav.pull-right
+ = render '/sessions/nav'
diff --git a/users/app/views/sessions/_nav.html.haml b/users/app/views/sessions/_nav.html.haml
new file mode 100644
index 0000000..a5397bd
--- /dev/null
+++ b/users/app/views/sessions/_nav.html.haml
@@ -0,0 +1,8 @@
+- if current_user
+ %li
+ = link_to t(:logout), logout_path
+- else
+ %li
+ = link_to t(:login), login_path
+ %li
+ = link_to t(:signup), signup_path