Commit a66446ed8857018ef9f71fd9258e6a3cadc58ae6
1 parent
71983e2e
Exists in
master
and in
2 other branches
add context administration menu
Showing
2 changed files
with
40 additions
and
0 deletions
Show diff stats
header.html.erb
... | ... | @@ -122,3 +122,16 @@ |
122 | 122 | </div><!-- #sobre --> |
123 | 123 | </div><!-- #header --> |
124 | 124 | </div><!-- .header-content --> |
125 | + | |
126 | +<% if logged_in? && profile && profile.admins.include?(user) %> | |
127 | +<div id="manage-admin" class="manage-groups"> | |
128 | + <a href="#" id="manage-admin-link" class="simplemenu-trigger" title="Manage admin"><strong><span class="ui-icon ui-icon-triangle-1-s " style="float:left; margin-right:7px;"></span><%= _('Administration') %></strong></a> | |
129 | + <ul class="simplemenu-submenu"> | |
130 | + <li class="simplemenu-item"><a id="cmm-admin" class="quick-admin-link" href='<%= "/myprofile/#{profile.identifier}" %>'><i class="icon-menu-admin"></i><%= _('Control Panel') %></a></li> | |
131 | + <li class="simplemenu-item"><a id="tasks-admin" class="quick-admin-link" href='<%= "/myprofile/#{profile.identifier}/tasks" %>'><i class="icon-menu-mail"></i><%= _('Tasks') %></a></li> | |
132 | + <li class="simplemenu-item"><a id="edit-blocks" class="quick-admin-link" href='<%= "/myprofile/#{profile.identifier}/profile_design" %>'><i class="icon-edit"></i><%= _('Edit sideboxes') %></a></li> | |
133 | + <li class="simplemenu-item"><a id="upload-image" class="quick-admin-link" href='<%= "/myprofile/#{profile.identifier}/cms/upload_files" %>'><i class="icon-ok"></i><%= _('Publish media') %></a></li> | |
134 | + <li class="simplemenu-item"><a id="cms-content" class="quick-admin-link" href='<%= "/myprofile/#{profile.identifier}/cms" %>'><i class="icon-photos"></i><%= _('Content management') %></a> | |
135 | + </ul> | |
136 | +</div><!-- #manage-admin --> | |
137 | +<% end %> | ... | ... |
style.css
... | ... | @@ -3507,3 +3507,30 @@ li.profile-activity-item.upload_image .activity-gallery-images-count-1 img { max |
3507 | 3507 | text-align: center; |
3508 | 3508 | } |
3509 | 3509 | |
3510 | + | |
3511 | +#manage-admin { | |
3512 | + position: relative; | |
3513 | + float: right; | |
3514 | + width: 150px; | |
3515 | + margin-top: 10px; | |
3516 | + margin-right: 10px; | |
3517 | + z-index: 9; | |
3518 | +} | |
3519 | + | |
3520 | +#manage-admin i { | |
3521 | + display: block; | |
3522 | + width: 16px; | |
3523 | + height: 16px; | |
3524 | + float: left; | |
3525 | + margin-right: 5px; | |
3526 | +} | |
3527 | + | |
3528 | +#manage-admin #manage-admin-link { z-index: 2; } | |
3529 | + | |
3530 | +#manage-admin ul { | |
3531 | + width: 100%; | |
3532 | + margin: 0px; | |
3533 | + top: -10px; | |
3534 | + padding-top: 30px; | |
3535 | + z-index: 1; | |
3536 | +} | ... | ... |