From 718e1bbd7afcb75bc85f74cdbfab92bb24bedddc Mon Sep 17 00:00:00 2001 From: Andrew Brown Date: Thu, 29 Apr 2021 15:03:05 -0700 Subject: [PATCH] get contributors looking good --- app/views/content/display/_contributors.html.erb | 8 ++++++-- app/views/content/form/_contributors.html.erb | 5 +++++ 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/app/views/content/display/_contributors.html.erb b/app/views/content/display/_contributors.html.erb index 5e807074..04a1161f 100644 --- a/app/views/content/display/_contributors.html.erb +++ b/app/views/content/display/_contributors.html.erb @@ -4,9 +4,13 @@ raw_model = content.is_a?(Universe) ? content : content.raw_model %> -
+
<% if raw_model.contributors.any? %> -
    +
      +
    • + group_add + Contributors +
    • <% raw_model.contributors.each do |contributor| %> <%# Don't expose email addresses to anyone other than the content owner who entered them in the first place %> <% next if contributor.user.nil? && (content.user != current_user)%> diff --git a/app/views/content/form/_contributors.html.erb b/app/views/content/form/_contributors.html.erb index 6d433949..fdd86ecb 100644 --- a/app/views/content/form/_contributors.html.erb +++ b/app/views/content/form/_contributors.html.erb @@ -54,4 +54,9 @@ render_options: { locals: { f: f, content: content }} %>
+ +
+

+ <%= f.submit 'Send invites', class: 'btn purple white-text' %> +

<% end %>