app/views/decidim/meetings/admin/meetings/index.html.erb in decidim-meetings-0.0.2 vs app/views/decidim/meetings/admin/meetings/index.html.erb in decidim-meetings-0.0.3

- old
+ new

@@ -8,10 +8,14 @@ <thead> <tr> <th><%= t("models.meeting.fields.title", scope: "decidim.meetings") %></th> <th><%= t("models.meeting.fields.start_time", scope: "decidim.meetings") %></th> <th><%= t("models.meeting.fields.end_time", scope: "decidim.meetings") %></th> + <th><%= t("models.meeting.fields.closed", scope: "decidim.meetings") %></th> + <% if Decidim.geocoder.present? %> + <th><%= t("models.meeting.fields.map", scope: "decidim.meetings") %></th> + <% end %> <th class="actions"><%= t("actions.title", scope: "decidim.meetings") %></th> </tr> </thead> <tbody> <% meetings.each do |meeting| %> @@ -27,11 +31,21 @@ <td> <% if meeting.end_time %> <%= l meeting.end_time, format: :long %> <% end%> </td> + <td> + <%= humanize_boolean meeting.closed? %> + </td> + <% if Decidim.geocoder.present? %> + <td> + <%= static_map_link(meeting) %> + </td> + <% end %> <td class="actions"> <%= link_to t("actions.edit", scope: "decidim.meetings"), edit_meeting_path(meeting) if can? :update, current_feature %> + <%= link_to t("actions.close", scope: "decidim.meetings"), edit_meeting_meeting_close_path(meeting_id: meeting.id, id: meeting.id) if can? :update, current_feature %> + <%= link_to t("actions.attachments", scope: "decidim.meetings"), meeting_attachments_path(meeting) if can? :update, current_feature %> <%= link_to t("actions.destroy", scope: "decidim.meetings"), meeting_path(meeting), method: :delete, class: "small alert button", data: { confirm: t("actions.confirm_destroy", scope: "decidim.meetings") } if can? :destroy, current_feature %> </td> </tr> <% end %> </tbody>