Fix bug.
This commit is contained in:
parent
08e9f5f8fa
commit
c64f6a3532
|
|
@ -1,3 +1,8 @@
|
|||
<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>
|
||||
|
|
@ -15,7 +20,7 @@
|
|||
<% @asia_teachers.each do |teacher| %>
|
||||
<tr>
|
||||
<td><h4><%= teacher.teacher %></h4></td>
|
||||
<td><%= teacher.discipline_expertise.join("\n") rescue nil %></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>
|
||||
|
|
|
|||
Loading…
Reference in New Issue