add lightbox for post image previews 2
This commit is contained in:
@@ -5,6 +5,7 @@
|
||||
{%- block title -%}{{thread.title}}{%- endblock -%}
|
||||
{%- block content -%}
|
||||
<bitty-8 data-connect="/static/js/bits/bookmark-menu.js"></bitty-8>
|
||||
<bitty-8 data-connect="/static/js/bits/thread.js"></bitty-8>
|
||||
{%- set td -%}
|
||||
<ul class="horizontal">
|
||||
<li>Started by <a href="{{url_for('users.user_page', username=started_by.username)}}">{{started_by.get_readable_name()}}</a> in topic <a href="{{url_for('topics.topic_by_id', topic_id=topic.id)}}">{{topic.name}}</a></li>
|
||||
@@ -84,6 +85,18 @@
|
||||
</span>
|
||||
</div>
|
||||
{{ bookmark_menu() }}
|
||||
<dialog closedby="any" class="plank thread-lighbox" data-r="showLightbox closeLightbox">
|
||||
<div class="menu">
|
||||
<button data-s="closeLightbox">Close</button>
|
||||
<a href="" target="_blank" rel="noreferrer noopener" class="linkbutton alt">Open original</a>
|
||||
</div>
|
||||
<img class="lightbox-image" src="https://placehold.co/900x710">
|
||||
<div class="menu">
|
||||
<button data-s="lightboxPrevious">Previous</button>
|
||||
<span data-r="lightboxSetCounter">0/0</span>
|
||||
<button data-s="lightboxNext">Next</button>
|
||||
</div>
|
||||
</dialog>
|
||||
{%- if is_logged_in() and get_active_user().can_post_to_thread_or_topic(thread) -%}
|
||||
<form action="{{url_for('threads.reply', thread_id=thread.id)}}" method="POST" class="plank post-edit-form" data-listen="submit" data-r="clearThreadDraft" data-s="clearThreadDraft">
|
||||
<h2 class="info">Reply to "{{thread.title}}"</h2>
|
||||
|
||||
Reference in New Issue
Block a user