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

Fix headers of milestone and snippet show pages

parent 4493d3fd
...@@ -2,15 +2,16 @@ ...@@ -2,15 +2,16 @@
- header_title "Milestones", dashboard_milestones_path - header_title "Milestones", dashboard_milestones_path
.issuable-details .issuable-details
.page-title .issuable-title
.issue-box{ class: "issue-box-#{@milestone.closed? ? 'closed' : 'open'}" } .issue-box{ class: "issue-box-#{@milestone.closed? ? 'closed' : 'open'}" }
- if @milestone.closed? - if @milestone.closed?
Closed Closed
- else - else
Open Open
Milestone #{@milestone.title} %span.issuable-id
Milestone #{@milestone.title}
.gray-content-block.middle-block .gray-content-block.second-block
%h2.issue-title %h2.issue-title
= markdown escape_once(@milestone.title), pipeline: :single_line = markdown escape_once(@milestone.title), pipeline: :single_line
......
...@@ -2,13 +2,14 @@ ...@@ -2,13 +2,14 @@
= render "header_title" = render "header_title"
.issuable-details .issuable-details
.page-title .issuable-title
.issue-box{ class: "issue-box-#{@milestone.closed? ? 'closed' : 'open'}" } .issue-box{ class: "issue-box-#{@milestone.closed? ? 'closed' : 'open'}" }
- if @milestone.closed? - if @milestone.closed?
Closed Closed
- else - else
Open Open
Milestone #{@milestone.title} %span.issuable-id
Milestone #{@milestone.title}
.pull-right .pull-right
- if can?(current_user, :admin_milestones, @group) - if can?(current_user, :admin_milestones, @group)
- if @milestone.active? - if @milestone.active?
...@@ -16,7 +17,7 @@ ...@@ -16,7 +17,7 @@
- else - 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" = 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 %h2.issue-title
= markdown escape_once(@milestone.title), pipeline: :single_line = markdown escape_once(@milestone.title), pipeline: :single_line
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
= render "header_title" = render "header_title"
.issuable-details .issuable-details
.page-title .issuable-title
.issue-box{ class: issue_box_class(@milestone) } .issue-box{ class: issue_box_class(@milestone) }
- if @milestone.closed? - if @milestone.closed?
Closed Closed
...@@ -10,7 +10,8 @@ ...@@ -10,7 +10,8 @@
Expired Expired
- else - else
Open Open
Milestone ##{@milestone.iid} %span.issuable-id
Milestone ##{@milestone.iid}
- if @milestone.expires_at - if @milestone.expires_at
%span.creator %span.creator
· ·
...@@ -30,7 +31,7 @@ ...@@ -30,7 +31,7 @@
%i.fa.fa-trash-o %i.fa.fa-trash-o
Delete Delete
.gray-content-block.middle-block .gray-content-block.second-block
%h2.issue-title %h2.issue-title
= markdown escape_once(@milestone.title), pipeline: :single_line = markdown escape_once(@milestone.title), pipeline: :single_line
%div %div
......
.issuable-details .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' }} .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_icon(@snippet.visibility_level, fw: false)
= visibility_level_label(@snippet.visibility_level) = visibility_level_label(@snippet.visibility_level)
Snippet ##{@snippet.id} %span.issuable-id
Snippet ##{@snippet.id}
%span.creator %span.creator
· created by #{link_to_member(@project, @snippet.author, size: 24)} · created by #{link_to_member(@project, @snippet.author, size: 24)}
· ·
...@@ -20,6 +21,6 @@ ...@@ -20,6 +21,6 @@
- else - else
= render "snippets/actions" = render "snippets/actions"
.gray-content-block.middle-block .gray-content-block.second-block
%h2.issue-title %h2.issue-title
= markdown escape_once(@snippet.title), pipeline: :single_line = 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