refactor buttons pt2
This commit is contained in:
parent
033aa1a885
commit
fb617c61b9
49 changed files with 90 additions and 90 deletions
|
@ -1,7 +1,7 @@
|
|||
%li{class: "milestone milestone-#{milestone.closed ? 'closed' : 'open'}", id: dom_id(milestone) }
|
||||
.right
|
||||
- if can?(current_user, :admin_milestone, milestone.project) and milestone.open?
|
||||
= link_to edit_project_milestone_path(milestone.project, milestone), class: "btn small edit-milestone-link grouped" do
|
||||
= link_to edit_project_milestone_path(milestone.project, milestone), class: "btn btn-small edit-milestone-link grouped" do
|
||||
%i.icon-edit
|
||||
Edit
|
||||
%h4
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
%h3.page_title
|
||||
Milestones
|
||||
- if can? current_user, :admin_milestone, @project
|
||||
= link_to "New Milestone", new_project_milestone_path(@project), class: "right btn small", title: "New Milestone"
|
||||
= link_to "New Milestone", new_project_milestone_path(@project), class: "right btn btn-small", title: "New Milestone"
|
||||
%br
|
||||
%div.ui-box
|
||||
.title
|
||||
|
|
|
@ -10,12 +10,12 @@
|
|||
.span6
|
||||
.right
|
||||
- unless @milestone.closed
|
||||
= link_to new_project_issue_path(@project, issue: { milestone_id: @milestone.id }), class: "btn small grouped", title: "New Issue" do
|
||||
= link_to new_project_issue_path(@project, issue: { milestone_id: @milestone.id }), class: "btn btn-small grouped", title: "New Issue" do
|
||||
%i.icon-plus
|
||||
New Issue
|
||||
= 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 grouped" do
|
||||
= link_to edit_project_milestone_path(@project, @milestone), class: "btn btn-small grouped" do
|
||||
%i.icon-edit
|
||||
Edit
|
||||
|
||||
|
@ -25,7 +25,7 @@
|
|||
%hr
|
||||
%p
|
||||
%span All issues for this milestone are closed. You may close milestone now.
|
||||
= link_to 'Close Milestone', project_milestone_path(@project, @milestone, milestone: {closed: true }), method: :put, class: "btn small btn-remove"
|
||||
= link_to 'Close Milestone', project_milestone_path(@project, @milestone, milestone: {closed: true }), method: :put, class: "btn btn-small btn-remove"
|
||||
|
||||
.ui-box.ui-box-show
|
||||
.ui-box-head
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue