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

26 lines
575 B
Plaintext
Raw Normal View History

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