Commit f10bd7df authored by Douwe Maan's avatar Douwe Maan

Tweak merge request list item

parent 9517b621
......@@ -33,7 +33,12 @@
\##{merge_request.iid} ·
opened #{time_ago_with_tooltip(merge_request.created_at, placement: 'bottom')}
by #{link_to_member(@project, merge_request.author, avatar: false)}
- if merge_request.milestone_id?
- if merge_request.target_project.default_branch != merge_request.target_branch
 
= link_to namespace_project_commits_path(merge_request.project.namespace, merge_request.project, merge_request.target_branch) do
= icon('code-fork')
= merge_request.target_branch
- if merge_request.milestone
 
= link_to namespace_project_merge_requests_path(merge_request.project.namespace, merge_request.project, milestone_title: merge_request.milestone.title) do
= icon('clock-o')
......@@ -42,11 +47,6 @@
 
- 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
 
= link_to namespace_project_commits_path(merge_request.project.namespace, merge_request.project, merge_request.target_branch) do
= icon('code-fork')
= merge_request.target_branch
- if merge_request.tasks?
 
%span.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