Browse files

Lost & found

  • Loading branch information...
1 parent 8bbdf24 commit 96088f217f8589e53096a43bec6ab9616736f852 @kremso kremso committed Dec 18, 2011
View
3 app/assets/javascripts/lil_map.js
@@ -48,6 +48,9 @@ $(function() {
}
});
}
+ $('a[data-toggle-id="map-143"]').click();
+ $('a[data-toggle-id="map-144"]').click();
+ $('a[data-toggle-id="map-145"]').click();
$('a[data-toggle-id="map-111"]').click();
$('a[data-toggle-id="map-112"]').click();
$('a[data-toggle-id="map-114"]').click();
View
2 app/helpers/events_helper.rb
@@ -10,6 +10,8 @@ def event_category_label(event)
title = "Granty"
when 'Discount' then
title = "Zľava"
+ when 'Lost_and_Found' then
+ title = "Straty a nálezy"
end
"<span class='label category#{event.category}'>#{title}</span>"
end
View
13 app/views/events/_lost_and_found.html.erb
@@ -0,0 +1,13 @@
+<div id="event-<%= event.id %>" class="event">
+ <div class="header">
+ <p class="tags"><span class="label category<%= event.category %>">Straty a nálezy</span></p>
+ <h2><a href="#"><%= event.title %></a></h2>
+ <p class="info"><%= l event.published_at, :format => :short %></p>
+ </div>
+
+ <div class="content">
+ <%= image_tag "/images/#{event.image_path}", :size => "200x150" if event.image_path %>
+ <%= simple_format(truncate(event.message, :length => 500)) %>
+ </div>
+ <%= render 'events/interactions', :event => event %>
+</div>
View
BIN public/images/lost_and_found/al.jpg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 96088f2

Please sign in to comment.