personal-conference/app/views/admin/writing_conferences/_writing_conference.html.erb

15 lines
858 B
Plaintext

<% @writing_conferences.each do |writing_conference| %>
<tr id="<%= dom_id writing_conference %>" class="<%= writing_conference.is_hidden ? "checkHide" : "" %>">
<td><%= writing_conference.year %></td>
<td>
<%= link_to Nokogiri::HTML(writing_conference.create_link).text, OrbitHelper.url_to_plugin_show(writing_conference.to_param,'personal_conference'), target: "blank"%>
<div class="quick-edit">
<ul class="nav nav-pills hide">
<li><%= link_to t('edit'), edit_admin_writing_conference_path(writing_conference) %></li>
<li><%= link_to t(:delete_), admin_writing_conference_path(id: writing_conference.id), method: :delete, remote: true, data: { confirm: 'Are you sure?' } %></li>
</ul>
</div>
</td>
<td><%= writing_conference.member_profile.name rescue "" %></td>
</tr>
<% end %>