38 lines
1.8 KiB
Plaintext
38 lines
1.8 KiB
Plaintext
<style type="text/css">
|
|
td.discipline_expertise{
|
|
white-space: break-spaces;
|
|
}
|
|
</style>
|
|
<table class="table main-list tablet footable-loaded">
|
|
<caption><h3><%= @asia_academy.academy_name %><%= " - #{@asia_depart.department_name}" if @asia_depart.department_name.present? %></h3></caption>
|
|
<thead>
|
|
<tr>
|
|
<%= thead_t('asia_database.teacher') %>
|
|
<%= thead_t('asia_database.extend_translate.discipline_expertise') %>
|
|
<%= thead_t('asia_database.extend_translate.project') %>
|
|
<%= thead_t('asia_database.extend_translate.paper') %>
|
|
<%= thead_t('asia_database.extend_translate.patent') %>
|
|
<%= thead_t('asia_database.extend_translate.tec_transfer') %>
|
|
<%= thead_t('asia_database.extend_translate.exhibition') %>
|
|
</tr>
|
|
</thead>
|
|
<tbody id="tbody_asia_academies" class="sort-holder">
|
|
<% @asia_teachers.each do |teacher| %>
|
|
<tr>
|
|
<td><h4><%= teacher.teacher %></h4></td>
|
|
<td class="discipline_expertise"><%= teacher.discipline_expertise.join("\n") rescue nil %></td>
|
|
<td><a href="<%=asia_projects_admin_asia_database_path(teacher)%>"><%= teacher.asia_projects.count %></a></td>
|
|
<td><a href="<%=asia_papers_admin_asia_database_path(teacher)%>"><%= teacher.asia_papers.count %></a></td>
|
|
<td><a href="<%=asia_patents_admin_asia_database_path(teacher)%>"><%= teacher.asia_patents.count %></a></td>
|
|
<td><a href="<%=asia_tec_transfers_admin_asia_database_path(teacher)%>"><%= teacher.asia_tec_transfers.count %></a></td>
|
|
<td><a href="<%=asia_exhibitions_admin_asia_database_path(teacher)%>"><%= teacher.asia_exhibitions.count %></a></td>
|
|
</tr>
|
|
<% end %>
|
|
</tbody>
|
|
</table>
|
|
|
|
<div class="bottomnav clearfix">
|
|
<div class="pagination pagination-centered">
|
|
<%= content_tag :div, paginate(@asia_teachers), class: "pagination pagination-centered" %>
|
|
</div>
|
|
</div> |