Add 'breadcrumbs' helper for Commit breadcrumb links

Closes #1731
This commit is contained in:
Robert Speicher 2012-11-01 17:58:13 -04:00
parent b1be377fb0
commit e60185699b
2 changed files with 26 additions and 8 deletions

View file

@ -2,14 +2,7 @@
- if @path.present?
%ul.breadcrumb
%li
%span.arrow
= link_to project_commits_path(@project) do
= @project.name
%span.divider
\/
%li
%a{href: "#"}= @path.split("/").join(" / ")
= breadcrumbs
%div{id: dom_id(@project)}
#commits_list= render "commits"