mirror of
https://github.com/sissbruecker/linkding.git
synced 2025-08-08 11:18:28 +02:00
Add about section in settings (#134)
* About section in settings * Added about section in settings tab * fix code style Co-authored-by: Sascha Ißbrücker <sascha.issbruecker@googlemail.com>
This commit is contained in:
@@ -69,6 +69,15 @@
|
|||||||
{% endif %}
|
{% endif %}
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
|
{# About section #}
|
||||||
|
<section class="content-area">
|
||||||
|
<h2>About</h2>
|
||||||
|
<p>Version: {{ app_version }}</p>
|
||||||
|
<p>
|
||||||
|
Code: <a href="https://github.com/sissbruecker/linkding/"
|
||||||
|
target="_blank">GitHub</a>
|
||||||
|
</p>
|
||||||
|
</section>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
@@ -14,6 +14,12 @@ from bookmarks.services import importer
|
|||||||
|
|
||||||
logger = logging.getLogger(__name__)
|
logger = logging.getLogger(__name__)
|
||||||
|
|
||||||
|
try:
|
||||||
|
with open("version.txt", "r") as f:
|
||||||
|
app_version = f.read().strip("\n")
|
||||||
|
except Exception as exc:
|
||||||
|
logging.exception(exc)
|
||||||
|
pass
|
||||||
|
|
||||||
@login_required
|
@login_required
|
||||||
def general(request):
|
def general(request):
|
||||||
@@ -30,6 +36,7 @@ def general(request):
|
|||||||
'form': form,
|
'form': form,
|
||||||
'import_success_message': import_success_message,
|
'import_success_message': import_success_message,
|
||||||
'import_errors_message': import_errors_message,
|
'import_errors_message': import_errors_message,
|
||||||
|
'app_version': app_version
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user