feat: clickable title
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -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">
|
||||
|
||||
Reference in New Issue
Block a user