forked from mirrors/bookwyrm
Merge pull request #342 from mouse-reeve/comment-ui
Puts reply form below button that shows it
This commit is contained in:
commit
dd07922e85
2 changed files with 22 additions and 21 deletions
|
@ -20,6 +20,7 @@ function reply(e) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
function rate_stars(e) {
|
function rate_stars(e) {
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
ajaxPost(e.target);
|
ajaxPost(e.target);
|
||||||
|
|
|
@ -18,24 +18,13 @@
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<footer>
|
<footer>
|
||||||
{% if request.user.is_authenticated %}
|
|
||||||
<input class="toggle-control" type="checkbox" name="show-comment-{{ status.id }}" id="show-comment-{{ status.id }}">
|
|
||||||
<div class="toggle-content hidden">
|
|
||||||
<div class="card-footer">
|
|
||||||
<div class="card-footer-item">
|
|
||||||
{% include 'snippets/reply_form.html' with status=status %}
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
{% endif %}
|
|
||||||
<div class="card-footer">
|
<div class="card-footer">
|
||||||
<div class="card-footer-item">
|
<div class="card-footer-item">
|
||||||
{% if request.user.is_authenticated %}
|
{% if request.user.is_authenticated %}
|
||||||
|
|
||||||
<label class="button is-small" for="show-comment-{{ status.id }}">
|
<label class="button is-small" for="show-comment-{{ status.id }}">
|
||||||
<div role="button" tabindex="0">
|
<div role="button" tabindex="0">
|
||||||
<span class="icon icon-comment">
|
<span class="icon icon-comment">
|
||||||
<span class="is-sr-only">Comment</span>
|
<span class="is-sr-only">Reply</span>
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
</label>
|
</label>
|
||||||
|
@ -44,17 +33,17 @@
|
||||||
|
|
||||||
{% else %}
|
{% else %}
|
||||||
<a href="/login">
|
<a href="/login">
|
||||||
<span class="icon icon-comment">
|
<span class="icon icon-comment">
|
||||||
<span class="is-sr-only">Comment</span>
|
<span class="is-sr-only">Reply</span>
|
||||||
</span>
|
</span>
|
||||||
|
|
||||||
<span class="icon icon-boost">
|
<span class="icon icon-boost">
|
||||||
<span class="is-sr-only">Boost status</span>
|
<span class="is-sr-only">Boost status</span>
|
||||||
</span>
|
</span>
|
||||||
|
|
||||||
<span class="icon icon-heart">
|
<span class="icon icon-heart">
|
||||||
<span class="is-sr-only">Like status</span>
|
<span class="is-sr-only">Like status</span>
|
||||||
</span>
|
</span>
|
||||||
</a>
|
</a>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
|
@ -77,6 +66,17 @@
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
{% if request.user.is_authenticated %}
|
||||||
|
<input class="toggle-control" type="checkbox" name="show-comment-{{ status.id }}" id="show-comment-{{ status.id }}">
|
||||||
|
<div class="toggle-content hidden">
|
||||||
|
<div class="card-footer">
|
||||||
|
<div class="card-footer-item">
|
||||||
|
{% include 'snippets/reply_form.html' with status=status %}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
{% if status.user == request.user %}
|
{% if status.user == request.user %}
|
||||||
<div>
|
<div>
|
||||||
<input class="toggle-control" type="checkbox" name="more-info-{{ status.id }}" id="more-info-{{ status.id }}">
|
<input class="toggle-control" type="checkbox" name="more-info-{{ status.id }}" id="more-info-{{ status.id }}">
|
||||||
|
|
Loading…
Reference in a new issue