summaryrefslogtreecommitdiff
path: root/app/views/projects/commits/show.html.haml
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2014-06-14 19:02:16 +0300
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2014-06-14 19:02:16 +0300
commit55795b7c297c08b4b3f7f6dc3ee98cd0d29c6748 (patch)
tree54e6c8c911125ed352123a90466c962f36f04173 /app/views/projects/commits/show.html.haml
parent1555146adf7e23085f04eda76f3c7f213a2e774c (diff)
downloadgitlab-ce-55795b7c297c08b4b3f7f6dc3ee98cd0d29c6748.tar.gz
Improve breadcrumbs
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Diffstat (limited to 'app/views/projects/commits/show.html.haml')
-rw-r--r--app/views/projects/commits/show.html.haml18
1 files changed, 13 insertions, 5 deletions
diff --git a/app/views/projects/commits/show.html.haml b/app/views/projects/commits/show.html.haml
index 3a4f304a255..482a845558f 100644
--- a/app/views/projects/commits/show.html.haml
+++ b/app/views/projects/commits/show.html.haml
@@ -1,10 +1,18 @@
= render "head"
-- if @path.present?
- %ul.breadcrumb.commit-breadcrumb
- %li.light
- History for
- = commits_breadcrumbs
+.tree-ref-holder
+ = render 'shared/ref_switcher', destination: 'commits'
+
+- if current_user && current_user.private_token
+ .commits-feed-holder.hidden-xs.hidden-sm
+ = link_to project_commits_path(@project, @ref, {format: :atom, private_token: current_user.private_token}), title: "Feed", class: 'btn' do
+ %i.icon-rss
+ Commits feed
+
+%ul.breadcrumb.repo-breadcrumb
+ = commits_breadcrumbs
+ %li.active
+ commits
%div{id: dom_id(@project)}
#commits-list= render "commits"