gitlabhq/app/views/refs/tree.html.haml

17 lines
662 B
Plaintext
Raw Normal View History

2012-04-10 07:51:08 +02:00
%ul.nav.nav-tabs
%li
= form_tag switch_project_refs_path(@project), :method => :get, :class => "project-refs-form", :remote => true do
= select_tag "ref", grouped_options_refs, :onchange => "$(this.form).trigger('submit');", :class => "project-refs-select"
= hidden_field_tag :destination, "tree"
= hidden_field_tag :path, params[:path]
%li{:class => "#{'active' if (controller.controller_name == "refs") }"}
= link_to tree_project_ref_path(@project, @ref) do
Code
2011-11-16 06:38:53 +01:00
#tree-holder= render :partial => "tree", :locals => {:repo => @repo, :commit => @commit, :tree => @tree}
2011-12-12 19:08:04 +01:00
:javascript
$(function() {
Tree.init();
});