personal-research/app/views/admin/researchs/_research.html.erb

17 lines
851 B
Plaintext

<% @researchs.each do |research| %>
<tr id="<%= dom_id research %>" class="<%= research.is_hidden ? "checkHide" : "" %>">
<td><%= research.year %></td>
<td><%= research.publish_date.strftime("%Y.%m") rescue "" %></td>
<td>
<%= link_to research.research_title, OrbitHelper.url_to_plugin_show(research.to_param,'personal_research'), target: "blank"%>
<div class="quick-edit">
<ul class="nav nav-pills hide">
<li><%= link_to t('edit'), edit_admin_research_path(research) %></li>
<li><%= link_to t(:delete_), admin_research_path(id: research.id), method: :delete, remote: true, data: { confirm: 'Are you sure?' } %></li>
</ul>
</div>
</td>
<td><%= research.member_profile.name rescue "" %></td>
<td><%= research.research_category.title rescue "" %></td>
</tr>
<% end %>