feat: clickable title

This commit is contained in:
eneller
2025-03-23 23:24:45 +01:00
parent 9fe5d3dcde
commit 24c986cbe9
2 changed files with 3 additions and 3 deletions

View File

@@ -18,7 +18,7 @@ gbnetloc = urlparse(allbooks_url).netloc
def index(request: HttpRequest):
context = {
'title': 'epub2go',
'http_host': request.META['HTTP_HOST'],
'http_host': f'http://{ request.META['HTTP_HOST'] }',
'books': books,
'book_count': len(books),
'allbooks_url': allbooks_url,

View File

@@ -18,7 +18,7 @@
<body>
<header>
<div>
<h1>{{ title }}</h1>
<h1><a href="{{ http_host }}">{{ title }}</a></h1>
<h2>1 Click Download für Literatur</h2>
</div>
<search>
@@ -27,7 +27,7 @@
</form>
</search>
<small>Im Moment finden sich hier <a href="{{ allbooks_url }}">{{ book_count }} Bücher.</a> </small>
<a href="javascript:void(window.open('http://{{ http_host }}/?t=' + encodeURIComponent(window.location.toString())))" title="Als Lesezeichen speichern">
<a href="javascript:void(window.open('{{ http_host }}/?t=' + encodeURIComponent(window.location.toString())))" title="Als Lesezeichen speichern">
<img src="{% static 'bookmark.svg' %}" alt="Bookmarklet" class="header-icon">
</a>
<a href="https://github.com/eneller/epub2go-web">