buttons margin fixed
This commit is contained in:
parent
4e0c2f00d3
commit
df6a75d52d
|
@ -108,11 +108,6 @@ table a code {
|
|||
margin-top: 5px;
|
||||
}
|
||||
|
||||
.btn.padded {
|
||||
margin-right:3px;
|
||||
padding:4px 10px 4px;
|
||||
}
|
||||
|
||||
.loading {
|
||||
margin:20px auto;
|
||||
background: url(ajax_loader.gif) no-repeat center center;
|
||||
|
@ -399,6 +394,16 @@ p.time {
|
|||
padding:2px 6px;
|
||||
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;
|
||||
color:#444;
|
||||
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-head
|
||||
.right
|
||||
= link_to tree_project_ref_path(@project, @commit.id), :class => "browse-button primary" do
|
||||
%strong Browse Code »
|
||||
- if @notes_count > 0
|
||||
%span.btn.disabled
|
||||
%span.btn.disabled.grouped
|
||||
%i.icon-comment
|
||||
= @notes_count
|
||||
|
||||
= link_to patch_project_commit_path(@project, @commit.id), :class => "btn small" do
|
||||
= link_to patch_project_commit_path(@project, @commit.id), :class => "btn small grouped" do
|
||||
%i.icon-download-alt
|
||||
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
|
||||
= commit_msg_with_link_to_issues(@project, @commit.title)
|
||||
- if @commit.description.present?
|
||||
|
|
|
@ -29,6 +29,9 @@
|
|||
%span{:id => "#{diff.new_path}"}= diff.new_path
|
||||
%br/
|
||||
.diff_file_content
|
||||
-# Skipp all non non-supported blobs
|
||||
- next unless file.respond_to?('text?')
|
||||
|
||||
- if file.text?
|
||||
= render "commits/text_file", :diff => diff, :index => i
|
||||
- elsif file.image?
|
||||
|
|
|
@ -12,5 +12,5 @@
|
|||
= time_ago_in_words(event.created_at)
|
||||
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
|
||||
|
|
|
@ -3,19 +3,18 @@
|
|||
.icon
|
||||
.right
|
||||
- issue.labels.each do |label|
|
||||
%span.label.label-issue
|
||||
%span.label.label-issue.grouped
|
||||
%i.icon-tag
|
||||
= label.name
|
||||
|
||||
- if issue.notes.any?
|
||||
%span.btn.small.disabled.padded
|
||||
%span.btn.small.disabled.grouped
|
||||
%i.icon-comment
|
||||
= issue.notes.count
|
||||
- if can? current_user, :modify_issue, issue
|
||||
- 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
|
||||
= 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
|
||||
%i.icon-edit
|
||||
Edit
|
||||
|
|
|
@ -2,15 +2,15 @@
|
|||
.right
|
||||
.left
|
||||
- if merge_request.merged?
|
||||
%span.btn.small.disabled.padded
|
||||
%span.btn.small.disabled.grouped
|
||||
%strong
|
||||
%i.icon-ok
|
||||
= "MERGED"
|
||||
- if merge_request.notes.any?
|
||||
%span.btn.small.disabled.padded
|
||||
%span.btn.small.disabled.grouped
|
||||
%i.icon-comment
|
||||
= merge_request.notes.count
|
||||
%span.btn.small.disabled.padded
|
||||
%span.btn.small.disabled.grouped
|
||||
= merge_request.source_branch
|
||||
→
|
||||
= merge_request.target_branch
|
||||
|
|
|
@ -7,19 +7,19 @@
|
|||
|
||||
%span.right
|
||||
- if @merge_request.merged?
|
||||
%span.btn.small.disabled.padded
|
||||
%span.btn.small.disabled.grouped
|
||||
%strong
|
||||
%i.icon-ok
|
||||
= "MERGED"
|
||||
- if can?(current_user, :modify_merge_request, @merge_request)
|
||||
- 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
|
||||
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
|
||||
Edit
|
||||
|
||||
|
|
|
@ -1,11 +1,11 @@
|
|||
%li{:class => "milestone", :id => dom_id(milestone) }
|
||||
.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?
|
||||
%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
|
||||
= 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
|
||||
%h4.row_title
|
||||
= truncate(milestone.title, :length => 100)
|
||||
|
|
|
@ -4,9 +4,9 @@
|
|||
= @milestone.expires_at
|
||||
|
||||
%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)
|
||||
= 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
|
||||
Edit
|
||||
|
||||
|
|
|
@ -13,14 +13,14 @@
|
|||
.span4.right
|
||||
.right
|
||||
- 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
|
||||
Download
|
||||
- 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
|
||||
- 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
|
||||
|
||||
= render "events/event_last_push", :event => @last_push
|
||||
|
|
|
@ -2,9 +2,9 @@
|
|||
= @wiki.title
|
||||
%span.right
|
||||
- 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
|
||||
= 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
|
||||
%hr
|
||||
.wiki_content
|
||||
|
|
Loading…
Reference in a new issue