mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
With this change, we've decoupled some partials shared between `/pkgbase/{name}` and `/account/{username}/comments`. The comment actions template now resolves its package base via the `comment` instance instead of requiring `pkgbase`. We've also modified the existing package comment routes to support execution from any location using the `next` parameter. This allows us to reuse code from package comments for account comments actions. Moved the majority of comment editing javascript to its own .js file. Signed-off-by: Kevin Morris <kevr@0cost.org>
15 lines
420 B
HTML
15 lines
420 B
HTML
|
|
{% set article_cls = "article-content" %}
|
|
{% if comment.Deleter %}
|
|
{% set article_cls = "%s %s" | format(article_cls, "comment-deleted") %}
|
|
{% endif %}
|
|
|
|
<div id="comment-{{ comment.ID }}-content" class="{{ article_cls }}">
|
|
<div>
|
|
{% if comment.RenderedComment %}
|
|
{{ comment.RenderedComment | safe }}
|
|
{% else %}
|
|
{{ comment.Comments }}
|
|
{% endif %}
|
|
</div>
|
|
</div>
|