Skip to content

Commit 298dc17

Browse files
committed
Update _ambiguous_type_genome.html.erb
1 parent ad07ef5 commit 298dc17

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

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

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,12 @@
44
<div class="<%=
55
r[1].to_f > 95.0 ? 'text-danger' : r[1].to_f > 60.0 ? '' : 'text-muted'
66
%> mb-2">
7-
<%= r[1] %>% - <%= r[0].unmiga_name %>
7+
<%= r[1] %>% -
8+
<% if r[0] =~ /^genome_(\d+)$/%>
9+
<%= link_to(r[0].unmiga_name, genome_url($1)) %>
10+
<% else %>
11+
<%= r[0].unmiga_name %>
12+
<% else %>
813
</div>
914
<% end %>
1015
<% end %>

0 commit comments

Comments
 (0)