<%= stylesheet_link_tag 'blueimp-gallery.min' %> <%= javascript_include_tag 'jquery.blueimp-gallery.min.js' %> <% @route_point_photo = RoutePointPhoto.available_for_user(current_user).first %>
<% if @route_point_photo %> <%= image_tag @route_point_photo.photo.thumb.url, class: 'img-polaroid', style: "margin: 10px" %>

<%= link_to(photo_path(@route_point_photo), class: 'btn' ) do%><%end%> <%= link_to(download_photo_path(@route_point_photo), class: 'btn' ) do%><%end%> <%= link_to(@route_point_photo.photo.url, class: 'btn', title: @route_point_photo.created_at.to_s + ' ' + @route_point_photo.manager.name + ' ' + @route_point_photo.shipping_address.name, :data => {:gallery => ''}) do%><%end%>

<% else %>

<%= t(:cannot_find_route_point_photo) %>

<% end %>