Skip to content

Commit

Permalink
chore: inform about deletion after inactivity #244 (#245)
Browse files Browse the repository at this point in the history
  • Loading branch information
nwittstruck authored Apr 8, 2024
1 parent 79b6883 commit 892d0f8
Show file tree
Hide file tree
Showing 5 changed files with 49 additions and 14 deletions.
6 changes: 5 additions & 1 deletion lib/qrstorage_web/templates/qr_code/form_recording.html.heex
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,16 @@

<div class="form-group">
<%= render("partials/_recorder.html", f: f, conn: @conn) %>
<p class="form-text text-muted">
<p class="form-text text-body-secondary">
<%= gettext(
"This tool may only be used in Teaching/Learning situations. It is not permitted to enter personal information."
) %>
</p>

<p class="form-text text-danger">
<%= gettext("Recordings are deleted within 30 days of inactivity.") %>
</p>

<div class="invalid-feedback">
<%= error_tag(f, :text) %>
</div>
Expand Down
1 change: 1 addition & 0 deletions lib/qrstorage_web/templates/qr_code/new.html.heex
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
<ul id="teaser" class="list-group list-unstyled">
<li class="list-group-item pb-2 audio d-none"><%= gettext("Create speaking QR-Codes!") %></li>
<li class="list-group-item pb-2 recording d-none"><%= gettext("Create recordings!") %></li>
<li class="list-group-item pb-2 link d-none"><%= gettext("Link images and videos!") %></li>
<li class="list-group-item pb-2 text d-none"><%= gettext("Customize your text!") %></li>
</ul>
Expand Down
20 changes: 15 additions & 5 deletions priv/gettext/de/LC_MESSAGES/default.po
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ msgstr "Oops, da ist etwas schiefgelaufen. Bitte korrigiere die folgenden Fehler

#: lib/qrstorage_web/templates/qr_code/form_audio.html.heex:57
#: lib/qrstorage_web/templates/qr_code/form_link.html.heex:47
#: lib/qrstorage_web/templates/qr_code/form_recording.html.heex:41
#: lib/qrstorage_web/templates/qr_code/form_recording.html.heex:42
#: lib/qrstorage_web/templates/qr_code/form_text.html.heex:56
#, elixir-autogen, elixir-format
msgid "Save"
Expand All @@ -51,7 +51,7 @@ msgstr "Sprachausgabe"
#: lib/qrstorage_web/templates/qr_code/settings/_settings_delete_after.html.heex:3
#, elixir-autogen, elixir-format
msgid "delete after"
msgstr "Speicherdauer in Monaten"
msgstr "Löschung bei Inaktivität in Monaten"

#: lib/qrstorage_web/templates/qr_code/form_audio.html.heex:40
#, elixir-autogen, elixir-format
Expand Down Expand Up @@ -212,12 +212,12 @@ msgstr "Dieses Tool darf nur in Bildungskontexten genutzt werden. Die Eingabe pe
msgid "Create speaking QR-Codes!"
msgstr "Erstelle sprechende QR-Codes!"

#: lib/qrstorage_web/templates/qr_code/new.html.heex:4
#: lib/qrstorage_web/templates/qr_code/new.html.heex:5
#, elixir-autogen, elixir-format
msgid "Customize your text!"
msgstr "Gestalte deinen Text!"

#: lib/qrstorage_web/templates/qr_code/new.html.heex:3
#: lib/qrstorage_web/templates/qr_code/new.html.heex:4
#, elixir-autogen, elixir-format
msgid "Link images and videos!"
msgstr "Verlinke Bilder und Videos!"
Expand All @@ -244,7 +244,7 @@ msgstr "Fehler beim Upload der Audio-Datei."
msgid "Record start/stop"
msgstr "Aufnahme starten/stoppen"

#: lib/qrstorage_web/templates/qr_code/form_recording.html.heex:46
#: lib/qrstorage_web/templates/qr_code/form_recording.html.heex:47
#, elixir-autogen, elixir-format
msgid "Recording is disabled or not supported."
msgstr "Die Aufnahmefunktion des Browsers ist deaktiviert oder wird nicht unterstützt."
Expand All @@ -270,3 +270,13 @@ msgstr "QR-Codes werden nach Inaktivität und Ablauf der ausgewählten Speicherd
#, elixir-autogen, elixir-format
msgid "Qr code tts not stored"
msgstr ""

#: lib/qrstorage_web/templates/qr_code/new.html.heex:3
#, elixir-autogen, elixir-format
msgid "Create recordings!"
msgstr "Nimm Sprache auf!"

