Fix git repo navigation and info links. Refs #2162
This commit is contained in:
parent
07c2ab13c2
commit
d6e7e28f23
|
@ -6,14 +6,18 @@
|
|||
\:
|
||||
= @project.name
|
||||
|
||||
%p
|
||||
%b
|
||||
= t("activerecord.attributes.project.repository")
|
||||
\:
|
||||
= git_repo_url @project.git_repo_name
|
||||
|
||||
- if @current_tag.present?
|
||||
%p
|
||||
%b Tag:
|
||||
|
||||
= link_to @current_tag.name, tree_path(@project, :treeish => @current_tag.name)
|
||||
|
||||
- if @current_branch.present?
|
||||
%p
|
||||
%b Branch:
|
||||
|
||||
= link_to @current_branch.name, tree_path(@project, :treeish => @current_branch.name)
|
|
@ -1,9 +1,13 @@
|
|||
.secondary-navigation
|
||||
%ul.wat-cf
|
||||
%li.first.active= link_to t("layout.git.repositories.source"), project_repo_path(@project)
|
||||
%li= link_to t("layout.git.repositories.commits"), commits_path(@project, :treeish => @treeish)
|
||||
%li.first= link_to t("layout.projects.list"), projects_path
|
||||
%li= link_to t("layout.projects.new"), new_project_path
|
||||
%li= link_to t("layout.projects.show"), project_path(@project)
|
||||
%li.active= link_to t("layout.git.repositories.source"), project_repo_path(@project)
|
||||
%li= link_to t("layout.projects.build"), build_project_path(@project)
|
||||
|
||||
%ul#git_submenu.sub-wat-cf.wat-cf
|
||||
%li= link_to t("layout.git.repositories.commits"), commits_path(@project, :treeish => @treeish)
|
||||
%li
|
||||
%a{ :href => "#", :onmouseover => "menu.open('branches')", :onmouseout => "menu.close_time()" } Branches
|
||||
#branches{ :onmouseover => "menu.cancel_close_time()", :onmouseout => "menu.close_time()" }
|
||||
|
|
Loading…
Reference in New Issue