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-04 04:12:59 -0700
commitb8c44acfa5b1fbc8b35e812bd6c23aa6d824c4b1 (patch)
tree34c34a5a3bec60ee415611c716b31ddb0cb5c7af /app/views/layouts/_header.html.haml
parentfa7b7425e7c53282472c1c9ce1cdc7272f55cfd4 (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