Skip to content

Commit

Permalink
Only support kiosk mode
Browse files Browse the repository at this point in the history
  • Loading branch information
atjn committed Dec 11, 2024
1 parent dedff8c commit 85bcad3
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 29 deletions.
18 changes: 0 additions & 18 deletions stregsystem/migrations/0021_room_kiosk_mode.py

This file was deleted.

1 change: 0 additions & 1 deletion stregsystem/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -564,7 +564,6 @@ class Meta:
class Room(models.Model):
name = models.CharField(max_length=64)
description = models.CharField(max_length=64)
kiosk_mode = models.BooleanField(default=True)

@deprecated
def __unicode__(self):
Expand Down
10 changes: 2 additions & 8 deletions stregsystem/templates/stregsystem/external_link.html
Original file line number Diff line number Diff line change
@@ -1,17 +1,11 @@
{% load static %}

{% if room.kiosk_mode %}
<button class="external-link kiosk-mode" popovertarget="external-link-popover-{{ id }}">
<button class="external-link" popovertarget="external-link-popover-{{ id }}">
{{ text }}
</button>
<div popover id="external-link-popover-{{ id }}" class="external-link-popover kiosk-mode">
<div popover id="external-link-popover-{{ id }}" class="external-link-popover">
<p>{{ text }}</p>
<button autofocus popovertarget="external-link-popover-{{ id }}">{% include "./cross.html" with title="Luk" %}</button>
<img alt="" src="{% static "/stregsystem/external_link_qrs/" %}{{ id }}.svg"/>
<p>{{ href }}</p>
</div>
{% else %}
<a class="external-link link-mode" target="_blank" href="{{ href }}">
{{ text }}
</a>
{% endif %}
2 changes: 0 additions & 2 deletions stregsystem/templates/stregsystem/gdpr.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
If JS or CSS is disabled/broken, the other solution can still remove the information,
which means this setup is much more likely to work even in weird browsers.
{% endcomment %}
{% if room.kiosk_mode %}
<style>
.username,
.remainingbalance {
Expand Down Expand Up @@ -43,4 +42,3 @@
}
}, 5000);
</script>
{% endif %}

0 comments on commit 85bcad3

Please sign in to comment.