Automatically convert links in diary postings into HTML links.
This commit is contained in:
parent
9f909d7447
commit
2eec60b575
1 changed files with 1 additions and 1 deletions
|
@ -1,5 +1,5 @@
|
|||
<b><%= h(diary_entry.title) %></b><br />
|
||||
<%= simple_format(sanitize(diary_entry.body)) %>
|
||||
<%= sanitize(auto_link(simple_format(diary_entry.body), :urls)) %>
|
||||
<% if diary_entry.latitude and diary_entry.longitude %>
|
||||
Coordinates: <div class="geo" style="display: inline"><span class="latitude"><%= diary_entry.latitude %></span>; <span class="longitude"><%= diary_entry.longitude %></span></div> (<%=link_to 'map', :controller => 'site', :action => 'index', :lat => diary_entry.latitude, :lon => diary_entry.longitude, :zoom => 14 %> / <%=link_to 'edit', :controller => 'site', :action => 'edit', :lat => diary_entry.latitude, :lon => diary_entry.longitude, :zoom => 14 %>)<br/>
|
||||
<% end %>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue