mirror of
https://github.com/indentlabs/notebook.git
synced 2025-10-26 11:19:22 +00:00
show basil commissions on show/edit content pages
This commit is contained in:
parent
0fdc522f25
commit
633f2c5601
@ -27,5 +27,30 @@
|
||||
</div>
|
||||
</li>
|
||||
<% end %>
|
||||
<% @content.basil_commissions.where.not(saved_at: nil).each do |commission| %>
|
||||
<li>
|
||||
<%= image_tag commission.image %>
|
||||
<div class="caption bordered-text center">
|
||||
<h3>
|
||||
<% if @content.persisted? %>
|
||||
<%= link_to @content do %>
|
||||
<%= simple_format ContentFormatterService.show(
|
||||
text: @content.name_field_value,
|
||||
viewing_user: current_user
|
||||
) %>
|
||||
<% end %>
|
||||
<small>
|
||||
<%= simple_format ContentFormatterService.show(
|
||||
text: @content.description,
|
||||
viewing_user: current_user
|
||||
) %>
|
||||
</small>
|
||||
<% else %>
|
||||
New <%= @content.class.name %>
|
||||
<% end %>
|
||||
</h3>
|
||||
</div>
|
||||
</li>
|
||||
<% end %>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user