Replace various "active tab" checks with nav_link

Also remove now-unused tab_class helper
This commit is contained in:
Robert Speicher 2012-09-26 16:14:17 -04:00
parent f064c84019
commit 36f68140d1
11 changed files with 61 additions and 121 deletions

View file

@ -1,9 +1,8 @@
%ul.nav.nav-tabs
%li
= render partial: 'shared/ref_switcher', locals: {destination: 'tree', path: @path}
%li{class: "#{'active' if (controller.controller_name == "tree") }"}
= link_to project_tree_path(@project, @ref) do
Source
= nav_link(controller: :tree) do
= link_to 'Source', project_tree_path(@project, @ref)
%li.right
.input-prepend.project_clone_holder
%button{class: "btn small active", :"data-clone" => @project.ssh_url_to_repo} SSH