Skip to content

Commit

Permalink
use alert-link helper class
Browse files Browse the repository at this point in the history
  • Loading branch information
bikubi committed Nov 1, 2024
1 parent 92ab91d commit 987c5ad
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 9 deletions.
2 changes: 1 addition & 1 deletion froide/foirequest/views/message.py
Original file line number Diff line number Diff line change
Expand Up @@ -377,7 +377,7 @@ def edit_postal_message(request, foirequest, message_id):
"We will guide you through the process step-by-step."
),
"newLinkOldFlow": _(
'Should you experience problems, you can use <a href="${url}">the older version</a> here. We welcome feedback!'
'Should you experience problems, you can use <a class="alert-link" href="${url}">the older version</a> here. We welcome feedback!'
),
"newWarning": _("We have redone this part of the app."),
"documentsDragOrder": _("Drag the documents in the right order"),
Expand Down
4 changes: 2 additions & 2 deletions froide/locale/de/LC_MESSAGES/django.po
Original file line number Diff line number Diff line change
Expand Up @@ -7757,8 +7757,8 @@ msgstr "Wir führen Sie Schritt für Schritt durch den Prozess."

#: froide/foirequest/views/message.py
#: frontend/javascript/components/postupload/post-upload.vue
msgid "Should you experience problems, you can use <a href=\"${url}\">the older version</a> here. We welcome feedback!"
msgstr "Sollte etwas nicht funktionieren, gibt es <a href=\"${url}\">hier noch das alte Upload-Formular</a>. Wir würden uns über Feedback freuen."
msgid "Should you experience problems, you can use <a class=\"alert-link\" href=\"${url}\">the older version</a> here. We welcome feedback!"
msgstr "Sollte etwas nicht funktionieren, gibt es <a class=\"alert-link\" href=\"${url}\">hier noch das alte Upload-Formular</a>. Wir würden uns über Feedback freuen."

#: froide/foirequest/views/message.py
#: frontend/javascript/components/postupload/post-upload.vue
Expand Down
6 changes: 0 additions & 6 deletions frontend/javascript/components/postupload/post-upload.vue
Original file line number Diff line number Diff line change
Expand Up @@ -1675,10 +1675,4 @@ addEventListener('hashchange', () => {
padding: 0.25rem 0.25rem 0.25rem 0.75rem;
}
}
/* make links stand out more in alert boxes. needs :deep because <a> in gettext msg */
.alert :deep(a) {
text-decoration: underline;
}
</style>

0 comments on commit 987c5ad

Please sign in to comment.