This repository has been archived on 2020-01-20. You can view files and clone it, but cannot push or open issues or pull requests.
evoresa/app/views/items/_item.html.erb
François Vaux 8d3dad9b8c base de l'application
* Affichage des ressources
* Affichage des évènements
* Affichage des réservations
* Partie d'administration protégée
2010-07-23 16:35:50 +02:00

28 lines
738 B
Plaintext
Raw Permalink Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<li class="item">
<h2><%= item.name %></h2>
<p>
<span class="key"><%=
link_to item.key, item_path(:key => item.key)
%></span>
&lt;<span class="email"><%=
link_to item.email, "mailto:#{item.email}"
%></span>&gt;
<span class="edit">
<%= link_to "Éditer", edit_item_path(:key => item.key) %>
</span>
</p>
<ul class="event-list">
<% if item.upcoming_events.empty? %>
<li>Aucun évènement à venir</li>
<% else %>
<li>Évènements à venir :</li>
<%= render :partial => 'events/event', :collection => item.upcoming_events %>
<% end %>
</ul>
<p class="timestamps">
<%= item.created_at.localtime.strftime('Créé le %d/%m/%Y à %Hh%M') %>
</p>
</li>