Sha256: 3f7c18d2d1e4628a7b5075382f3c83ed54e69ea63a8d2d18921cfd1aee105779

Contents?: true

Size: 1.24 KB

Versions: 1

Compression:

Stored size: 1.24 KB

Contents

<% @page_title = "Picture : #{@picture.title}" %>

<h2>Picture : <%= @picture.title %></h2>

<p>
  <% if @picture.previous %>
    <span class="previous"><%= link_to(image_tag(@picture.previous.public_filename(:thumb)), picture_url(@picture.previous)) %></span>
  <% end %>
  <span><%= image_tag(@picture.public_filename(:view)) %></span>
  <% if @picture.next %>
    <span class="next"><%= link_to(image_tag(@picture.next.public_filename(:thumb)), picture_url(@picture.next)) %></span>
  <% end %>
</p>

<p>
  <%= @picture.description %>
</p>

<h3><a id="comments">Comments</a></h3>

<ol id="comment_list" class="comments">
  <%= render :partial => @picture.comments %>
</ol>

<%= flash_notice %>

<% form_for @comment, :url => {:action => 'create_comment'}, :html => {:id => 'commentform'} do |f| -%>
  <h3>Add Comment</h3>
  <%= error_messages_for 'comment' %>

  <div id='respond'>
    <p>
      <%= f.label :author %>
      <%= f.text_field :author %>
    </p>

    <p>
      <%= f.label :email %>
      <%= f.text_field :email %>
    </p>

    <p>
      <%= f.label :body %>
      <%= f.text_area :body %>
    </p>
    <p class="buttons">
      <%= f.hidden_field :picture_id %>
      <%= submit_tag 'send', :id => 'form-submit-button'  %>
    </p>
  </div>
<% end %>

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
pictrails-0.5.0 app/views/pictures/show.html.erb