Refactored and redesigned dashboards to show button to show sharable image.

This commit is contained in:
2025-07-25 23:12:31 +02:00
parent 38e42efdef
commit f940470de3
3 changed files with 32 additions and 7 deletions

View File

@@ -9,7 +9,20 @@
<h1>Reddit Ticker Mentions</h1>
<h2>{{ subtitle }}</h2>
</div>
<div class="date">{{ date_string }}</div>
<div class="header-action">
<div class="date">{{ date_string }}</div>
<!-- Only show the icon if we are NOT already in image mode -->
{% if not is_image_mode %}
<a href="{{ base_url }}?view={{ view_type }}&image=true" class="icon-link" title="View as Shareable Image">
<svg xmlns="http://www.w3.org/2000/svg" width="22" height="22" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round">
<path d="M23 19a2 2 0 0 1-2 2H3a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h4l2-3h6l2 3h4a2 2 0 0 1 2 2z"></path>
<circle cx="12" cy="13" r="4"></circle>
</svg>
</a>
{% endif %}
</div>
</header>
<table>
<thead>