From a66446ed8857018ef9f71fd9258e6a3cadc58ae6 Mon Sep 17 00:00:00 2001 From: ValessioBrito Date: Thu, 22 Jan 2015 20:29:07 -0200 Subject: [PATCH] add context administration menu --- header.html.erb | 13 +++++++++++++ style.css | 27 +++++++++++++++++++++++++++ 2 files changed, 40 insertions(+), 0 deletions(-) diff --git a/header.html.erb b/header.html.erb index a46c320..6c7fde2 100644 --- a/header.html.erb +++ b/header.html.erb @@ -122,3 +122,16 @@ + +<% if logged_in? && profile && profile.admins.include?(user) %> +
+ <%= _('Administration') %> + +
+<% end %> diff --git a/style.css b/style.css index d6eefcd..60c9d66 100644 --- a/style.css +++ b/style.css @@ -3507,3 +3507,30 @@ li.profile-activity-item.upload_image .activity-gallery-images-count-1 img { max text-align: center; } + +#manage-admin { + position: relative; + float: right; + width: 150px; + margin-top: 10px; + margin-right: 10px; + z-index: 9; +} + +#manage-admin i { + display: block; + width: 16px; + height: 16px; + float: left; + margin-right: 5px; +} + +#manage-admin #manage-admin-link { z-index: 2; } + +#manage-admin ul { + width: 100%; + margin: 0px; + top: -10px; + padding-top: 30px; + z-index: 1; +} -- libgit2 0.21.2