roundabout,
created on Tuesday, 19 March 2024, 16:13:54 (1710864834),
received on Wednesday, 31 July 2024, 06:54:42 (1722408882)
Author identity: vlad <vlad.muntoiu@gmail.com>
788b3ec0f0c614797a92e4e4f9902e28dbeb721b
app.py
@@ -111,7 +111,7 @@ def about():
return flask.render_template("about.html", platform=platform)
@app.route("/language/", methods=["POST"])
@app.route("/language", methods=["POST"])
def set_locale():
response = flask.redirect(flask.request.referrer if flask.request.referrer else "/", code=303)
if not flask.request.form.get("language"):
@@ -122,6 +122,13 @@ def set_locale():
return response
@app.route("/cookie-dismiss")
def dismiss_banner():
response = flask.redirect(flask.request.referrer if flask.request.referrer else "/", code=303)
response.set_cookie("cookie-banner", "1")
return response
@app.route("/help/")
def help_index():
return flask.render_template("help.html", faqs=config.faqs)
i18n/messages.pot
@@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: PROJECT VERSION\n"
"Report-Msgid-Bugs-To: EMAIL@ADDRESS\n"
"POT-Creation-Date: 2024-03-16 19:55+0200\n"
"POT-Creation-Date: 2024-03-19 18:02+0200\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
@@ -17,63 +17,63 @@ msgstr ""
"Content-Transfer-Encoding: 8bit\n"
"Generated-By: Babel 2.14.0\n"
#: app.py:75 templates/default.html:118
#: app.py:75 templates/default.html:128
msgid "English"
msgstr ""
#: app.py:152
#: app.py:159
msgid "Settings saved"
msgstr ""
#: app.py:189
#: app.py:196
msgid "Successfully logged in as {username}"
msgstr ""
#: app.py:193
#: app.py:200
msgid "User not found"
msgstr ""
#: app.py:197
#: app.py:204
msgid "Invalid password"
msgstr ""
#: app.py:210
#: app.py:217
msgid "Usernames may only contain Latin alphabet, numbers, '-' and '_'"
msgstr ""
#: app.py:217
#: app.py:224
msgid "Sorry, {username} is a system path"
msgstr ""
#: app.py:225
#: app.py:232
msgid "The username {username} is taken"
msgstr ""
#: app.py:230
#: app.py:237
msgid "Make sure the passwords match"
msgstr ""
#: app.py:239
#: app.py:246
msgid "Successfully created and logged in as {username}"
msgstr ""
#: app.py:263
#: app.py:270
msgid "Repository names may only contain Latin alphabet, numbers, '-' and '_'"
msgstr ""
#: app.py:277
#: app.py:284
msgid "Successfully created repository {name}"
msgstr ""
#: app.py:285
#: app.py:292
msgid "Successfully logged out"
msgstr ""
#: app.py:997
#: app.py:1004
msgid "Bad branch name"
msgstr ""
#: app.py:1004
#: app.py:1011
msgid "Head can't be restricted"
msgstr ""
@@ -177,7 +177,7 @@ msgstr ""
msgid "Notifications"
msgstr ""
#: templates/default.html:37 templates/default.html:88
#: templates/default.html:37 templates/default.html:98
#: templates/new-repo.html:3 templates/new-repo.html:11
msgid "Create repository"
msgstr ""
@@ -191,34 +191,45 @@ msgstr ""
msgid "Settings"
msgstr ""
#: templates/default.html:49 templates/default.html:97
#: templates/default.html:49 templates/default.html:107
msgid "Log out"
msgstr ""
#: templates/default.html:54 templates/default.html:100
#: templates/default.html:54 templates/default.html:110
#: templates/no-home.html:38
msgid "Log in or sign up"
msgstr ""
#: templates/default.html:69
msgid ""
"By using this site, you agree to have cookies stored on your device, "
"strictly for functional purposes, such as storing your session and "
"preferences."
msgstr ""
#: templates/default.html:72
msgid "Dismiss"
msgstr ""
#: templates/default.html:82
msgid "roundabout"
msgstr ""
#: templates/default.html:91 templates/favourites.html:3
#: templates/default.html:101 templates/favourites.html:3
#: templates/favourites.html:6
msgid "Favourites"
msgstr ""
#: templates/default.html:94 templates/user-settings.html:3
#: templates/default.html:104 templates/user-settings.html:3
#: templates/user-settings.html:10
msgid "User settings"
msgstr ""
#: templates/default.html:123
#: templates/default.html:133
msgid "Automatic"
msgstr ""
#: templates/default.html:165
#: templates/default.html:175
msgid "Close"
msgstr ""
i18n/ro_RO/LC_MESSAGES/messages.mo
i18n/ro_RO/LC_MESSAGES/messages.po
@@ -7,8 +7,8 @@ msgid ""
msgstr ""
"Project-Id-Version: PROJECT VERSION\n"
"Report-Msgid-Bugs-To: EMAIL@ADDRESS\n"
"POT-Creation-Date: 2024-03-16 19:55+0200\n"
"PO-Revision-Date: 2024-03-16 19:58+0200\n"
"POT-Creation-Date: 2024-03-19 18:02+0200\n"
"PO-Revision-Date: 2024-03-19 18:05+0200\n"
"Last-Translator: roundabout <root@roundabout-host.com>\n"
"Language-Team: ro_RO <LL@li.org>\n"
"Language: ro_RO\n"
@@ -20,63 +20,63 @@ msgstr ""
"Generated-By: Babel 2.14.0\n"
"X-Generator: Poedit 3.4.2\n"
#: app.py:75 templates/default.html:118
#: app.py:75 templates/default.html:128
msgid "English"
msgstr "limba română"
#: app.py:152
#: app.py:159
msgid "Settings saved"
msgstr "Setările au fost salvate"
#: app.py:189
#: app.py:196
msgid "Successfully logged in as {username}"
msgstr "Conectat drept {username} cu succes"
#: app.py:193
#: app.py:200
msgid "User not found"
msgstr "Utilizatorul nu poate fi găsit"
#: app.py:197
#: app.py:204
msgid "Invalid password"
msgstr "Parolă nevalidă"
#: app.py:210
#: app.py:217
msgid "Usernames may only contain Latin alphabet, numbers, '-' and '_'"
msgstr "Numele de utilizator pot conține doar alfabetul latin, numere, «-» și «_»"
#: app.py:217
#: app.py:224
msgid "Sorry, {username} is a system path"
msgstr "Scuze, {username} este o cale de sistem"
#: app.py:225
#: app.py:232
msgid "The username {username} is taken"
msgstr "Numele de utilizator {username} este deja folosit"
#: app.py:230
#: app.py:237
msgid "Make sure the passwords match"
msgstr "Ai grijă ca parolele să se potrivească"
#: app.py:239
#: app.py:246
msgid "Successfully created and logged in as {username}"
msgstr "Creat și conectat drept {username} cu succes"
#: app.py:263
#: app.py:270
msgid "Repository names may only contain Latin alphabet, numbers, '-' and '_'"
msgstr "Numele de depozit pot conține doar alfabetul latin, numere, «-» și «_»"
#: app.py:277
#: app.py:284
msgid "Successfully created repository {name}"
msgstr "Creat depozitul {name} cu succes"
#: app.py:285
#: app.py:292
msgid "Successfully logged out"
msgstr "Ieșit din cont cu succes"
#: app.py:997
#: app.py:1004
msgid "Bad branch name"
msgstr "Nume de ramificație greșit"
#: app.py:1004
#: app.py:1011
msgid "Head can't be restricted"
msgstr "Vârful nu poate fi restricționat"
@@ -196,7 +196,7 @@ msgstr "Sistem de operare:"
msgid "Notifications"
msgstr "Notificări"
#: templates/default.html:37 templates/default.html:88 templates/new-repo.html:3
#: templates/default.html:37 templates/default.html:98 templates/new-repo.html:3
#: templates/new-repo.html:11
msgid "Create repository"
msgstr "Creează depozit"
@@ -209,33 +209,46 @@ msgstr "Preferatele tale"
msgid "Settings"
msgstr "Setări"
#: templates/default.html:49 templates/default.html:97
#: templates/default.html:49 templates/default.html:107
msgid "Log out"
msgstr "Deconectează-te"
#: templates/default.html:54 templates/default.html:100 templates/no-home.html:38
#: templates/default.html:54 templates/default.html:110 templates/no-home.html:38
msgid "Log in or sign up"
msgstr "Conectează-te sau înregistrează-te"
#: templates/default.html:69
msgid ""
"By using this site, you agree to have cookies stored on your device, strictly "
"for functional purposes, such as storing your session and preferences."
msgstr ""
"Folosind acest site, ești de acord să stocăm „cookie”-uri pe aparatul tău, "
"strict pentru utilizări funcționale, cum ar fi reținerea sesiunii sau a "
"preferințelor."
#: templates/default.html:72
msgid "Dismiss"
msgstr "Închide"
#: templates/default.html:82
msgid "roundabout"
msgstr "giratoriu"
#: templates/default.html:91 templates/favourites.html:3
#: templates/default.html:101 templates/favourites.html:3
#: templates/favourites.html:6
msgid "Favourites"
msgstr "Favorite"
#: templates/default.html:94 templates/user-settings.html:3
#: templates/default.html:104 templates/user-settings.html:3
#: templates/user-settings.html:10
msgid "User settings"
msgstr "Setări utilizator"
#: templates/default.html:123
#: templates/default.html:133
msgid "Automatic"
msgstr "Automat"
#: templates/default.html:165
#: templates/default.html:175
msgid "Close"
msgstr "Închide"
static/style.css
@@ -367,4 +367,15 @@ header {
font-size: 1.5rem;
background: transparent !important;
box-shadow: none !important;
}
}
#cookie-info {
background: var(--color-primary);
color: var(--color-primary-text);
align-items: center;
justify-content: space-between;
}
#cookie-info > p {
padding: 8px 1em;
}
templates/default.html
@@ -63,6 +63,16 @@
{% block dialogs %}
{% endblock %}
<x-vbox class="nopad" style="align-items: stretch; height: 100vh;">
{% if "cookie-banner" not in request.cookies %}
<x-hbox id="cookie-info">
<p>
{% trans %}By using this site, you agree to have cookies stored on your device, strictly for functional purposes, such as storing your session and preferences.{% endtrans %}
</p>
<x-buttonbox>
<a href="/cookie-dismiss" class="button button-flat button-neutral">{% trans %}Dismiss{% endtrans %}</a>
</x-buttonbox>
</x-hbox>
{% endif %}
<header>
<nav id="global-nav" class="breadcrumbs">
<a href="javascript:document.getElementById('sidenav').showModal();" id="sidenav-trigger">