Sha256: c27d8367b691aca6aa5cd7f3a3a68ad385d165b46deff798bf4d5922a8b7c86e
Contents?: true
Size: 1.05 KB
Versions: 9
Compression:
Stored size: 1.05 KB
Contents
<%- props = local_assigns %> <% if props[:model].is_a? Yarii::DatafileModel %> <a data-action="card#edit" href="<%= yarii_editor.edit_document_path(props[:model], content_model: props[:content_model_type], key_path: props[:model].key_path) %>" class="card-footer-item"> <span class="icon"><i class="fa fa-pencil-square-o"></i></span> <span>Edit</span> </a> <% else %> <a data-action="card#edit" href="<%= yarii_editor.edit_document_path(props[:model], content_model: props[:content_model_type]) %>" class="card-footer-item"> <span class="icon"><i class="fa fa-pencil-square-o"></i></span> <span>Edit</span> </a> <a href="<%= props[:model].preview_url %>" target="_blank" class="card-footer-item"> <span class="icon"><i class="fa fa-eye"></i></span> <span>Preview</span> </a> <a data-action="card#destroy" href="<%= yarii_editor.destroy_document_path(props[:model], content_model: props[:content_model_type]) %>" class="card-footer-item"> <span class="icon"><i class="fa fa-trash"></i></span> <span>Delete</span> </a> <% end %>
Version data entries
9 entries across 9 versions & 1 rubygems