Created
January 17, 2020 19:22
-
-
Save epoxe/eaa310056a72b619e2e24e38f512bb18 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{% extends "main.html" %} | |
{% block content %} | |
<div class="nl-page-content-header d-flex"> | |
<h1>Open Voyages</h1> | |
<a href="/voyages/new-voyage" class="btn btn-primary ml-auto align-self-center"><i class="fas fa-plus mr-2"></i>New Voyage</a> | |
</div> | |
<table class="table table-hover nl-table"> | |
<thead> | |
<tr> | |
<th>#</th> | |
<th>Departure</th> | |
<th></th> | |
<th>Return</th> | |
<th>Division</th> | |
<th>Type</th> | |
<th>Open Spots</th> | |
<th>Ships</th> | |
<th>Commander</th> | |
<th></th> | |
</tr> | |
</thead> | |
<tbody> | |
{% for row in rows %} | |
<tr> | |
<td>{{row["id"]}}</td> | |
<td> | |
<div class="nl-td-small">{{row['ddt']}}</div> | |
<div class='nl-td-bold'>{{row['dl']}}</div> | |
</td> | |
<td><i class="fas fa-angle-double-right"></i></td> | |
<td> | |
<div class="nl-td-small">{{row["rdt"]}}</div> | |
<div class='nl-td-bold'>{{row["rl"]}}</div> | |
</td> | |
<td>{{row["division"]}}</td> | |
<td>{{row["type"]}}</td> | |
<td>{{row.usercount_1}}<span class="nl-td-darker">/{{row.usercount_2}}</span></td> | |
<td>{{row.ship_count}}</td> | |
<td>{{row["commander"]}}</td> | |
<td align="right"><a class="btn btn-primary btn-sm" href="{{ url_for("signup", rid=row["id"]) }}">Sign Up</a></td> | |
</tr> | |
{% endfor %} | |
</tbody> | |
</table> | |
{% endblock %} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment