diff options
| author | mo k <mo@mokhan.ca> | 2012-09-20 06:54:21 -0600 |
|---|---|---|
| committer | mo k <mo@mokhan.ca> | 2012-09-20 06:54:21 -0600 |
| commit | 07eb6ab5f2aeb0665807f53e6cd0451647d7c6bd (patch) | |
| tree | 3ba53855c1d541d8a11254ebb39ecefdde02f895 /app/views/tutorials | |
| parent | afb8b2c886215cc2ff7f0fb0a8056ad1d9dcdeac (diff) | |
start to clean up the show page.
Diffstat (limited to 'app/views/tutorials')
| -rw-r--r-- | app/views/tutorials/show.html.erb | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/app/views/tutorials/show.html.erb b/app/views/tutorials/show.html.erb index a1fc5cde..e60ac68e 100644 --- a/app/views/tutorials/show.html.erb +++ b/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> |
