module-and-template-store/app/views/templates/show.html.erb

23 lines
479 B
Plaintext

<p id="notice"><%= notice %></p>
<p>
<h2><%= @template.title %></h2>
</p>
<p>
<strong>Author:&nbsp;</strong>
<%= @template.author %>
</p>
<br/>
<p>
<strong>Preview:&nbsp;</strong><br/>
<%=image_tag @template.preview, :width => 600, :height => 600 %>
</p>
<p><%=link_to 'Download', @template.template.url, :class=> 'btn btn-success'%></p>
<%if user_signed_in? %>
<%= link_to 'Edit', edit_template_path(@template) %> |
<%= link_to 'Back', templates_path %>
<% end %>