Comments.js: Add open in new tab button under replies as fallback

if xhr request fails
This commit is contained in:
James Taylor 2020-10-20 17:48:18 -07:00
parent f100685d64
commit 95f2f027ea
2 changed files with 6 additions and 0 deletions

View File

@ -132,6 +132,11 @@ details.replies > summary{
padding-bottom: 0px;
}
.replies-open-new-tab{
display: inline-block;
margin-top: 5px;
}
details.replies .comment{
width: 600px;
}

View File

@ -25,6 +25,7 @@
{% if settings.use_comments_js and comment['reply_count'] %}
<details class="replies" src="{{ comment['replies_url'] }}">
<summary>{{ comment['view_replies_text'] }}</summary>
<a href="{{ comment['replies_url'] }}" class="replies-open-new-tab" target="_blank">Open in new tab</a>
<div class="comment_page">loading..</div>
</details>
{% else %}