mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
fix(fastapi): only include comment-edit.js where needed
Closes: #178 Signed-off-by: Kevin Morris <kevr@0cost.org>
This commit is contained in:
parent
672af707ad
commit
dbe5cb4a33
4 changed files with 9 additions and 3 deletions
|
@ -17,6 +17,9 @@
|
||||||
</h3>
|
</h3>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<!-- On-the-fly comment editing functions -->
|
||||||
|
<script type="text/javascript" src="/static/js/comment-edit.js"></script>
|
||||||
|
|
||||||
{% for comment in comments %}
|
{% for comment in comments %}
|
||||||
{% include "partials/account/comment.html" %}
|
{% include "partials/account/comment.html" %}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
|
|
@ -15,6 +15,9 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<!-- On-the-fly comment editing functions -->
|
||||||
|
<script type="text/javascript" src="/static/js/comment-edit.js"></script>
|
||||||
|
|
||||||
{% set pkgname = package.Name %}
|
{% set pkgname = package.Name %}
|
||||||
{% set pkgbase_id = pkgbase.ID %}
|
{% set pkgbase_id = pkgbase.ID %}
|
||||||
{% include "partials/packages/comments.html" %}
|
{% include "partials/packages/comments.html" %}
|
||||||
|
|
|
@ -15,8 +15,5 @@
|
||||||
<!-- Include local typeahead -->
|
<!-- Include local typeahead -->
|
||||||
<script type="text/javascript" src="/static/js/typeahead.js"></script>
|
<script type="text/javascript" src="/static/js/typeahead.js"></script>
|
||||||
|
|
||||||
<!-- On-the-fly comment editing functions -->
|
|
||||||
<script type="text/javascript" src="/static/js/comment-edit.js"></script>
|
|
||||||
|
|
||||||
<title>AUR ({{ language }}) - {{ title | tr }}</title>
|
<title>AUR ({{ language }}) - {{ title | tr }}</title>
|
||||||
</head>
|
</head>
|
||||||
|
|
|
@ -14,6 +14,9 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<!-- On-the-fly comment editing functions -->
|
||||||
|
<script type="text/javascript" src="/static/js/comment-edit.js"></script>
|
||||||
|
|
||||||
{% set pkgname = result.Name %}
|
{% set pkgname = result.Name %}
|
||||||
{% set pkgbase_id = result.ID %}
|
{% set pkgbase_id = result.ID %}
|
||||||
{% set comments = comments %}
|
{% set comments = comments %}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue