]> git.openstreetmap.org Git - rails.git/blobdiff - app/views/diary_entries/show.html.erb
Merge remote-tracking branch 'upstream/pull/5391'
[rails.git] / app / views / diary_entries / show.html.erb
index e80a44f096005c1bdac773818bb4bc5472841feb..14b1576f0fdc9f6339f169fedddef1622e3bc44b 100644 (file)
@@ -1,3 +1,7 @@
+<% content_for :head do %>
+  <%= javascript_include_tag "social_share_button" %>
+<% end %>
+
 <% content_for :heading do %>
   <div class="row">
     <div class="col-sm-auto">
 <% content_for :heading do %>
   <div class="row">
     <div class="col-sm-auto">
 <% end %>
 
 <%= render @entry %>
 <% end %>
 
 <%= render @entry %>
+<%= render_social_share_buttons({
+                                  :title => @entry.title,
+                                  :url => diary_entry_url(@entry.user, @entry)
+                                }) %>
 
 <div id="comments" class="comments mb-3 overflow-hidden">
   <div class="row border-bottom border-secondary-subtle">
 
 <div id="comments" class="comments mb-3 overflow-hidden">
   <div class="row border-bottom border-secondary-subtle">