From e0d9f57f3933b1515a215c90b4a5647e96dbcd38 Mon Sep 17 00:00:00 2001 From: MAEDA Go Date: Sat, 6 May 2017 14:24:51 +0900 Subject: [PATCH] Show assignee's icon in addition to author's icon --- app/views/issues/show.html.erb | 5 ++++- public/stylesheets/application.css | 12 ++++++++++++ 2 files changed, 16 insertions(+), 1 deletion(-) diff --git a/app/views/issues/show.html.erb b/app/views/issues/show.html.erb index 08028d270..405a4a897 100644 --- a/app/views/issues/show.html.erb +++ b/app/views/issues/show.html.erb @@ -25,7 +25,10 @@ <% end %> - <%= avatar(@issue.author, :size => "50") %> +
+ <%= avatar(@issue.author, :size => "50") %> + <%= avatar(@issue.assigned_to, :size => "22", :class => "gravatar-child") if @issue.assigned_to %> +
<%= render_issue_subject_with_tree(@issue) %> diff --git a/public/stylesheets/application.css b/public/stylesheets/application.css index 06c2dff3a..a85ba961a 100644 --- a/public/stylesheets/application.css +++ b/public/stylesheets/application.css @@ -1313,6 +1313,18 @@ div.issue img.gravatar { margin: 0 6px 0 0; } +div.gravatar-with-child { + position: relative; +} + +img.gravatar-child { + position: absolute; + top: 30px; + left: 30px; + border-radius: 20%; + border: 2px solid rgba(255, 255, 255, 0.9); +} + h2 img.gravatar {margin: -2px 4px -4px 0;} h3 img.gravatar {margin: -4px 4px -4px 0;} h4 img.gravatar {margin: -2px 4px -4px 0;} -- 2.11.0 (Apple Git-81)