Skip to content

Commit

Permalink
FIx access to salmon, trout
Browse files Browse the repository at this point in the history
  • Loading branch information
williamdlees committed Jul 10, 2024
1 parent a4460cb commit 21786d7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions templates/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
<ul>
<li><a href="{{ url_for('germline_sets', species='Homo sapiens') }}" class="m-item">Human (Homo sapiens)</a></li>
<li><a href="{{ url_for('germline_sets', species='Mus musculus') }}" class="m-item">Mouse (Mus musculus)</a></li>
{% if current_user.has_role('Salmon') %}
{% if current_user.has_role('Salmo salar') %}
<li><a href="{{ url_for('germline_sets', species='Oncorhynchus mykiss') }}" class="m-item">Rainbow Trout (Oncorhynchus mykiss)</a></li>
<li><a href="{{ url_for('germline_sets', species='Salmo salar') }}" class="m-item">Atlantic Salmon (Salmo salar)</a></li>
{% endif %}
Expand All @@ -57,7 +57,7 @@
<li><a href="{{ url_for('sequences', sp='Homo sapiens') }}" class="m-item">Human (Homo sapiens)</a></li>
<li><a href="{{ url_for('sequences', sp='Mus musculus') }}" class="m-item">Mouse (Mus musculus)</a></li>
<li><a href="{{ url_for('sequences', sp='Macaca mulatta') }}" class="m-item">Macaque (Macaca mulatta)</a></li>
{% if current_user.has_role('Salmon') %}
{% if current_user.has_role('Salmo salar') %}
<li><a href="{{ url_for('sequences', sp='Oncorhynchus mykiss') }}" class="m-item">Rainbow Trout (Oncorhynchus mykiss)</a></li>
<li><a href="{{ url_for('sequences', sp='Salmo salar') }}" class="m-item">Salmon (Salmo salar)</a></li>
{% endif %}
Expand Down
4 changes: 2 additions & 2 deletions templates/base_wide.html
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
<ul>
<li><a href="{{ url_for('germline_sets', species='Homo sapiens') }}" class="m-item">Human (Homo sapiens)</a></li>
<li><a href="{{ url_for('germline_sets', species='Mus musculus') }}" class="m-item">Mouse (Mus musculus)</a></li>
{% if current_user.has_role('Salmon') %}
{% if current_user.has_role('Salmo salar') %}
<li><a href="{{ url_for('germline_sets', species='Oncorhynchus mykiss') }}" class="m-item">Rainbow Trout (Oncorhynchus mykiss)</a></li>
<li><a href="{{ url_for('germline_sets', species='Salmo salar') }}" class="m-item">Atlantic Salmon (Salmo salar)</a></li>
{% endif %}
Expand All @@ -57,7 +57,7 @@
<li><a href="{{ url_for('sequences', sp='Homo sapiens') }}" class="m-item">Human (Homo sapiens)</a></li>
<li><a href="{{ url_for('sequences', sp='Mus musculus') }}" class="m-item">Mouse (Mus musculus)</a></li>
<li><a href="{{ url_for('sequences', sp='Macaca mulatta') }}" class="m-item">Macaque (Macaca mulatta)</a></li>
{% if current_user.has_role('Salmon') %}
{% if current_user.has_role('Salmo salar') %}
<li><a href="{{ url_for('sequences', sp='Oncorhynchus mykiss') }}" class="m-item">Rainbow Trout (Oncorhynchus mykiss)</a></li>
<li><a href="{{ url_for('sequences', sp='Salmo salar') }}" class="m-item">Salmon (Salmo salar)</a></li>
{% endif %}
Expand Down

0 comments on commit 21786d7

Please sign in to comment.