get contributors looking good

This commit is contained in:
Andrew Brown 2021-04-29 15:03:05 -07:00
parent 1a08525885
commit 718e1bbd7a
2 changed files with 11 additions and 2 deletions

View File

@ -4,9 +4,13 @@
raw_model = content.is_a?(Universe) ? content : content.raw_model
%>
<div id="contributors_panel" class="row panel">
<div id="contributors_panel" class="panel">
<% if raw_model.contributors.any? %>
<ul class="collection">
<ul class="collection with-header">
<li class="collection-header purple white-text">
<i class="material-icons left">group_add</i>
Contributors
</li>
<% 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)%>

View File

@ -54,4 +54,9 @@
render_options: { locals: { f: f, content: content }}
%>
</div>
<br />
<p>
<%= f.submit 'Send invites', class: 'btn purple white-text' %>
</p>
<% end %>