Commit e29a25662dac63c2f1ef0041eeb7b6fd24d3896e

Authored by Dmitriy Zaporozhets
1 parent b4868a89

fixed 1click repo url selection

Showing 1 changed file with 23 additions and 23 deletions   Show diff stats
app/views/layouts/project.html.haml
@@ -16,29 +16,29 @@ @@ -16,29 +16,29 @@
16 .project-container 16 .project-container
17 .project-sidebar 17 .project-sidebar
18 .fixed 18 .fixed
19 - %input.git-url.text{:id => "", :name => "", :readonly => "", :type => "text", :value => @project.url_to_repo}  
20 - %aside  
21 - = link_to "History", project_path(@project), :class => current_page?(:controller => "projects", :action => "show", :id => @project) ? "current" : nil  
22 - = link_to "Tree", tree_project_path(@project), :class => current_page?(:controller => "projects", :action => "tree", :id => @project) ? "current" : nil  
23 - = link_to "Commits", project_commits_path(@project), :class => current_page?(:controller => "commits", :action => "index", :project_id => @project) ? "current" : nil  
24 - = link_to team_project_path(@project), :class => (current_page?(:controller => "projects", :action => "team", :id => @project) || controller.controller_name == "team_members") ? "current" : nil do  
25 - Team  
26 - - if @project.users_projects.count > 0  
27 - %span{ :class => "number" }= @project.users_projects.count  
28 - = link_to project_issues_path(@project), :class => (controller.controller_name == "issues") ? "current" : nil do  
29 - Issues  
30 - - if @project.issues.opened.count > 0  
31 - %span{ :class => "number" }= @project.issues.opened.count  
32 - = link_to wall_project_path(@project), :class => current_page?(:controller => "projects", :action => "wall", :id => @project) ? "current" : nil do  
33 - Wall  
34 - - if @project.common_notes.count > 0  
35 - %span{ :class => "number" }= @project.common_notes.count  
36 - = link_to project_snippets_path(@project), :class => (controller.controller_name == "snippets") ? "current" : nil do  
37 - Snippets  
38 - - if @project.snippets.count > 0  
39 - %span{ :class => "number" }= @project.snippets.non_expired.count  
40 - - if @commit  
41 - = link_to truncate(commit_name(@project,@commit), :length => 15), project_commit_path(@project, :id => @commit.id), :class => current_page?(:controller => "commits", :action => "show", :project_id => @project, :id => @commit.id) ? "current" : nil 19 + %input.git-url.text{:id => "", :name => "", :readonly => "", :type => "text", :value => @project.url_to_repo, :class => "one_click_select"}
  20 + %aside
  21 + = link_to "History", project_path(@project), :class => current_page?(:controller => "projects", :action => "show", :id => @project) ? "current" : nil
  22 + = link_to "Tree", tree_project_path(@project), :class => current_page?(:controller => "projects", :action => "tree", :id => @project) ? "current" : nil
  23 + = link_to "Commits", project_commits_path(@project), :class => current_page?(:controller => "commits", :action => "index", :project_id => @project) ? "current" : nil
  24 + = link_to team_project_path(@project), :class => (current_page?(:controller => "projects", :action => "team", :id => @project) || controller.controller_name == "team_members") ? "current" : nil do
  25 + Team
  26 + - if @project.users_projects.count > 0
  27 + %span{ :class => "number" }= @project.users_projects.count
  28 + = link_to project_issues_path(@project), :class => (controller.controller_name == "issues") ? "current" : nil do
  29 + Issues
  30 + - if @project.issues.opened.count > 0
  31 + %span{ :class => "number" }= @project.issues.opened.count
  32 + = link_to wall_project_path(@project), :class => current_page?(:controller => "projects", :action => "wall", :id => @project) ? "current" : nil do
  33 + Wall
  34 + - if @project.common_notes.count > 0
  35 + %span{ :class => "number" }= @project.common_notes.count
  36 + = link_to project_snippets_path(@project), :class => (controller.controller_name == "snippets") ? "current" : nil do
  37 + Snippets
  38 + - if @project.snippets.count > 0
  39 + %span{ :class => "number" }= @project.snippets.non_expired.count
  40 + - if @commit
  41 + = link_to truncate(commit_name(@project,@commit), :length => 15), project_commit_path(@project, :id => @commit.id), :class => current_page?(:controller => "commits", :action => "show", :project_id => @project, :id => @commit.id) ? "current" : nil
42 42
43 .project-content 43 .project-content
44 = yield 44 = yield