Sha256: fab4dff91dfef081e2806d4d91f384dba5ef3ae040fe848f86b197782973b77d
Contents?: true
Size: 1.59 KB
Versions: 16
Compression:
Stored size: 1.59 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 %>"> <% unless @image.media_type == "video" %> <%= image_tag(@image.jpeg, :class => "instagram-img") %> <% else %> <video src="<%= @image.video_url %>" poster="<%= @image.jpeg %>" controls='controls' class="instagram-img <%= @image.id.to_s %>" height="100%" width="100%" data-media-type="<%= @image.media_type %>" ></video> <% end %> </a> <%= render "/layouts/lentil/image_popup", :image => @image %> </div> <div class="grid__cell side-filler"></div> </div>
Version data entries
16 entries across 16 versions & 1 rubygems