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