-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Clicking the link will show a page with a QR Code linking to the previous page
- Loading branch information
1 parent
0a90566
commit a0b810a
Showing
6 changed files
with
68 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Add link to My Stuff that leads to a generated QR Code linking to the page it is called from |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
{% extends "base.html" %} | ||
|
||
{% load crispy_forms_tags %} | ||
|
||
{% block base_header_additional_head %} | ||
<link rel="stylesheet" href="{{ STATIC_URL }}css/nav.css" /> | ||
<script>require(['src/navigation_preferences']);</script> | ||
{% endblock %} | ||
|
||
{% block base_content %} | ||
{% if qr_code %} | ||
<img src="data:image/png;base64,{{qr_code}}" alt="QR Code linking to previous side"> | ||
{% else %} | ||
<div class="alert-box warning with-icon"> | ||
No previous side could be found. This functionality does not work when directly opening this page. | ||
</div> | ||
{% endif %} | ||
|
||
{% endblock %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters