mirror of
https://github.com/indentlabs/notebook.git
synced 2025-10-26 11:19:22 +00:00
Add a quick create another button to content#show pages
This commit is contained in:
parent
661a24c7ac
commit
c1cf0fd57f
@ -27,6 +27,17 @@
|
||||
|
||||
<div class="col s3">
|
||||
<%= render partial: 'content/display/sidelinks', locals: { content: @serialized_content } %>
|
||||
|
||||
<% if user_signed_in? && current_user.can_create?(@serialized_content.raw_model.class) %>
|
||||
<%= link_to new_polymorphic_path(@serialized_content.raw_model.class) do %>
|
||||
<div class="<%= @serialized_content.class_color %> card">
|
||||
<div class="card-content white-text">
|
||||
<i class="right material-icons">arrow_forward</i>
|
||||
Create another <%= @serialized_content.class_name.downcase %>
|
||||
</div>
|
||||
</div>
|
||||
<% end %>
|
||||
<% end %>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user