<commit_before><%- content_for(:title) do -%>
  <%= @observation.to_plain_s %>
<%- end -%>
<%- content_for(:extracss) do -%>
  <style type="text/css" media="screen">
    .photos img {max-width: 310px;}
    .photos .main img {margin-bottom: 5px;}
    .other_photos {float:none;display:inline;}
    .box {padding:0;}
    .box .boxbody {padding:10px 10px 0 10px;}
    .box .boxheader{background-color:#EFEFC7; padding:5px 10px;}
    .quiet.box .boxheader{background-color:#dedede;}
    .taxon .othernames {display:block;}
    .identification img {max-width:48px;}
    .identification .button {margin:0 0 0 10px; float:right; text-align:center;}
    .buttonrow.inline .prevlink {float:left;}
    .buttonrow.inline .nextlink {float:right;}
    .uplink {max-width: 160px;}
  </style>
<%- end -%>
<h2><%= @observation.to_plain_s(:no_time => true) %></h2>
<% in_format :html do %>
  <% unless @observation.photos.blank? -%>
    <div class="photos">
      <%= render :partial => "observations/photos", :object => @observation, :locals => {
        :no_js => true,
        :image_size => "medium"
      } %>
    </div>
  <% end -%>
  
  <% if @observation.georeferenced? && show_observation_coordinates?(@observation) -%>
    <div class="stacked location">
      <%= link_to image_tag(google_static_map_for_observation_url(@observation, :size => "310x200")), 
        "http://maps.google.com/?q=#{@observation.latitude},#{@observation.longitude}" %>
    </div>
  <% end -%>
  
  <% if @observation.taxon.blank? -%>
    <div class="identification box">
      <div class="boxheader">
        <%= possessive @observation.user, :capitalize => true %>
        ID
      </div>
      <div class="boxbody">
        <% image_and_content taxon_image(@observation.taxon) do %>
          <%= user_image @observation.user, :size => "thumb", :class => "right" %>
          <%= @observation.species_guess || "Unknown" %>
        <% end -%>
      </div>
    </div>
  <% end -%>
  
  <% for ident in @observation.identifications.sort_by{|ident| ident.id} %>
    <div class="identification <%= ident.user_id == @observation.user_id ? 'box' : 'quiet box' %>">
      <div class="boxheader">
        <%= possessive ident.user, :capitalize => true %>
        ID
      </div>
      <div class="boxbody ui-helper-clearfix">
        <% image_and_content link_to(user_image(ident.user, :size => "thumb"), ident.user) do %>
          <% image_and_content link_to(taxon_image(ident.taxon, :class => "left"), ident.taxon) do %>
            <% if logged_in? && ident.user_id != current_user.id && ident.taxon_id != @observation.taxon_id -%>
              <%= link_to "Agree?", {
                   :controller => 'identifications',
                   :action => 'agree',
                   :observation_id => ident.observation_id,
                   :taxon_id => ident.taxon_id },
                 :method => :post,
                 "data-loading-click" => "...",
                 :class => "glaucous button" %><commit_msg>Showing more agree links.<commit_after><%- content_for(:title) do -%>
  <%= @observation.to_plain_s %>
<%- end -%>
<%- content_for(:extracss) do -%>
  <style type="text/css" media="screen">
    .photos img {max-width: 310px;}
    .photos .main img {margin-bottom: 5px;}
    .other_photos {float:none;display:inline;}
    .box {padding:0;}
    .box .boxbody {padding:10px 10px 0 10px;}
    .box .boxheader{background-color:#EFEFC7; padding:5px 10px;}
    .quiet.box .boxheader{background-color:#dedede;}
    .taxon .othernames {display:block;}
    .identification img {max-width:48px;}
    .identification .button {margin:0 0 0 10px; float:right; text-align:center;}
    .buttonrow.inline .prevlink {float:left;}
    .buttonrow.inline .nextlink {float:right;}
    .uplink {max-width: 160px;}
  </style>
<%- end -%>
<h2><%= @observation.to_plain_s(:no_time => true) %></h2>
<% in_format :html do %>
  <% unless @observation.photos.blank? -%>
    <div class="photos">
      <%= render :partial => "observations/photos", :object => @observation, :locals => {
        :no_js => true,
        :image_size => "medium"
      } %>
    </div>
  <% end -%>
  
  <% if @observation.georeferenced? && show_observation_coordinates?(@observation) -%>
    <div class="stacked location">
      <%= link_to image_tag(google_static_map_for_observation_url(@observation, :size => "310x200")), 
        "http://maps.google.com/?q=#{@observation.latitude},#{@observation.longitude}" %>
    </div>
  <% end -%>
  
  <% if @observation.taxon.blank? -%>
    <div class="identification box">
      <div class="boxheader">
        <%= possessive @observation.user, :capitalize => true %>
        ID
      </div>
      <div class="boxbody">
        <% image_and_content taxon_image(@observation.taxon) do %>
          <%= user_image @observation.user, :size => "thumb", :class => "right" %>
          <%= @observation.species_guess || "Unknown" %>
        <% end -%>
      </div>
    </div>
  <% end -%>
  
  <% for ident in @observation.identifications.sort_by{|ident| ident.id} %>
    <div class="identification <%= ident.user_id == @observation.user_id ? 'box' : 'quiet box' %>">
      <div class="boxheader">
        <%= possessive ident.user, :capitalize => true %>
        ID
      </div>
      <div class="boxbody ui-helper-clearfix">
        <% image_and_content link_to(user_image(ident.user, :size => "thumb"), ident.user) do %>
          <% image_and_content link_to(taxon_image(ident.taxon, :class => "left"), ident.taxon) do %>
            <% if logged_in? && ident.user_id != current_user.id -%>
              <%= link_to "Agree?", {
                   :controller => 'identifications',
                   :action => 'agree',
                   :observation_id => ident.observation_id,
                   :taxon_id => ident.taxon_id },
                 :method => :post,
                 "data-loading-click" => "...",
                 :class => "glaucous button" %>
{'fraction_non_alphanumeric': 0.18197135636057288, 'fraction_numerical': 0.011457455770850885, 'mean_word_length': 2.721630094043887, 'pattern_counts': {'":': 0, '<': 93, '<?xml version=': 0, '>': 133, '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': '5885055', 'n_tokens_mistral': 2150, 'n_tokens_neox': 1974, 'n_words': 367}