pagecontent/app/views/page_contents/index.html.erb

12 lines
410 B
Plaintext

<% data = action_data %>
<div class="view_count pull-right">
<i class="fa fa-eye"><%= data["view-count-head"] %>:</i>
<span class="view-count"><%= data["view_count"] %></span>
</div>
<%= data["html"].html_safe %>
<% if !data["url_to_edit"].blank? %>
<p class='admin-edit text-right'><a class='btn btn-primary' href='<%= data["url_to_edit"] %>'><i class='icon-edit'></i> <%= t(:edit) %></a></p>
<% end %>