Skip to content

Commit

Permalink
rudimentary webpage for displaying biobox data. refs #1
Browse files Browse the repository at this point in the history
  • Loading branch information
Tobias Laufkötter committed Jan 21, 2016
1 parent 5e34f59 commit b1ce3b3
Show file tree
Hide file tree
Showing 2 changed files with 77 additions and 3 deletions.
76 changes: 74 additions & 2 deletions app/templates/bioboxes.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,77 @@
{% extends "base.html" %}
{% block content %}
<h1>Bioboxes</h1>

<div class="container">
<h1>Bioboxes</h1>
<div class="panel-group" id="bioboxes">
{% for box in boxes %}
<div class="panel panel-default">
<div class="panel-heading">
<h4 class="panel-title">
<a data-toggle="collapse" data-parent="#bioboxes" href="#{{ box.pmid }}">
{{ box.title }}
</a>
</h4>
</div>
<div id="{{ box.pmid }}" class="panel-collapse collapse">
<div class="panel-body">
<table class="table table-striped">
<tbody>
<tr>
<td>Dockerhub</td>
<td>
<a href="https://hub.docker.com/r/{{ box.image.dockerhub }}">{{ box.image.dockerhub }}</a>
</td>
</tr>
<tr>
<td>Repo</td>
<td><a href="{{ box.image.repo }}">{{ box.image.repo }}</a></td>
</tr>
{% if box.image.source %}
<tr>
<td>Source</td>
<td><a href="{{ box.image.source }}">{{ box.image.source }}</a></td>
</tr>
{% endif %}
<tr>
<td>pmid</td>
<td>{{ box.pmid }}</td>
</tr>
{% if box.homepage %}
<tr>
<td>Homepage</td>
<td><a href="{{ box.homepage }}">{{ box.homepage }}</a></td>
</tr>
{% endif %}
{% if box.mailing_list %}
<tr>
<td>Mailing list</td>
<td><a href="{{ box.mailing_list }}">{{ box.mailing_list }}</a></td>
</tr>
{% endif %}
<tr>
<td>Description</td>
<td><p>{{ box.description }}</p></td>
</tr>
<tr>
<td>Tasks</td>
<td></td>
</tr>
{% for task in box.tasks %}
<tr>
<td></td>
<td>name: {{ task.name }}</td>
</tr>
<tr>
<td></td>
<td>interface: {{ task.interface }}</td>
</tr>
{% endfor %}
</tbody>
</table>
</div>
</div>
</div>
{% endfor %}
</div>
</div>
{% endblock %}
4 changes: 3 additions & 1 deletion app/templates/index.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
{% extends "base.html" %}
{% block content %}
<h1>{{ title }}</h1>
<div class="container">
<h1>{{ title }}</h1>
</div>
{% endblock %}

0 comments on commit b1ce3b3

Please sign in to comment.