Replace browse-list links

This commit is contained in:
Tom Byers
2019-12-11 15:29:50 +00:00
parent 61afbe7a8f
commit 58c08ad89b
6 changed files with 15 additions and 21 deletions

View File

@@ -16,22 +16,16 @@
margin-bottom: $gutter-half; margin-bottom: $gutter-half;
} }
&-link { &-link-destructive {
@include bold-24; color: $error-colour;
&-destructive { &:visited,
@include bold-24; &:link {
color: $error-colour; color: $error-colour;
}
&:visited, &:hover {
&:link { color: $mellow-red;
@include bold-24;
color: $error-colour;
}
&:hover {
color: $mellow-red;
}
} }
} }

View File

@@ -5,7 +5,7 @@
{% for item in items %} {% for item in items %}
{% if item.title and item.link %} {% if item.title and item.link %}
<li class="browse-list-item"> <li class="browse-list-item">
<a href="{{ item.link }}" class="govuk-link govuk-link--no-visited-state browse-list-link{% if item.destructive %}-destructive{% endif %}">{{ item.title }}</a> <a href="{{ item.link }}" class="govuk-link govuk-link--no-visited-state{% if item.destructive %} browse-list-link-destructive{% endif %}">{{ item.title }}</a>
{% if item.hint %} {% if item.hint %}
<div class="browse-list-hint"> <div class="browse-list-hint">
{{ item.hint }} {{ item.hint }}

View File

@@ -21,7 +21,7 @@
{% endif %} {% endif %}
{% for org in organisations %} {% for org in organisations %}
<li class="browse-list-item"> <li class="browse-list-item">
<a href="{{ url_for('.organisation_dashboard', org_id=org.id) }}" class="govuk-link govuk-link--no-visited-state browse-list-link">{{ org.name }}</a> <a href="{{ url_for('.organisation_dashboard', org_id=org.id) }}" class="govuk-link govuk-link--no-visited-state">{{ org.name }}</a>
<p class="browse-list-hint"> <p class="browse-list-hint">
{{ org.count_of_live_services }} {{ org.count_of_live_services }}
live service{% if org.count_of_live_services != 1 %}s{% endif %} live service{% if org.count_of_live_services != 1 %}s{% endif %}
@@ -30,7 +30,7 @@
{% endfor %} {% endfor %}
{% for service in services %} {% for service in services %}
<li class="browse-list-item"> <li class="browse-list-item">
<a href="{{ url_for('.service_dashboard', service_id=service.id) }}" class="govuk-link govuk-link--no-visited-state browse-list-link">{{ service.name }}</a> <a href="{{ url_for('.service_dashboard', service_id=service.id) }}" class="govuk-link govuk-link--no-visited-state">{{ service.name }}</a>
</li> </li>
{% endfor %} {% endfor %}
{% if show_heading %} {% if show_heading %}
@@ -64,7 +64,7 @@
</div> </div>
<ul class="column-three-quarters"> <ul class="column-three-quarters">
<li class="browse-list-item"> <li class="browse-list-item">
<a href="{{ url_for('.organisations') }}" class="govuk-link govuk-link--no-visited-state browse-list-link">All organisations</a> <a href="{{ url_for('.organisations') }}" class="govuk-link govuk-link--no-visited-state">All organisations</a>
<p class="browse-list-hint"> <p class="browse-list-hint">
{{ org_count|format_thousands }} organisations, {{ live_service_count|format_thousands }} live services {{ org_count|format_thousands }} organisations, {{ live_service_count|format_thousands }} live services
</p> </p>

View File

@@ -43,7 +43,7 @@
<ul> <ul>
{% for service in services_found %} {% for service in services_found %}
<li class="browse-list-item"> <li class="browse-list-item">
<a href="{{url_for('.service_dashboard', service_id=service.id)}}" class="govuk-link govuk-link--no-visited-state browse-list-link">{{ service.name }}</a> <a href="{{url_for('.service_dashboard', service_id=service.id)}}" class="govuk-link govuk-link--no-visited-state">{{ service.name }}</a>
</li> </li>
<hr> <hr>
{% endfor %} {% endfor %}

View File

@@ -58,7 +58,7 @@ Inbound Numbers
{% endif %} {% endif %}
</th> </th>
<th style="font-weight:normal;"> <th style="font-weight:normal;">
<a href="{{ url_for('main.service_dashboard', service_id=value.service.id) }}" class="govuk-link govuk-link--no-visited-state browse-list-link">{{ value.service.name }}</a> <a href="{{ url_for('main.service_dashboard', service_id=value.service.id) }}" class="govuk-link govuk-link--no-visited-state">{{ value.service.name }}</a>
</th> </th>
</tr> </tr>
{% endfor %} {% endfor %}

View File

@@ -31,7 +31,7 @@
<ul> <ul>
{% for org in organisations %} {% for org in organisations %}
<li class="browse-list-item"> <li class="browse-list-item">
<a href="{{ url_for('main.organisation_dashboard', org_id=org.id) }}" class="govuk-link govuk-link--no-visited-state browse-list-link">{{ org.name }}</a> <a href="{{ url_for('main.organisation_dashboard', org_id=org.id) }}" class="govuk-link govuk-link--no-visited-state">{{ org.name }}</a>
<p class="browse-list-hint"> <p class="browse-list-hint">
{{ org.count_of_live_services }} {{ org.count_of_live_services }}
live service{% if org.count_of_live_services != 1 %}s{% endif %} live service{% if org.count_of_live_services != 1 %}s{% endif %}