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

20 lines
666 B
Plaintext

<% data = action_data %>
<% if data["view_count"].to_i > 0 %>
<div class="view_count pull-right">
<i class="fa fa-eye"><%= data["view-count-head"] %>:</i>
<span class="view-count"><%= data["view_count"]+(Site.first.view_count_start||0 rescue 0) %></span>
</div>
<% end %>
<style>
h3.page-module-title br {
display: none;
}
</style>
<h3 class="page-module-title"><%= data["title"].html_safe %></h3>
<%= data["html"].html_safe unless data["html"].nil? %>
<% 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 %>