Sha256: c2ff5abce544c2d60f43c15e9377b08ac84373aafc609991866632e41fe0d4fd

Contents?: true

Size: 1.29 KB

Versions: 2

Compression:

Stored size: 1.29 KB

Contents

<%= title @title %>
<% content_for :like_button do %>
  <form method="post" action="<%= tally_like_vote_path(@image.id) %>" style="display:inline;">
    <button href="<%= tally_like_vote_path(@image.id) %>" type="submit" class="btn like-btn initial-state" data-image-id="<%= @image.id %>">
    <i class="icon-thumbs-up"></i>
    <%= t 'lentil.image_modal.like', :count => @image.like_votes.size %></button>
  </form>
<% end -%>
<% content_for :flag_button do %>
  <form method="post" action="<%= tally_flag_path(@image.id) %>" style="display:inline;">
    <button type="submit" class="btn btn-danger flag-btn initial-state" data-target="#myModal-<%= @image.id %>" data-toggle="modal" data-remote="false" data-image-id="<%= @image.id %>">
    <i class="icon-flag icon-white"></i>
    <span class="btn-text"><%= t 'lentil.image_modal.report' %></span></button>
  </form>
<% end -%>
<%= render :partial => "/layouts/lentil/top_navigation" %>
<div class="wrapper">
    <div class="grid__cell side-filler"></div>
    <div id="image_<%= @image.id %>" class="image-show grid__cell solo-image">
        <a href="<%= @image.url %>"><%= image_tag(@image.jpeg, :class => "instagram-img") %></a>
        <%= render "/layouts/lentil/image_popup", :image => @image  %>
    </div>
    <div class="grid__cell side-filler"></div>
</div>

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
lentil-0.3.1 app/views/lentil/images/show.html.erb
lentil-0.3.0 app/views/lentil/images/show.html.erb