Commit 5413960b authored by Douwe Maan's avatar Douwe Maan

Fix headers of milestone and snippet show pages

parent 4493d3fd
......@@ -2,15 +2,16 @@
- header_title "Milestones", dashboard_milestones_path
.issuable-details
.page-title
.issuable-title
.issue-box{ class: "issue-box-#{@milestone.closed? ? 'closed' : 'open'}" }
- if @milestone.closed?
Closed
- else
Open
Milestone #{@milestone.title}
%span.issuable-id
Milestone #{@milestone.title}
.gray-content-block.middle-block
.gray-content-block.second-block
%h2.issue-title
= markdown escape_once(@milestone.title), pipeline: :single_line
......
......@@ -2,13 +2,14 @@
= render "header_title"
.issuable-details
.page-title
.issuable-title
.issue-box{ class: "issue-box-#{@milestone.closed? ? 'closed' : 'open'}" }
- if @milestone.closed?
Closed
- else
Open
Milestone #{@milestone.title}
%span.issuable-id
Milestone #{@milestone.title}
.pull-right
- if can?(current_user, :admin_milestones, @group)
- if @milestone.active?
......@@ -16,7 +17,7 @@
- else
= link_to 'Reopen Milestone', group_milestone_path(@group, @milestone.safe_title, title: @milestone.title, milestone: {state_event: :activate }), method: :put, class: "btn btn-grouped btn-reopen"
.gray-content-block.middle-block
.gray-content-block.second-block
%h2.issue-title
= markdown escape_once(@milestone.title), pipeline: :single_line
......
......@@ -2,7 +2,7 @@
= render "header_title"
.issuable-details
.page-title
.issuable-title
.issue-box{ class: issue_box_class(@milestone) }
- if @milestone.closed?
Closed
......@@ -10,7 +10,8 @@
Expired
- else
Open
Milestone ##{@milestone.iid}
%span.issuable-id
Milestone ##{@milestone.iid}
- if @milestone.expires_at
%span.creator
·
......@@ -30,7 +31,7 @@
%i.fa.fa-trash-o
Delete
.gray-content-block.middle-block
.gray-content-block.second-block
%h2.issue-title
= markdown escape_once(@milestone.title), pipeline: :single_line
%div
......
.issuable-details
.page-title
.issuable-title
.snippet-box.has_tooltip{class: visibility_level_color(@snippet.visibility_level), title: snippet_visibility_level_description(@snippet.visibility_level, @snippet), data: { container: 'body' }}
= visibility_level_icon(@snippet.visibility_level, fw: false)
= visibility_level_label(@snippet.visibility_level)
Snippet ##{@snippet.id}
%span.issuable-id
Snippet ##{@snippet.id}
%span.creator
· created by #{link_to_member(@project, @snippet.author, size: 24)}
·
......@@ -20,6 +21,6 @@
- else
= render "snippets/actions"
.gray-content-block.middle-block
.gray-content-block.second-block
%h2.issue-title
= markdown escape_once(@snippet.title), pipeline: :single_line
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment