summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJacob Schatz <jacobschatz@Jacobs-MBP.fios-router.home>2016-03-02 13:01:15 -0500
committerJacob Schatz <jacobschatz@Jacobs-MBP.fios-router.home>2016-03-04 09:06:57 -0500
commit6e6a25187d54798074e18c47935e992f9e9588cd (patch)
tree781dd0dcbc8421ce5b01ef950308db4ef1307bb2
parentcabd228f70c9fef21d929eede06910b3d111fc29 (diff)
downloadgitlab-ce-6e6a25187d54798074e18c47935e992f9e9588cd.tar.gz
Combining recent change to have username in header with my MR.
-rw-r--r--app/views/projects/issues/show.html.haml14
-rw-r--r--app/views/projects/merge_requests/show/_mr_title.html.haml5
2 files changed, 13 insertions, 6 deletions
diff --git a/app/views/projects/issues/show.html.haml b/app/views/projects/issues/show.html.haml
index 0c225ee3fe1..e8ab7f7af72 100644
--- a/app/views/projects/issues/show.html.haml
+++ b/app/views/projects/issues/show.html.haml
@@ -27,11 +27,15 @@
%span.creator
by
.editor-details
- %strong
- =link_to_member(@project, @issue.author, size: 24, mobile_classes: "hidden-xs")
- =link_to_member(@project, @issue.author, size: 24,
- by_username: true, avatar: false)
- = time_ago_with_tooltip(@issue.created_at, placement: 'bottom', html_class: 'issue_created_ago')
+ .editor-details
+ %strong
+ =link_to_member(@project, @issue.author, size: 24, mobile_classes: "hidden-xs")
+ %span.hidden-xs
+ = '@' + @issue.author.username
+ %strong
+ =link_to_member(@project, @issue.author, size: 24, mobile_classes: "hidden-sm hidden-md hidden-lg",
+ by_username: true, avatar: false)
+ = time_ago_with_tooltip(@issue.created_at)
.pull-right.issue-btn-group
- if can?(current_user, :create_issue, @project)
diff --git a/app/views/projects/merge_requests/show/_mr_title.html.haml b/app/views/projects/merge_requests/show/_mr_title.html.haml
index c0e1839757b..c28e9d6f302 100644
--- a/app/views/projects/merge_requests/show/_mr_title.html.haml
+++ b/app/views/projects/merge_requests/show/_mr_title.html.haml
@@ -14,7 +14,10 @@
.editor-details
%strong
=link_to_member(@project, @merge_request.author, size: 24, mobile_classes: "hidden-xs")
- =link_to_member(@project, @merge_request.author, size: 24,
+ %span.hidden-xs
+ = '@' + @merge_request.author.username
+ %strong
+ =link_to_member(@project, @merge_request.author, size: 24, mobile_classes: "hidden-sm hidden-md hidden-lg",
by_username: true, avatar: false)
= time_ago_with_tooltip(@merge_request.created_at)