forked from bofh/fetsite
Calendar Klasse überarbeitet Views,gefixt, Pictures hinzugefügt
This commit is contained in:
@@ -1,25 +1,14 @@
|
||||
<h1>Listing calendars</h1>
|
||||
|
||||
<table>
|
||||
<tr>
|
||||
<th>Name</th>
|
||||
<th>Public</th>
|
||||
<th></th>
|
||||
<th></th>
|
||||
<th></th>
|
||||
</tr>
|
||||
|
||||
<% @calendars.each do |calendar| %>
|
||||
<tr>
|
||||
<td><%= calendar.name %></td>
|
||||
<td><%= calendar.public %></td>
|
||||
<td><%= link_to 'Show', calendar %></td>
|
||||
<td><%= link_to 'Edit', edit_calendar_path(calendar) %></td>
|
||||
<td><%= link_to 'Destroy', calendar, method: :delete, data: { confirm: 'Are you sure?' } %></td>
|
||||
</tr>
|
||||
<div class="media">
|
||||
<a class="pull-left" href="#">
|
||||
<img class="media-object img-circle" src="<%= calendar.picture.thumb.url %>"/>
|
||||
</a>
|
||||
<div class="media-body">
|
||||
<h4><%= link_to calendar.name, calendar %></h4>
|
||||
</div>
|
||||
</div>
|
||||
<% end %>
|
||||
</table>
|
||||
|
||||
<br />
|
||||
|
||||
<%= link_to 'New Calendar', new_calendar_path %>
|
||||
|
||||
Reference in New Issue
Block a user