#: lib/qrstorage_web/templates/qr_code/form_recording.html.heex:23
#, elixir-autogen, elixir-format
msgid "Recordings are deleted within 30 days of inactivity."
msgstr "Aufnahmen werden nach 30 Tagen Inaktivität gelöscht."
18 changes: 14 additions & 4 deletions priv/gettext/default.pot
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ msgstr ""

#: lib/qrstorage_web/templates/qr_code/form_audio.html.heex:57
#: lib/qrstorage_web/templates/qr_code/form_link.html.heex:47
#: lib/qrstorage_web/templates/qr_code/form_recording.html.heex:41
#: lib/qrstorage_web/templates/qr_code/form_recording.html.heex:42
#: lib/qrstorage_web/templates/qr_code/form_text.html.heex:56
#, elixir-autogen, elixir-format
msgid "Save"
Expand Down Expand Up @@ -211,12 +211,12 @@ msgstr ""
msgid "Create speaking QR-Codes!"
msgstr ""

#: lib/qrstorage_web/templates/qr_code/new.html.heex:4
#: lib/qrstorage_web/templates/qr_code/new.html.heex:5
#, elixir-autogen, elixir-format
msgid "Customize your text!"
msgstr ""

#: lib/qrstorage_web/templates/qr_code/new.html.heex:3
#: lib/qrstorage_web/templates/qr_code/new.html.heex:4
#, elixir-autogen, elixir-format
msgid "Link images and videos!"
msgstr ""
Expand All @@ -243,7 +243,7 @@ msgstr ""
msgid "Record start/stop"
msgstr ""

#: lib/qrstorage_web/templates/qr_code/form_recording.html.heex:46
#: lib/qrstorage_web/templates/qr_code/form_recording.html.heex:47
#, elixir-autogen, elixir-format
msgid "Recording is disabled or not supported."
msgstr ""
Expand All @@ -269,3 +269,13 @@ msgstr ""
#, elixir-autogen, elixir-format
msgid "Qr code tts not stored"
msgstr ""

#: lib/qrstorage_web/templates/qr_code/new.html.heex:3
#, elixir-autogen, elixir-format
msgid "Create recordings!"
msgstr ""

#: lib/qrstorage_web/templates/qr_code/form_recording.html.heex:23
#, elixir-autogen, elixir-format
msgid "Recordings are deleted within 30 days of inactivity."
msgstr ""
18 changes: 14 additions & 4 deletions priv/gettext/en/LC_MESSAGES/default.po
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ msgstr ""

#: lib/qrstorage_web/templates/qr_code/form_audio.html.heex:57
#: lib/qrstorage_web/templates/qr_code/form_link.html.heex:47
#: lib/qrstorage_web/templates/qr_code/form_recording.html.heex:41
#: lib/qrstorage_web/templates/qr_code/form_recording.html.heex:42
#: lib/qrstorage_web/templates/qr_code/form_text.html.heex:56
#, elixir-autogen, elixir-format
msgid "Save"
Expand Down Expand Up @@ -212,12 +212,12 @@ msgstr ""
msgid "Create speaking QR-Codes!"
msgstr ""

#: lib/qrstorage_web/templates/qr_code/new.html.heex:4
#: lib/qrstorage_web/templates/qr_code/new.html.heex:5
#, elixir-autogen, elixir-format
msgid "Customize your text!"
msgstr ""

#: lib/qrstorage_web/templates/qr_code/new.html.heex:3
#: lib/qrstorage_web/templates/qr_code/new.html.heex:4
#, elixir-autogen, elixir-format
msgid "Link images and videos!"
msgstr ""
Expand All @@ -244,7 +244,7 @@ msgstr ""
msgid "Record start/stop"
msgstr ""

#: lib/qrstorage_web/templates/qr_code/form_recording.html.heex:46
#: lib/qrstorage_web/templates/qr_code/form_recording.html.heex:47
#, elixir-autogen, elixir-format
msgid "Recording is disabled or not supported."
msgstr ""
Expand All @@ -270,3 +270,13 @@ msgstr ""
#, elixir-autogen, elixir-format
msgid "Qr code tts not stored"
msgstr ""

#: lib/qrstorage_web/templates/qr_code/new.html.heex:3
#, elixir-autogen, elixir-format
msgid "Create recordings!"
msgstr ""

#: lib/qrstorage_web/templates/qr_code/form_recording.html.heex:23
#, elixir-autogen, elixir-format
msgid "Recordings are deleted within 30 days of inactivity."
msgstr ""

0 comments on commit 892d0f8

Please sign in to comment.