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

23 lines
479 B
Plaintext
Raw Normal View History

2013-12-25 10:39:05 +00:00
<p id="notice"><%= notice %></p>
<p>
<h2><%= @template.title %></h2>
2013-12-25 10:39:05 +00:00
</p>
<p>
<strong>Author:&nbsp;</strong>
2013-12-25 10:39:05 +00:00
<%= @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? %>
2013-12-25 10:39:05 +00:00
<%= link_to 'Edit', edit_template_path(@template) %> |
<%= link_to 'Back', templates_path %>
<% end %>