app/views/family_gallery/pictures/show.html.haml in family_gallery-0.0.3 vs app/views/family_gallery/pictures/show.html.haml in family_gallery-0.0.4
- old
+ new
@@ -11,10 +11,16 @@
%td= FamilyGallery::Picture.human_attribute_name(:user_owner)
%td= link_to_user @picture.user_owner
%tr
%td= FamilyGallery::Picture.human_attribute_name(:user_uploaded)
%td= link_to_user @picture.user_uploaded
+
+ - if @picture.taken_at?
+ %tr
+ %td= FamilyGallery::Picture.human_attribute_name(:taken_at)
+ %td= l(@picture.taken_at, format: :long)
+
- @picture.groups.each do |group|
%tr
%td= FamilyGallery::Group.model_name.human
%td= link_to_group group
@@ -43,5 +49,12 @@
= link_to t("remove"), picture_user_tagging_path(@picture, user_tagging), method: :delete, data: {confirm: t("are_you_sure")} if can? :destroy, user_tagging
- unless @picture.tagged_users.any?
%tr
%td{colspan: 2}= t(".no_users_was_tagged")
+
+- if @picture.location?
+ - content_for(:header_tag) do
+ %script{src: "https://maps.googleapis.com/maps/api/js?v=3.exp"}
+
+ %h1= t(".google_map")
+ #map-canvas{data: {latitude: @picture.latitude, longitude: @picture.longitude}}