mirror of
https://github.com/indentlabs/notebook.git
synced 2025-10-26 11:19:22 +00:00
get contributors looking good
This commit is contained in:
parent
1a08525885
commit
718e1bbd7a
@ -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)%>
|
||||
|
||||
@ -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 %>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user