Skip to content

Commit fdedbfb

Browse files
committed
Update _ambiguous_type_genome.html.erb
1 parent d0c07d9 commit fdedbfb

1 file changed

Lines changed: 12 additions & 11 deletions

File tree

app/views/registers/curation_genomics/_ambiguous_type_genome.html.erb

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,9 @@
2727
<table class="table table-hover table-responsive">
2828
<thead>
2929
<tr>
30-
<th>Name, Type</th>
30+
<th>Name, Type, Reported Classification</th>
3131
<th>Checks</th>
3232
<th>Discrepancies</th>
33-
<th>Reported Classification</th>
3433
<th>MiGA Distances (top 3 AAI)</th>
3534
<th>MiGA Taxonomy (top 3 AAI)</th>
3635
</tr>
@@ -59,28 +58,30 @@
5958
<% end %>
6059
<% end %>
6160
</td>
62-
<td>
63-
<% show_tax_string(
64-
name.lineage.map { |i| "#{i.inferred_rank}:#{i.name}" }
65-
.join(' > ')
66-
) %>
67-
</td>
6861
<% if genome %>
6962
<% miga_obj = genome.miga_object %>
70-
<td>
63+
<td rowspan=2>
7164
<% cr = miga_obj&.closest_relatives(3, false, :aai) || [] %>
7265
<% show_aai(cr) %>
7366
</td>
74-
<td>
67+
<td rowspan=2>
7568
<b><%= (miga_obj&.metadata || {})[:tax] %></b><br/>
7669
<% cr = miga_obj&.closest_relatives(3, true, :aai) || [] %>
7770
<% show_aai(cr) %>
7871
</td>
7972
<% else %>
80-
<td colspan=2 class="text-danger">Undefined type genome</td>
73+
<td colspan=2 rowspan=2 class="text-danger">Undefined type genome</td>
8174
<% next %>
8275
<% end %>
8376
</tr>
77+
<tr>
78+
<td colspan=3>
79+
<% show_tax_string(
80+
name.lineage.map { |i| "#{i.inferred_rank}:#{i.name}" }
81+
.join(' > ')
82+
) %>
83+
</td>
84+
</tr>
8485
<% end %>
8586
</tbody>
8687
</table>

0 commit comments

Comments
 (0)