Commit 07eb6ab5
Changed files (1)
app
views
tutorials
app/views/tutorials/show.html.erb
@@ -1,7 +1,17 @@
<div class="row">
<div class="span12">
- <h1><%= @tutorial.heading %> <small><a href="<%= @tutorial.url %>">read it</a></small></h1>
- <%= link_to "destroy", @tutorial, :method => :delete, :confirm => "Are you sure?" %>
- <p><%= @tutorial.description %> </p>
+ <div class="thumbnail">
+ <img src="<%= @tutorial.image_url %>" />
+ <div class="caption">
+ <h3><a href="<%= @tutorial.url %>" target="_blank"><%= @tutorial.heading %></a> <small><%= @tutorial.created_at.to_s :foomat %></small></h3>
+ <p>
+ <% @tutorial.tags.each do |tag| -%>
+ <a href="?tags=<%= tag.name %>"><span class="label"><%= tag.name %></span></a>
+ <% end -%>
+ </p>
+ <p><%= @tutorial.description %></p>
+ <p><a class="btn btn-primary" href="<%= @tutorial.url %>">Read full article</a></p>
+ </div>
+ </div>
</div>
</div>