Skip to content

Commit

Permalink
Merge pull request #3191 from digitalfabrik/feature/Improve_link_chec…
Browse files Browse the repository at this point in the history
…ker_GUI

Improve link checker GUI
  • Loading branch information
MizukiTemma authored Nov 30, 2024
2 parents 1328f87 + 094f97e commit 8490250
Show file tree
Hide file tree
Showing 3 changed files with 42 additions and 19 deletions.
16 changes: 8 additions & 8 deletions integreat_cms/cms/templates/linkcheck/links_by_filter.html
Original file line number Diff line number Diff line change
Expand Up @@ -31,28 +31,28 @@ <h1 class="heading">
</div>
<a href="{% if view.kwargs.url_filter == 'valid' %}#{% else %}{% url_for_current_region 'linkcheck' request url_filter='valid' %}{{ pagination_params }}{% endif %}"
class="pr-2 {% if view.kwargs.url_filter == 'valid' %}text-black font-bold cursor-default{% else %}bg-transparent hover:underline text-blue-500 hover:text-blue-600 cursor-pointer{% endif %}">
{% translate "Valid" %}
{% translate "Valid" %}
<span class="{% if view.kwargs.url_filter == 'valid' %}text-gray-500 font-normal{% endif %}">
({{ number_valid_urls }})
</span>
</a>
<a href="{% if view.kwargs.url_filter == 'invalid' %}#{% else %}{% url_for_current_region 'linkcheck' request url_filter='invalid' %}{{ pagination_params }}{% endif %}"
class="px-2 border-l-2 border-gray-500 {% if view.kwargs.url_filter == 'invalid' %}text-black font-bold cursor-default{% else %}bg-transparent hover:underline text-blue-500 hover:text-blue-600 cursor-pointer{% endif %}">
{% translate "Invalid" %}
⚠️ {% translate "Verification needed" %}
<span class="{% if view.kwargs.url_filter == 'invalid' %}text-gray-500 font-normal{% endif %}">
({{ number_invalid_urls }})
</span>
</a>
<a href="{% if view.kwargs.url_filter == 'unchecked' %}#{% else %}{% url_for_current_region 'linkcheck' request url_filter='unchecked' %}{{ pagination_params }}{% endif %}"
class="px-2 border-l-2 border-gray-500 {% if view.kwargs.url_filter == 'unchecked' %}text-black font-bold cursor-default{% else %}bg-transparent hover:underline text-blue-500 hover:text-blue-600 cursor-pointer{% endif %}">
{% translate "Unchecked" %}
{% translate "Unchecked" %}
<span class="{% if view.kwargs.url_filter == 'unchecked' %}text-gray-500 font-normal{% endif %}">
({{ number_unchecked_urls }})
</span>
</a>
<a href="{% if view.kwargs.url_filter == 'ignored' %}#{% else %}{% url_for_current_region 'linkcheck' request url_filter='ignored' %}{{ pagination_params }}{% endif %}"
class="px-2 border-l-2 border-gray-500 {% if view.kwargs.url_filter == 'ignored' %}text-black font-bold cursor-default{% else %}bg-transparent hover:underline text-blue-500 hover:text-blue-600 cursor-pointer{% endif %}">
{% translate "Ignored" %}
{% translate "Link verified" %}
<span class="{% if view.kwargs.url_filter == 'ignored' %}text-gray-500 font-normal{% endif %}">
({{ number_ignored_urls }})
</span>
Expand All @@ -61,7 +61,7 @@ <h1 class="heading">
{% if LINKCHECK_EMAIL_ENABLED %}
<a href="{% if view.kwargs.url_filter == 'email' %}#{% else %}{% url_for_current_region 'linkcheck' request url_filter='email' %}{{ pagination_params }}{% endif %}"
class="px-2 border-l-2 border-gray-500 {% if view.kwargs.url_filter == 'email' %}text-black font-bold cursor-default{% else %}bg-transparent hover:underline text-blue-500 hover:text-blue-600 cursor-pointer{% endif %}">
{% translate "Email links" %}
📧 {% translate "Email links" %}
<span class="{% if view.kwargs.url_filter == 'email' %}text-gray-500 font-normal{% endif %}">
({{ number_email_urls }})
</span>
Expand All @@ -70,7 +70,7 @@ <h1 class="heading">
{% if LINKCHECK_PHONE_ENABLED %}
<a href="{% if view.kwargs.url_filter == 'phone' %}#{% else %}{% url_for_current_region 'linkcheck' request url_filter='phone' %}{{ pagination_params }}{% endif %}"
class="px-2 border-l-2 border-gray-500 {% if view.kwargs.url_filter == 'phone' %}text-black font-bold cursor-default{% else %}bg-transparent hover:underline text-blue-500 hover:text-blue-600 cursor-pointer{% endif %}">
{% translate "Phone links" %}
{% translate "Phone links" %}
<span class="{% if view.kwargs.url_filter == 'phone' %}text-gray-500 font-normal{% endif %}">
({{ number_phone_urls }})
</span>
Expand Down Expand Up @@ -173,7 +173,7 @@ <h1 class="heading">
{% if view.kwargs.url_filter == 'ignored' %}
<option value="unignore"
data-bulk-action="{% url_for_current_region 'linkcheck' request url_filter=view.kwargs.url_filter %}{{ pagination_params }}">
{% translate "Unignore" %}
{% translate "Revoke verification" %}
</option>
{% else %}
<option value="recheck"
Expand All @@ -182,7 +182,7 @@ <h1 class="heading">
</option>
<option value="ignore"
data-bulk-action="{% url_for_current_region 'linkcheck' request url_filter=view.kwargs.url_filter %}{{ pagination_params }}">
{% translate "Ignore" %}
{% translate "Mark as verified" %}
</option>
{% endif %}
</select>
Expand Down
43 changes: 32 additions & 11 deletions integreat_cms/locale/de/LC_MESSAGES/django.po
Original file line number Diff line number Diff line change
Expand Up @@ -6788,16 +6788,16 @@ msgid "Valid"
msgstr "Gültig"

