_head.html.haml 801 Bytes
Newer Older
1 2
%ul.nav.nav-tabs
  %li
3 4
    = 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"
5 6
      = hidden_field_tag :destination, "tree"
      = hidden_field_tag :path, params[:path]
7
  %li{class: "#{'active' if (controller.controller_name == "refs") }"}
8
    = link_to tree_project_ref_path(@project, @ref) do
9
      Source
10 11 12 13 14
  %li.right
    .input-prepend.project_clone_holder
      %button{class: "btn small active", :"data-clone" => @project.ssh_url_to_repo} SSH
      %button{class: "btn small", :"data-clone" => @project.http_url_to_repo} HTTP
      = text_field_tag :project_clone, @project.url_to_repo, class: "one_click_select span5"