From e7303fe28704d06eeb1532c9a820543433bb22f9 Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Sat, 26 Jun 2010 16:35:25 +0100 Subject: [PATCH] Add language codes to diary bodies Wrap diary bodies in a div with the correct language code for the entry set on the div. Closes #2572. --- app/views/diary_entry/_diary_entry.html.erb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/views/diary_entry/_diary_entry.html.erb b/app/views/diary_entry/_diary_entry.html.erb index 17078a8bb..8991e1d54 100644 --- a/app/views/diary_entry/_diary_entry.html.erb +++ b/app/views/diary_entry/_diary_entry.html.erb @@ -1,5 +1,7 @@ <%= link_to h(diary_entry.title), :action => 'view', :display_name => diary_entry.user.display_name, :id => diary_entry.id %>
+
<%= htmlize(diary_entry.body) %> +
<% if diary_entry.latitude and diary_entry.longitude %> <%= render :partial => "location", :object => diary_entry %>
-- 2.39.5