forked from openstreetmap/openstreetmap-website
-
Notifications
You must be signed in to change notification settings - Fork 1
/
show.html.erb
48 lines (48 loc) · 1.61 KB
/
show.html.erb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
<div class="flex_row">
<div>
<div class="when">
<%= l @event.moment, :format => :friendly %>
</div>
<h1 class="title">
<%= @event.title %>
</h1>
<p>
<%= t(".hosted_by") %>: <strong><%= link_to @event.microcosm.name, microcosm_path(@event.microcosm) %></strong>
</p>
<p>
<%= t(".organized_by") %>: <strong>Andrew Wiseman</strong>
</p>
</div>
<div>
<p><%= @event.attendees.size %> <%= t(".people_are_going") %></p>
<p><%= t(".are_you_going") %></p>
<%= form_with :model => @my_attendance do |form| %>
<%= form.hidden_field(:event_id, :value => @event.id) %>
<%= form.hidden_field(:user_id, :value => current_user&.id) %>
<%= form.submit :value => t(".going_yes") %>
<%= form.submit :value => t(".going_no") %>
<% end %>
</div>
</div>
<hr />
<div class="flex_row">
<div>
<p>
<strong><%= t(".description") %>:</strong>
<%= @event.description %>
</p>
<strong><%= t(".whos_going") %></strong>
<p class="event_attendees">
<% @event.attendees.each do |attendance| %>
<%= link_to attendance.user.display_name, user_path(attendance.user) %>
<% end %>
</p>
</div>
<div style="width: 400px">
<p>
<%= t(".location") %>: <strong><a href="https://www.openstreetmap.org/node/6125774816"><%= @event.location %></a></strong>
</p>
<a href="https://www.openstreetmap.org/directions?engine=fossgis_osrm_car&route=44.97067%2C-93.26822%3B38.90201%2C-77.04469#map=6/42.026/-85.156"><%= t(".directions_to") %></a>
<%= image_tag("dc_library.png", :size => "400x400") %>
</div>
</div>