Commit fbe64329 authored by Douwe Maan's avatar Douwe Maan

Move labels to second line of issue/MR list item

parent 08ee38a1
......@@ -6,9 +6,6 @@
.issue-title
%span.issue-title-text
= link_to_gfm issue.title, issue_path(issue), class: "row_title"
.issue-labels
- issue.labels.each do |label|
= link_to_label(label, project: issue.project)
.pull-right.light
- if issue.closed?
%span
......@@ -36,7 +33,12 @@
= link_to namespace_project_issues_path(issue.project.namespace, issue.project, milestone_title: issue.milestone.title) do
= icon('clock-o')
= issue.milestone.title
- if issue.labels.any?
 
- issue.labels.each do |label|
= link_to_label(label, project: issue.project)
- if issue.tasks?
 
%span.task-status
= issue.task_status
......
......@@ -3,19 +3,16 @@
.merge-request-title
%span.merge-request-title-text
= link_to_gfm merge_request.title, merge_request_path(merge_request), class: "row_title"
.merge-request-labels
- merge_request.labels.each do |label|
= link_to_label(label, project: merge_request.project)
.pull-right.light
- if ci_commit
= render_ci_status(ci_commit)
- if merge_request.merged?
%span
%i.fa.fa-check
= icon('check')
MERGED
- elsif merge_request.closed?
%span
%i.fa.fa-ban
= icon('ban')
CLOSED
- note_count = merge_request.mr_and_commit_notes.user.count
- if merge_request.assignee
......@@ -41,12 +38,17 @@
= link_to namespace_project_merge_requests_path(merge_request.project.namespace, merge_request.project, milestone_title: merge_request.milestone.title) do
= icon('clock-o')
= merge_request.milestone.title
- if merge_request.labels.any?
 
- merge_request.labels.each do |label|
= link_to_label(label, project: merge_request.project)
- if merge_request.target_project.default_branch != merge_request.target_branch
 
%span
%i.fa.fa-code-fork
= merge_request.target_branch
- if merge_request.tasks?
 
%span.task-status
= merge_request.task_status
......
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