summaryrefslogtreecommitdiff
path: root/app/views/layouts/_header.html.haml
diff options
context:
space:
mode:
authorelijah <elijah@riseup.net>2013-07-02 23:19:38 -0700
committerelijah <elijah@riseup.net>2013-07-02 23:19:38 -0700
commitfcd9c579866e7d17891c4d1426ef7f230d16f1c5 (patch)
tree2a849dea556c4e66e73e21ab97482f7cd55b90df /app/views/layouts/_header.html.haml
parent96206389a863f105bd0b37dcdb9d00b7c30d8b51 (diff)
cleaned up application layout and some minor css.
Diffstat (limited to 'app/views/layouts/_header.html.haml')
-rw-r--r--app/views/layouts/_header.html.haml10
1 files changed, 8 insertions, 2 deletions
diff --git a/app/views/layouts/_header.html.haml b/app/views/layouts/_header.html.haml
index aa4054b..854ab40 100644
--- a/app/views/layouts/_header.html.haml
+++ b/app/views/layouts/_header.html.haml
@@ -1,3 +1,9 @@
-- if user
- %strong.user_address
+- if admin?
+ %ul.nav.nav-tabs
+ %li{:class => ("active" if controller?('users', 'email_settings', 'overviews') || params[:user_id])}
+ = link_to t(:users), users_path
+ %li{:class => ("active" if controller?('tickets') && !params[:user_id])}
+ = link_to t(:tickets), tickets_path
+- if user && @show_navigation
+ .user_heading
= user.email_address