Commit 93401ef9887b297343d5bf33b4fbf39f13090894

Authored by Dmitriy Zaporozhets
1 parent 813814f0

Few css improvements

app/views/commits/_commit_box.html.haml
@@ -5,10 +5,10 @@ @@ -5,10 +5,10 @@
5 %span.btn.disabled.grouped 5 %span.btn.disabled.grouped
6 %i.icon-comment 6 %i.icon-comment
7 = @notes_count 7 = @notes_count
8 - = link_to patch_project_commit_path(@project, @commit.id), class: "btn small grouped" do 8 + = link_to patch_project_commit_path(@project, @commit.id), class: "btn small grouped" do
9 %i.icon-download-alt 9 %i.icon-download-alt
10 - Get Patch  
11 - = link_to tree_project_ref_path(@project, @commit.id), class: "browse-button primary grouped" do 10 + Get Patch
  11 + = link_to tree_project_ref_path(@project, @commit.id), class: "browse-button primary grouped" do
12 %strong Browse Code » 12 %strong Browse Code »
13 %h3.commit-title.page_title 13 %h3.commit-title.page_title
14 = gfm @commit.title 14 = gfm @commit.title
app/views/issues/_form.html.haml
1 %div.issue-form-holder 1 %div.issue-form-holder
2 - %h3= @issue.new_record? ? "New Issue" : "Edit Issue ##{@issue.id}" 2 + %h3.page_title= @issue.new_record? ? "New Issue" : "Edit Issue ##{@issue.id}"
3 = form_for [@project, @issue], remote: request.xhr? do |f| 3 = form_for [@project, @issue], remote: request.xhr? do |f|
4 -if @issue.errors.any? 4 -if @issue.errors.any?
5 .alert-message.block-message.error 5 .alert-message.block-message.error
@@ -9,26 +9,26 @@ @@ -9,26 +9,26 @@
9 .issue_form_box 9 .issue_form_box
10 .issue_title 10 .issue_title
11 .clearfix 11 .clearfix
12 - = f.label :title do 12 + = f.label :title do
13 %strong= "Subject *" 13 %strong= "Subject *"
14 .input 14 .input
15 = f.text_field :title, maxlength: 255, class: "xxlarge" 15 = f.text_field :title, maxlength: 255, class: "xxlarge"
16 .issue_middle_block 16 .issue_middle_block
17 .issue_assignee 17 .issue_assignee
18 - = f.label :assignee_id do 18 + = f.label :assignee_id do
19 %i.icon-user 19 %i.icon-user
20 Assign to 20 Assign to
21 .input= f.select(:assignee_id, @project.users.all.collect {|p| [ p.name, p.id ] }, { include_blank: "Select a user" }) 21 .input= f.select(:assignee_id, @project.users.all.collect {|p| [ p.name, p.id ] }, { include_blank: "Select a user" })
22 .issue_milestone 22 .issue_milestone
23 - = f.label :milestone_id do 23 + = f.label :milestone_id do
24 %i.icon-time 24 %i.icon-time
25 Milestone 25 Milestone
26 .input= f.select(:milestone_id, @project.milestones.active.all.collect {|p| [ p.title, p.id ] }, { include_blank: "Select milestone" }) 26 .input= f.select(:milestone_id, @project.milestones.active.all.collect {|p| [ p.title, p.id ] }, { include_blank: "Select milestone" })
27 27
28 .issue_description 28 .issue_description
29 .clearfix 29 .clearfix
30 - = f.label :label_list do  
31 - %i.icon-tag 30 + = f.label :label_list do
  31 + %i.icon-tag
32 Labels 32 Labels
33 .input 33 .input
34 = f.text_field :label_list, maxlength: 2000, class: "xxlarge" 34 = f.text_field :label_list, maxlength: 2000, class: "xxlarge"
app/views/issues/index.html.haml
@@ -7,6 +7,7 @@ @@ -7,6 +7,7 @@
7 .span5 7 .span5
8 - if can? current_user, :write_issue, @project 8 - if can? current_user, :write_issue, @project
9 = link_to new_project_issue_path(@project), class: "right btn small", title: "New Issue", remote: true do 9 = link_to new_project_issue_path(@project), class: "right btn small", title: "New Issue", remote: true do
  10 + %i.icon-plus
10 New Issue 11 New Issue
11 = form_tag search_project_issues_path(@project), method: :get, remote: true, id: "issue_search_form", class: :right do 12 = form_tag search_project_issues_path(@project), method: :get, remote: true, id: "issue_search_form", class: :right do
12 = hidden_field_tag :project_id, @project.id, { id: 'project_id' } 13 = hidden_field_tag :project_id, @project.id, { id: 'project_id' }
@@ -21,7 +22,7 @@ @@ -21,7 +22,7 @@
21 22
22 23
23 .issues_bulk_update.hide 24 .issues_bulk_update.hide
24 - = form_tag bulk_update_project_issues_path(@project), method: :post do 25 + = form_tag bulk_update_project_issues_path(@project), method: :post do
25 %span.update_issues_text Update selected issues with   26 %span.update_issues_text Update selected issues with  
26 .left 27 .left
27 = select_tag('update[status]', options_for_select(['open', 'closed']), prompt: "Status") 28 = select_tag('update[status]', options_for_select(['open', 'closed']), prompt: "Status")
@@ -53,7 +54,7 @@ @@ -53,7 +54,7 @@
53 = select_tag(:milestone_id, options_from_collection_for_select([unassigned_filter] + @project.milestones.order("id desc").all, "id", "title", params[:milestone_id]), prompt: "Milestone") 54 = select_tag(:milestone_id, options_from_collection_for_select([unassigned_filter] + @project.milestones.order("id desc").all, "id", "title", params[:milestone_id]), prompt: "Milestone")
54 = hidden_field_tag :f, params[:f] 55 = hidden_field_tag :f, params[:f]
55 .clearfix 56 .clearfix
56 - 57 +
57 %ul#issues-table.unstyled.issues_table 58 %ul#issues-table.unstyled.issues_table
58 = render "issues" 59 = render "issues"
59 60
app/views/milestones/_form.html.haml
1 -%h3= @milestone.new_record? ? "New Milestone" : "Edit Milestone ##{@milestone.id}" 1 +%h3.page_title= @milestone.new_record? ? "New Milestone" : "Edit Milestone ##{@milestone.id}"
2 .back_link 2 .back_link
3 = link_to project_milestones_path(@project) do 3 = link_to project_milestones_path(@project) do
4 ← To milestones 4 ← To milestones
@@ -17,12 +17,12 @@ @@ -17,12 +17,12 @@
17 = f.label :title, "Title", class: "control-label" 17 = f.label :title, "Title", class: "control-label"
18 .controls 18 .controls
19 = f.text_field :title, maxlength: 255, class: "input-xlarge" 19 = f.text_field :title, maxlength: 255, class: "input-xlarge"
20 - %p.help-block Required 20 + %p.hint Required
21 .control-group 21 .control-group
22 = f.label :description, "Description", class: "control-label" 22 = f.label :description, "Description", class: "control-label"
23 .controls 23 .controls
24 = f.text_area :description, maxlength: 2000, class: "input-xlarge", rows: 10 24 = f.text_area :description, maxlength: 2000, class: "input-xlarge", rows: 10
25 - %p.help-block Markdown is enabled. 25 + %p.hint Markdown is enabled.
26 .span6 26 .span6
27 .control-group 27 .control-group
28 = f.label :due_date, "Due Date", class: "control-label" 28 = f.label :due_date, "Due Date", class: "control-label"