diff options
author | Phil Hughes <me@iamphill.com> | 2016-03-04 17:37:07 +0000 |
---|---|---|
committer | Phil Hughes <me@iamphill.com> | 2016-03-18 09:46:20 +0000 |
commit | 3e98e5971b76d3847a1abd361bc120bf8bcfa214 (patch) | |
tree | aa839d52851a85e282b0456ddf863581a97a8918 /app/helpers | |
parent | fde975facc37c7d2f7ea5c997624bc7c0f5759a8 (diff) | |
download | gitlab-ce-3e98e5971b76d3847a1abd361bc120bf8bcfa214.tar.gz |
Improved issue sidebar
Updated the spacing throughout the sidebar so that it fits better on smaller screens
Added more participants button
Closes #13353
Diffstat (limited to 'app/helpers')
-rw-r--r-- | app/helpers/projects_helper.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/app/helpers/projects_helper.rb b/app/helpers/projects_helper.rb index b5acb80b720..5473419ef24 100644 --- a/app/helpers/projects_helper.rb +++ b/app/helpers/projects_helper.rb @@ -26,7 +26,7 @@ module ProjectsHelper image_tag(avatar_icon(author, opts[:size]), width: opts[:size], class: "avatar avatar-inline #{"s#{opts[:size]}" if opts[:size]}", alt:'') if opts[:avatar] end - def link_to_member(project, author, opts = {}) + def link_to_member(project, author, opts = {}, &block) default_opts = { avatar: true, name: true, size: 16, author_class: 'author', title: ":name" } opts = default_opts.merge(opts) @@ -44,6 +44,8 @@ module ProjectsHelper author_html << content_tag(:span, sanitize(author.name), class: opts[:author_class]) if opts[:name] end + author_html << capture(&block) if block + author_html = author_html.html_safe if opts[:name] |