<commit_before><% @page_title = "#{@picture.title} from gallery #{@picture.gallery.name}" %>

<% content_for 'tasks' do %>
  <li>
    <%= link_to 'List of Pictures', admin_pictures_url %>
  </li>
  <li>
    <%= link_to "Show gallery #{@picture.gallery.name}", admin_gallery_url(@picture.gallery) %>
  </li>
  <li>
    <%= link_to "Edit gallery #{@picture.gallery.name}", edit_admin_gallery_url(@picture.gallery) %>
  </li>
  <li>
    <%= link_to "Edit picture", edit_admin_gallery_picture_url(@picture.gallery, @picture) %>
  </li>
<% end %>

<h2>Manage Pictures</h2>


<% if flash[:notice] %>
  <p class="notice"><%=h flash[:notice] %></p>
<% end -%>


<p>
  <%= image_tag @picture.public_filename %>
</p>

<div class="set admin">
  <ul>
    <li>
      <label class="float">Titre :</label>
      <%=h @picture.title %>
    </li>

    <% unless @picture.description.empty? %>
      <li>
      <label class="float">Description :</label><br /><commit_msg>Add delete button in view picture by admin, fixes features #61<commit_after><% @page_title = "#{@picture.title} from gallery #{@picture.gallery.name}" %>

<% content_for 'tasks' do %>
  <li>
    <%= link_to 'List of Pictures', admin_pictures_url %>
  </li>
  <li>
    <%= link_to "Show gallery #{@picture.gallery.name}", admin_gallery_url(@picture.gallery) %>
  </li>
  <li>
    <%= link_to "Edit gallery #{@picture.gallery.name}", edit_admin_gallery_url(@picture.gallery) %>
  </li>
  <li>
    <%= link_to "Edit picture", edit_admin_gallery_picture_url(@picture.gallery, @picture) %>
  </li>
  <li>
  <%= link_to "Delete picture", {:controller => 'admin/pictures', :action => 'destroy', :gallery_id => @picture.gallery, :id => @picture}, :method => 'delete', :confirm => 'Are you sure ?' %>
  </li>
<% end %>

<h2>Manage Pictures</h2>


<% if flash[:notice] %>
  <p class="notice"><%=h flash[:notice] %></p>
<% end -%>


<p>
  <%= image_tag @picture.public_filename %>
</p>

<div class="set admin">
  <ul>
    <li>
      <label class="float">Titre :</label>
      <%=h @picture.title %>
    </li>

    <% unless @picture.description.empty? %>
      <li>
      <label class="float">Description :</label><br />
{'fraction_non_alphanumeric': 0.2141535615171138, 'fraction_numerical': 0.0027752081406105457, 'mean_word_length': 3.8497757847533634, 'pattern_counts': {'":': 0, '<': 80, '<?xml version=': 0, '>': 86, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7573837', 'n_tokens_mistral': 851, 'n_tokens_neox': 769, 'n_words': 165}