buttons margin fixed
This commit is contained in:
parent
4e0c2f00d3
commit
df6a75d52d
|
@ -108,11 +108,6 @@ table a code {
|
||||||
margin-top: 5px;
|
margin-top: 5px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.btn.padded {
|
|
||||||
margin-right:3px;
|
|
||||||
padding:4px 10px 4px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.loading {
|
.loading {
|
||||||
margin:20px auto;
|
margin:20px auto;
|
||||||
background: url(ajax_loader.gif) no-repeat center center;
|
background: url(ajax_loader.gif) no-repeat center center;
|
||||||
|
@ -399,6 +394,16 @@ p.time {
|
||||||
padding:2px 6px;
|
padding:2px 6px;
|
||||||
margin:2px;
|
margin:2px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
&.grouped {
|
||||||
|
margin-right:7px;
|
||||||
|
float:left;
|
||||||
|
}
|
||||||
|
|
||||||
|
&.padded {
|
||||||
|
margin-right:3px;
|
||||||
|
padding:4px 10px 4px;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -189,6 +189,12 @@ a:focus {
|
||||||
padding:4px 6px;
|
padding:4px 6px;
|
||||||
color:#444;
|
color:#444;
|
||||||
text-shadow:0 0 1px #fff;
|
text-shadow:0 0 1px #fff;
|
||||||
|
|
||||||
|
&.grouped {
|
||||||
|
float: left;
|
||||||
|
margin-right: 6px;
|
||||||
|
padding: 6px;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1,17 +1,15 @@
|
||||||
.commit-box{class: @commit.parents.count > 1 ? "merge-commit" : ""}
|
.commit-box{class: @commit.parents.count > 1 ? "merge-commit" : ""}
|
||||||
.commit-head
|
.commit-head
|
||||||
.right
|
.right
|
||||||
= link_to tree_project_ref_path(@project, @commit.id), :class => "browse-button primary" do
|
|
||||||
%strong Browse Code »
|
|
||||||
- if @notes_count > 0
|
- if @notes_count > 0
|
||||||
%span.btn.disabled
|
%span.btn.disabled.grouped
|
||||||
%i.icon-comment
|
%i.icon-comment
|
||||||
= @notes_count
|
= @notes_count
|
||||||
|
= link_to patch_project_commit_path(@project, @commit.id), :class => "btn small grouped" do
|
||||||
= link_to patch_project_commit_path(@project, @commit.id), :class => "btn small" do
|
|
||||||
%i.icon-download-alt
|
%i.icon-download-alt
|
||||||
Get Patch
|
Get Patch
|
||||||
|
= link_to tree_project_ref_path(@project, @commit.id), :class => "browse-button primary grouped" do
|
||||||
|
%strong Browse Code »
|
||||||
%h3.commit-title.page_title
|
%h3.commit-title.page_title
|
||||||
= commit_msg_with_link_to_issues(@project, @commit.title)
|
= commit_msg_with_link_to_issues(@project, @commit.title)
|
||||||
- if @commit.description.present?
|
- if @commit.description.present?
|
||||||
|
|
|
@ -29,6 +29,9 @@
|
||||||
%span{:id => "#{diff.new_path}"}= diff.new_path
|
%span{:id => "#{diff.new_path}"}= diff.new_path
|
||||||
%br/
|
%br/
|
||||||
.diff_file_content
|
.diff_file_content
|
||||||
|
-# Skipp all non non-supported blobs
|
||||||
|
- next unless file.respond_to?('text?')
|
||||||
|
|
||||||
- if file.text?
|
- if file.text?
|
||||||
= render "commits/text_file", :diff => diff, :index => i
|
= render "commits/text_file", :diff => diff, :index => i
|
||||||
- elsif file.image?
|
- elsif file.image?
|
||||||
|
|
|
@ -12,5 +12,5 @@
|
||||||
= time_ago_in_words(event.created_at)
|
= time_ago_in_words(event.created_at)
|
||||||
ago.
|
ago.
|
||||||
|
|
||||||
= link_to new_mr_path_from_push_event(event), :title => "New Merge Request", :class => "btn small padded primary" do
|
= link_to new_mr_path_from_push_event(event), :title => "New Merge Request", :class => "btn small grouped primary" do
|
||||||
Create Merge Request
|
Create Merge Request
|
||||||
|
|
|
@ -3,19 +3,18 @@
|
||||||
.icon
|
.icon
|
||||||
.right
|
.right
|
||||||
- issue.labels.each do |label|
|
- issue.labels.each do |label|
|
||||||
%span.label.label-issue
|
%span.label.label-issue.grouped
|
||||||
%i.icon-tag
|
%i.icon-tag
|
||||||
= label.name
|
= label.name
|
||||||
|
|
||||||
- if issue.notes.any?
|
- if issue.notes.any?
|
||||||
%span.btn.small.disabled.padded
|
%span.btn.small.disabled.grouped
|
||||||
%i.icon-comment
|
%i.icon-comment
|
||||||
= issue.notes.count
|
= issue.notes.count
|
||||||
- if can? current_user, :modify_issue, issue
|
- if can? current_user, :modify_issue, issue
|
||||||
- if issue.closed
|
- if issue.closed
|
||||||
= link_to 'Reopen', project_issue_path(issue.project, issue, :issue => {:closed => false }, :status_only => true), :method => :put, :class => "btn small padded", :remote => true
|
= link_to 'Reopen', project_issue_path(issue.project, issue, :issue => {:closed => false }, :status_only => true), :method => :put, :class => "btn small grouped", :remote => true
|
||||||
- else
|
- else
|
||||||
= link_to 'Resolve', project_issue_path(issue.project, issue, :issue => {:closed => true }, :status_only => true), :method => :put, :class => "success btn small padded", :remote => true
|
= link_to 'Resolve', project_issue_path(issue.project, issue, :issue => {:closed => true }, :status_only => true), :method => :put, :class => "success btn small grouped", :remote => true
|
||||||
= link_to edit_project_issue_path(issue.project, issue), :class => "btn small edit-issue-link", :remote => true do
|
= link_to edit_project_issue_path(issue.project, issue), :class => "btn small edit-issue-link", :remote => true do
|
||||||
%i.icon-edit
|
%i.icon-edit
|
||||||
Edit
|
Edit
|
||||||
|
|
|
@ -2,15 +2,15 @@
|
||||||
.right
|
.right
|
||||||
.left
|
.left
|
||||||
- if merge_request.merged?
|
- if merge_request.merged?
|
||||||
%span.btn.small.disabled.padded
|
%span.btn.small.disabled.grouped
|
||||||
%strong
|
%strong
|
||||||
%i.icon-ok
|
%i.icon-ok
|
||||||
= "MERGED"
|
= "MERGED"
|
||||||
- if merge_request.notes.any?
|
- if merge_request.notes.any?
|
||||||
%span.btn.small.disabled.padded
|
%span.btn.small.disabled.grouped
|
||||||
%i.icon-comment
|
%i.icon-comment
|
||||||
= merge_request.notes.count
|
= merge_request.notes.count
|
||||||
%span.btn.small.disabled.padded
|
%span.btn.small.disabled.grouped
|
||||||
= merge_request.source_branch
|
= merge_request.source_branch
|
||||||
→
|
→
|
||||||
= merge_request.target_branch
|
= merge_request.target_branch
|
||||||
|
|
|
@ -7,19 +7,19 @@
|
||||||
|
|
||||||
%span.right
|
%span.right
|
||||||
- if @merge_request.merged?
|
- if @merge_request.merged?
|
||||||
%span.btn.small.disabled.padded
|
%span.btn.small.disabled.grouped
|
||||||
%strong
|
%strong
|
||||||
%i.icon-ok
|
%i.icon-ok
|
||||||
= "MERGED"
|
= "MERGED"
|
||||||
- if can?(current_user, :modify_merge_request, @merge_request)
|
- if can?(current_user, :modify_merge_request, @merge_request)
|
||||||
- if @merge_request.open?
|
- if @merge_request.open?
|
||||||
= link_to raw_project_merge_request_path(@project, @merge_request), :class => "btn padded" do
|
= link_to raw_project_merge_request_path(@project, @merge_request), :class => "btn grouped" do
|
||||||
%i.icon-download-alt
|
%i.icon-download-alt
|
||||||
Get Patch
|
Get Patch
|
||||||
|
|
||||||
= link_to 'Close', project_merge_request_path(@project, @merge_request, :merge_request => {:closed => true }, :status_only => true), :method => :put, :class => "btn padded danger", :title => "Close merge request"
|
= link_to 'Close', project_merge_request_path(@project, @merge_request, :merge_request => {:closed => true }, :status_only => true), :method => :put, :class => "btn grouped danger", :title => "Close merge request"
|
||||||
|
|
||||||
= link_to edit_project_merge_request_path(@project, @merge_request), :class => "btn padded" do
|
= link_to edit_project_merge_request_path(@project, @merge_request), :class => "btn grouped" do
|
||||||
%i.icon-edit
|
%i.icon-edit
|
||||||
Edit
|
Edit
|
||||||
|
|
||||||
|
|
|
@ -1,11 +1,11 @@
|
||||||
%li{:class => "milestone", :id => dom_id(milestone) }
|
%li{:class => "milestone", :id => dom_id(milestone) }
|
||||||
.right
|
.right
|
||||||
- if milestone.issues.count > 0
|
|
||||||
= link_to 'Browse Issues', project_issues_path(milestone.project, :milestone_id => milestone.id), :class => "btn small"
|
|
||||||
- if milestone.issues.any?
|
- if milestone.issues.any?
|
||||||
%span.btn.small.disabled.padded= pluralize milestone.issues.count, 'issues'
|
%span.btn.small.disabled.grouped= pluralize milestone.issues.count, 'issues'
|
||||||
|
- if milestone.issues.count > 0
|
||||||
|
= link_to 'Browse Issues', project_issues_path(milestone.project, :milestone_id => milestone.id), :class => "btn small grouped"
|
||||||
- if can? current_user, :admin_milestone, milestone.project
|
- if can? current_user, :admin_milestone, milestone.project
|
||||||
= link_to 'Edit', edit_project_milestone_path(milestone.project, milestone), :class => "btn small edit-milestone-link"
|
= link_to 'Edit', edit_project_milestone_path(milestone.project, milestone), :class => "btn small edit-milestone-link grouped"
|
||||||
= link_to project_milestone_path(milestone.project, milestone) do
|
= link_to project_milestone_path(milestone.project, milestone) do
|
||||||
%h4.row_title
|
%h4.row_title
|
||||||
= truncate(milestone.title, :length => 100)
|
= truncate(milestone.title, :length => 100)
|
||||||
|
|
|
@ -4,9 +4,9 @@
|
||||||
= @milestone.expires_at
|
= @milestone.expires_at
|
||||||
|
|
||||||
%span.right
|
%span.right
|
||||||
= link_to 'Browse Issues', project_issues_path(@milestone.project, :milestone_id => @milestone.id), :class => "btn edit-milestone-link small"
|
= link_to 'Browse Issues', project_issues_path(@milestone.project, :milestone_id => @milestone.id), :class => "btn edit-milestone-link small grouped"
|
||||||
- if can?(current_user, :admin_milestone, @project)
|
- if can?(current_user, :admin_milestone, @project)
|
||||||
= link_to edit_project_milestone_path(@project, @milestone), :class => "btn small" do
|
= link_to edit_project_milestone_path(@project, @milestone), :class => "btn small grouped" do
|
||||||
%i.icon-edit
|
%i.icon-edit
|
||||||
Edit
|
Edit
|
||||||
|
|
||||||
|
|
|
@ -13,14 +13,14 @@
|
||||||
.span4.right
|
.span4.right
|
||||||
.right
|
.right
|
||||||
- if can? current_user, :download_code, @project
|
- if can? current_user, :download_code, @project
|
||||||
= link_to archive_project_repository_path(@project), :class => "btn small padded" do
|
= link_to archive_project_repository_path(@project), :class => "btn small grouped" do
|
||||||
%i.icon-download-alt
|
%i.icon-download-alt
|
||||||
Download
|
Download
|
||||||
- if @project.merge_requests_enabled && can?(current_user, :write_merge_request, @project)
|
- if @project.merge_requests_enabled && can?(current_user, :write_merge_request, @project)
|
||||||
= link_to new_project_merge_request_path(@project), :title => "New Merge Request", :class => "btn small padded" do
|
= link_to new_project_merge_request_path(@project), :title => "New Merge Request", :class => "btn small grouped" do
|
||||||
Merge Request
|
Merge Request
|
||||||
- if @project.issues_enabled && can?(current_user, :write_issue, @project)
|
- if @project.issues_enabled && can?(current_user, :write_issue, @project)
|
||||||
= link_to new_project_issue_path(@project), :title => "New Issue", :class => "btn small" do
|
= link_to new_project_issue_path(@project), :title => "New Issue", :class => "btn small grouped" do
|
||||||
Issue
|
Issue
|
||||||
|
|
||||||
= render "events/event_last_push", :event => @last_push
|
= render "events/event_last_push", :event => @last_push
|
||||||
|
|
|
@ -2,9 +2,9 @@
|
||||||
= @wiki.title
|
= @wiki.title
|
||||||
%span.right
|
%span.right
|
||||||
- if can? current_user, :write_wiki, @project
|
- if can? current_user, :write_wiki, @project
|
||||||
= link_to history_project_wiki_path(@project, @wiki), :class => "btn small padded" do
|
= link_to history_project_wiki_path(@project, @wiki), :class => "btn small grouped" do
|
||||||
History
|
History
|
||||||
= link_to edit_project_wiki_path(@project, @wiki), :class => "btn small" do
|
= link_to edit_project_wiki_path(@project, @wiki), :class => "btn small grouped" do
|
||||||
Edit
|
Edit
|
||||||
%hr
|
%hr
|
||||||
.wiki_content
|
.wiki_content
|
||||||
|
|
Loading…
Reference in a new issue