#: cms/templates/linkcheck/links_by_filter.html
msgid "Invalid"
msgstr "Ungültig"
msgid "Verification needed"
msgstr "Überprüfung notwendig"

#: cms/templates/linkcheck/links_by_filter.html
msgid "Unchecked"
msgstr "Nicht geprüft"

#: cms/templates/linkcheck/links_by_filter.html
msgid "Ignored"
msgstr "Ignoriert"
msgid "Link verified"
msgstr "Link überprüft"

#: cms/templates/linkcheck/links_by_filter.html
msgid ""
Expand Down Expand Up @@ -6893,16 +6893,16 @@ msgid "Links selected"
msgstr "Links ausgewählt"

#: cms/templates/linkcheck/links_by_filter.html
msgid "Unignore"
msgstr "Nicht ignorieren"
msgid "Revoke verification"
msgstr "Verifizierung entziehen"

#: cms/templates/linkcheck/links_by_filter.html
msgid "Recheck"
msgstr "Erneut prüfen"

#: cms/templates/linkcheck/links_by_filter.html
msgid "Ignore"
msgstr "Ignorieren"
msgid "Mark as verified"
msgstr "Als überprüft markieren"

#: cms/templates/linkcheck/search_and_replace_link.html
msgid "Search & replace in links"
Expand Down Expand Up @@ -11121,6 +11121,30 @@ msgstr ""
"Diese Seite konnte nicht importiert werden, da sie zu einer anderen Region "
"gehört ({})."

#~ msgid "Invalid"
#~ msgstr "Ungültig"

#~ msgid "Ignored"
#~ msgstr "Ignoriert"

#~ msgid "Unignore"
#~ msgstr "Nicht ignorieren"

#~ msgid "Ignore"
#~ msgstr "Ignorieren"

#~ msgid "{}{}"
#~ msgstr "{}{}"

#~ msgid " "
#~ msgstr " "

#~ msgid "%s %s"
#~ msgstr "%s %s"

#~ msgid "%s with %s"
#~ msgstr "%s mit %s"

#~ msgid "Individual languages can be hidden by clicking on the labels."
#~ msgstr ""
#~ "Einzelne Sprachen können durch Anklicken der Beschriftungen ausgeblendet "
Expand Down Expand Up @@ -11550,9 +11574,6 @@ msgstr ""
#~ msgid "Broken redirect"
#~ msgstr "Fehlerhafte Weiterleitung"

#~ msgid "Email link (not automatically checked)"
#~ msgstr "E-Mail-Link (nicht automatisch geprüft)"

#~ msgid "Empty link"
#~ msgstr "Leerer Link"

Expand Down
2 changes: 2 additions & 0 deletions integreat_cms/release_notes/current/unreleased/2588.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
en: Improve link checker GUI
de: Verbessere die Benutzungsoberfläche des Link-Checkers

0 comments on commit 8490250

Please sign in to comment.