diff options
author | Annabel Dunstone Gray <annabel.dunstone@gmail.com> | 2017-06-27 23:30:15 +0300 |
---|---|---|
committer | Annabel Dunstone Gray <annabel.dunstone@gmail.com> | 2017-06-28 17:58:35 +0300 |
commit | ef722faa955a755b2a73efbacdc8a2ca17e399b2 (patch) | |
tree | 68321ce4aae3e136b8e9f0e0887577261d394cee /app/views/layouts/nav/_new_project_sidebar.html.haml | |
parent | fb093e8b2e0057c1a0da541fc228f19507a7d4b8 (diff) |
Add context header to sidebar
Diffstat (limited to 'app/views/layouts/nav/_new_project_sidebar.html.haml')
-rw-r--r-- | app/views/layouts/nav/_new_project_sidebar.html.haml | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/app/views/layouts/nav/_new_project_sidebar.html.haml b/app/views/layouts/nav/_new_project_sidebar.html.haml index f85781737aa..de0f4e3d2bc 100644 --- a/app/views/layouts/nav/_new_project_sidebar.html.haml +++ b/app/views/layouts/nav/_new_project_sidebar.html.haml @@ -1,5 +1,10 @@ .nav-sidebar - can_edit = can?(current_user, :admin_project, @project) + .context-header + .avatar-container.s40.project-avatar + = project_icon(@project, alt: @project.name, class: 'avatar s40 avatar-tile') + .project-title + = @project.name %ul.sidebar-top-level-items = nav_link(path: ['projects#show', 'projects#activity', 'cycle_analytics#show'], html_options: { class: 'home' }) do = link_to project_path(@project), title: 'Project', class: 'shortcuts-project' do |