Loading

app/views/pins/show.html

  1. <div class="row" id="pin_show">
  2.   <div class="col-md-8 col-md-offset-2">
  3.     <div class="panel panel-default">
  4.       <div class="panel-heading pin_image">
  5.     <%= image_tag @pin.image.url %>
  6.       </div>
  7.       <div class="panel-body">
  8.     <h1>
  9.       <%= @pin.title %>
  10.     </h1>
  11.     <p class="description">
  12.       <%= @pin.description %>
  13.     </p>
  14.       </div>
  15.       <div class="panel-footer">
  16.     <div class="row">
  17.       <div class="col-md-6">
  18.         <p class="user"></p>
  19.         Submitted by
  20.         <%= @pin.user.email %>
  21.       </div>
  22.       <div class="col-md-6">
  23.         <div class="btn-group pull-right">
  24.           <%= link_to "Edit", edit_pin_path,  class: "btn btn-default" %>
  25.           <%= link_to "Delete", pin_path, method: :delete, data: { confirm: "Are you sure?"}, class: "btn btn-default" %>
  26.         </div>
  27.       </div>
  28.     </div>
  29.       </div><!-- End of panel-footer-->
  30.     </div><!-- End of panel-default-->
  31.   </div><!-- End of col-md-8-->
  32. </div><!-- End of row-->