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;
}
&-link {
@include bold-24;
&-link-destructive {
color: $error-colour;
&-destructive {
@include bold-24;
&:visited,
&:link {
color: $error-colour;
}
&:visited,
&:link {
@include bold-24;
color: $error-colour;
}
&:hover {
color: $mellow-red;
}
&:hover {
color: $mellow-red;
}
}

View File

@@ -5,7 +5,7 @@
{% for item in items %}
{% if item.title and item.link %}
<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 %}
<div class="browse-list-hint">
{{ item.hint }}

View File

@@ -21,7 +21,7 @@
{% endif %}
{% for org in organisations %}
<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">
{{ org.count_of_live_services }}
live service{% if org.count_of_live_services != 1 %}s{% endif %}
@@ -30,7 +30,7 @@
{% endfor %}
{% for service in services %}
<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>
{% endfor %}
{% if show_heading %}
@@ -64,7 +64,7 @@
</div>
<ul class="column-three-quarters">
<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">
{{ org_count|format_thousands }} organisations, {{ live_service_count|format_thousands }} live services
</p>

View File

@@ -43,7 +43,7 @@
<ul>
{% for service in services_found %}
<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>
<hr>
{% endfor %}

View File

@@ -58,11 +58,11 @@ Inbound Numbers
{% endif %}
</th>
<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>
</tr>
{% endfor %}
</tbody>
</table>
{% endblock %}
{% endblock %}

View File

@@ -31,7 +31,7 @@
<ul>
{% for org in organisations %}
<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">
{{ org.count_of_live_services }}
live service{% if org.count_of_live_services != 1 %}s{% endif %}