Fix git repo navigation and info links. Refs #2162

This commit is contained in:
Pavel Chipiga 2011-10-31 19:06:39 +02:00
parent 07c2ab13c2
commit d6e7e28f23
2 changed files with 14 additions and 6 deletions

View File

@ -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)
= link_to @current_branch.name, tree_path(@project, :treeish => @current_branch.name)

View File

@ -1,9 +1,13 @@
.secondary-navigation
.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()" }