Skip to content

Commit

Permalink
redesign sequence page
Browse files Browse the repository at this point in the history
  • Loading branch information
proost committed Oct 26, 2016
1 parent c1a7d45 commit 546c906
Showing 1 changed file with 21 additions and 32 deletions.
53 changes: 21 additions & 32 deletions planet/templates/sequence.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@
<ol class="breadcrumb">
<li><a href="{{ url_for('main.screen') }}">Home</a></li>
<li><a href="{{ url_for('species.species_view', species_id=sequence.species.id) }}"><em>{{ sequence.species.name }}</em></a></li>
<li class="active">Sequence: <strong>{{ sequence.name }}</strong></li>
<li>Sequence</li>
<li class="active"><strong>{{ sequence.name }}</strong></li>
</ol>
<h1><strong>{{ sequence.name }}</strong> <small>({{ sequence.readable_type }})</small></h1>
<br />
Expand Down Expand Up @@ -36,12 +37,25 @@ <h3>Expression profile <small>(<a href="{{ url_for('expression_profile.expressio
{% endif %}
{% endfor %}
{% if expression_profiles|count > 1 %}
<p>All profiles </p>
<ul>
{% for profile in expression_profiles %}
<li><a href="{{ url_for('expression_profile.expression_profile_view', profile_id=profile.id) }}">{{ profile.probe }}</a> | <a href="{{ url_for('expression_profile.expression_profile_modal', profile_id=profile.id) }}" data-target="#profileModal">Show profile</a></li>
{% endfor %}
</ul>
<div class="row">
<div class="col-lg-12">
<div class="btn-group">
<button type="button" class="btn btn-primary dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
All profiles <span class="caret"></span>
</button>
<ul class="dropdown-menu">
{% for profile in expression_profiles %}
<li class="dropdown-header">{{ profile.probe }}</li>
<li><a href="{{ url_for('expression_profile.expression_profile_view', profile_id=profile.id) }}">View details</a></li>
<li><a href="{{ url_for('expression_profile.expression_profile_modal', profile_id=profile.id) }}" data-target="#profileModal">Show</a></li>
{% if not loop.last %}
<li role="separator" class="divider"></li>
{% endif %}
{% endfor %}
</ul>
</div>
</div>
</div>
{% endif %}
{% else %}
<h3>Expression profile</h3>
Expand Down Expand Up @@ -166,31 +180,6 @@ <h3>Sequence details</h3>
{% endif %}
</div>
</div> <!-- end col -->
<div class="col-lg-4 col-md-6 col-sm-12">
<div class="panel panel-default">
<div class="panel-heading">Expression Profiles</div>
{% if expression_profiles|count > 0 %}
<div class="panel-scroll">
<div class="table-responsive">
<table class="table table-striped">
<tbody>
{% for profile in expression_profiles %}
<tr>
<td><a href="{{ url_for('expression_profile.expression_profile_view', profile_id=profile.id) }}">{{ profile.probe }}</a></td>
<td><a href="{{ url_for('expression_profile.expression_profile_modal', profile_id=profile.id) }}" data-target="#profileModal">Show profile</a></td>
</tr>
{% endfor %}
</tbody>
</table>
</div>
</div>
{% else %}
<div class="panel-body panel-scroll">
<p>This sequence doens't have an expression profile associated with it</p>
</div>
{% endif %}
</div>
</div>
<div class="col-lg-4 col-md-6 col-sm-12">
<div class="panel panel-default">
<div class="panel-heading">Networks</div>
Expand Down

0 comments on commit 546c906

Please sign in to comment.