Skip to content

Commit

Permalink
🩹 add .alert-link to links in alerts
Browse files Browse the repository at this point in the history
  • Loading branch information
krmax44 committed Nov 1, 2024
1 parent a8bc881 commit b5b0a56
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 13 deletions.
5 changes: 2 additions & 3 deletions froide/foirequest/templates/foirequest/attachment/show.html
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,8 @@ <h2>{% blocktrans with name=attachment.name %}Attachment “{{ name }}”{% endb
{% if foirequest|can_write_foirequest:request or foirequest|can_moderate_pii_foirequest:request %}
{% if foirequest.awaits_classification %}
<div class="alert alert-warning">
<a href="{% url 'foirequest-show' slug=foirequest.slug %}#set-status">
{% translate "Don't forget to set the status of this request!" %}
</a>
<a href="{% url 'foirequest-show' slug=foirequest.slug %}#set-status"
class="alert-link">{% translate "Don't forget to set the status of this request!" %}</a>
</div>
{% endif %}
{% if attachment.can_redact %}
Expand Down
14 changes: 9 additions & 5 deletions froide/foirequest/templates/foirequest/header/header.html
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,15 @@ <h4>{% trans "Special access" %}</h4>
<li>
{% blocktrans %}Have you received a reply by <b>postal mail</b>?{% endblocktrans %}
&rarr;
<a href="{% url 'foirequest-upload_postal_message' slug=object.slug %}">{% translate "Upload the letter now!" %}</a>
<a href="{% url 'foirequest-upload_postal_message' slug=object.slug %}"
class="alert-link">{% translate "Upload the letter now!" %}</a>
</li>
<li>
{% blocktrans %}Have you not gotten any reply?{% endblocktrans %}
&rarr;
<a href="#write-messages" data-scrollto="write-messages">{% translate "Write a reminder to the public body!" %}</a>
<a href="#write-messages"
data-scrollto="write-messages"
class="alert-link">{% translate "Write a reminder to the public body!" %}</a>
</li>
{% block aditional_actions %}{% endblock %}
</ul>
Expand All @@ -49,9 +52,10 @@ <h4>{% trans "Special access" %}</h4>
{% if object|can_write_foirequest:request and object.has_been_refused and object.can_be_escalated %}
<div class="alert alert-info d-print-none">
{% blocktrans %}You request has been refused.{% endblocktrans %}
<a href="#escalate" data-tabgo="tab" data-scrollto="escalate">
{% blocktrans %}Consider sending a letter to a mediator{% endblocktrans %}
</a>
<a href="#escalate"
data-tabgo
data-scrollto="escalate"
class="alert-link">{% blocktrans %}Consider sending a letter to a mediator{% endblocktrans %}</a>
</div>
{% endif %}
{% if object.banner %}<div class="alert alert-info">{{ object.banner | markdown }}</div>{% endif %}
Expand Down
2 changes: 1 addition & 1 deletion froide/foirequest/templates/foirequest/request.html
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ <h6>{% blocktrans %}Important Notes:{% endblocktrans %}</h6>
</div>
{% if not request.user.is_authenticated %}
<div class="alert alert-warning">
<a href="{% url 'account-login' %}">{% trans "You have to login or signup first in order to make a request." %}</a>
<a href="{% url 'account-login' %}" class="alert-link">{% trans "You have to login or signup first in order to make a request." %}</a>
</div>
{% else %}
{% if publicbodies %}
Expand Down
2 changes: 1 addition & 1 deletion froide/foisite/templates/foisite/banner.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
{% if foisite %}
<div class="container">
<div class="alert alert-info">
{% blocktrans with name=foisite.name country_name=foisite.country_name url=foisite.url %}It looks like you are visiting from {{ country_name }}. Did you know that there is an <a href="{{ url }}">FOI site for {{ country_name }} called {{ name }}</a>?{% endblocktrans %}
{% blocktrans with name=foisite.name country_name=foisite.country_name url=foisite.url %}It looks like you are visiting from {{ country_name }}. Did you know that there is an <a href="{{ url }}" class="alert-link">FOI site for {{ country_name }} called {{ name }}</a>?{% endblocktrans %}
</div>
</div>
{% endif %}
9 changes: 6 additions & 3 deletions froide/publicbody/templates/publicbody/show_foilaw.html
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,12 @@ <h2>{{ object.name }}</h2>
<div class="tab-pane active" id="legaltext">
<div class="alert alert-info">
{% blocktrans %}
This is a copy of the law, for which we can't guarantee correctness.
{% endblocktrans %}
<a href="{{ object.url }}" target="_blank" rel="noopener">
This is a copy of the law, for which we can't guarantee correctness.
{% endblocktrans %}
<a href="{{ object.url }}"
target="_blank"
rel="noopener"
class="alert-link">
{% blocktrans with name=object.name %}Official law text of {{ name }}{% endblocktrans %}
</a>
</div>
Expand Down

0 comments on commit b5b0a56

Please sign in to comment.