Update ticket UI for email comments
This commit is contained in:
parent
bf7f8aa3fc
commit
01665d9240
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue