Update ticket UI for email comments

This commit is contained in:
Drew DeVault 2019-08-22 13:33:11 +09:00
parent bf7f8aa3fc
commit 01665d9240
1 changed files with 15 additions and 0 deletions

View File

@ -324,6 +324,7 @@
{% endif %}
{% endfor %}
{% if TicketAccess.comment in access %}
{% if current_user %}
<form
{% if any(ticket.comments) %}
style="margin-top: 1rem"
@ -383,6 +384,20 @@
{% endif %}
{% endif %}
</form>
{% elif cfg("todo.sr.ht::mail", "posting-domain") %}
<a
class="btn btn-primary"
href="{{get_origin("meta.sr.ht", external=True)}}/register"
>Register here {{icon('caret-right')}}</a>
or
<a href="{{oauth_url}}">
Log in {{icon('caret-right')}}
</a>
to comment, or
<a
href="mailto:{{tracker.owner.canonical_name}}/{{tracker.name}}/{{ticket.scoped_id}}@{{cfg("todo.sr.ht::mail", "posting-domain")}}"
>comment via email</a>.
{% endif %}
{% else %}
{% if not ticket.comments %}
<p>It's a bit quiet in here.</p>