Welcome to mirror list, hosted at ThFree Co, Russian Federation.

index.html.haml « commits « views « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: f7e8b087b22b8bc81a19a4477665ccc3a94dd411 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
%div
  %h3
    .left
      = form_tag project_commits_path(@project), :method => :get do
        = select_tag "branch", options_for_select(@repo.heads.map(&:name), @branch), :onchange => "this.form.submit();", :class => "", :prompt => "Branches"
     
    .left.prepend-1
      = form_tag project_commits_path(@project), :method => :get do
        = select_tag "tag", options_for_select(@project.tags, @branch), :onchange => "this.form.submit();", :class => "", :prompt => "Tags"
    = text_field_tag "ssh", @project.url_to_repo, :class => ["ssh_project_url", "one_click_select"]
    .clear
  - if params[:path]
    %h3{:style => "color:#555"} /#{params[:path]}
  %div{:id => dom_id(@project)}
    = render "commits"


:javascript
  $(function(){
    $.cookie('branch', '#{params[:branch]}', { expires: 1 });
    $.cookie('tag', '#{params[:tag]}', { expires: 1 });
  });