Hide show ticket submission UI for logged-out user

Fixes #79
This commit is contained in:
Drew DeVault 2017-09-15 07:52:16 -04:00
parent 2dc2c80c6a
commit e86533bc83
1 changed files with 5 additions and 0 deletions

View File

@ -16,6 +16,7 @@
<div class="row">
<div class="col-md-4">
{{ tracker.description | md }}
{% if current_user %}
<h3 style="margin-top: 1rem">Submit ticket</h3>
<form method="POST" action="{{
url_for(".tracker_submit_POST",
@ -61,6 +62,10 @@
{% endif %}> Submit another?
</label>
</form>
{% else %}
<hr />
<p>You need to <a href="{{ oauth_url }}">log in</a> to submit tickets.</p>
{% endif %}
</div>
<div class="col-md-8">
<form>