mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-25 16:54:03 -04:00
remove show_more component
This commit is contained in:
@@ -1,6 +0,0 @@
|
|||||||
{% macro show_more(url, label, with_border=True) %}
|
|
||||||
<a
|
|
||||||
href="{{ url }}"
|
|
||||||
class="usa-link show-more{% if not with_border %}-no-border{% endif %}"
|
|
||||||
><span>{{ label }}</span></a>
|
|
||||||
{% endmacro %}
|
|
||||||
@@ -1,5 +1,4 @@
|
|||||||
{% from "components/table.html" import list_table, field, right_aligned_field_heading, row_heading %}
|
{% from "components/table.html" import list_table, field, right_aligned_field_heading, row_heading %}
|
||||||
{% from "components/show-more.html" import show_more %}
|
|
||||||
|
|
||||||
<div class="ajax-block-container">
|
<div class="ajax-block-container">
|
||||||
{% if current_service.scheduled_job_stats.count %}
|
{% if current_service.scheduled_job_stats.count %}
|
||||||
|
|||||||
@@ -1,6 +1,5 @@
|
|||||||
{% extends "withnav_template.html" %}
|
{% extends "withnav_template.html" %}
|
||||||
|
|
||||||
{% from "components/show-more.html" import show_more %}
|
|
||||||
{% from "components/table.html" import list_table, field, right_aligned_field_heading, hidden_field_heading %}
|
{% from "components/table.html" import list_table, field, right_aligned_field_heading, hidden_field_heading %}
|
||||||
{% from "components/ajax-block.html" import ajax_block %}
|
{% from "components/ajax-block.html" import ajax_block %}
|
||||||
|
|
||||||
@@ -56,10 +55,10 @@
|
|||||||
{% if current_user.has_permissions('manage_service') %}
|
{% if current_user.has_permissions('manage_service') %}
|
||||||
<h3 class='margin-bottom-0' id="current-year"></h3>
|
<h3 class='margin-bottom-0' id="current-year"></h3>
|
||||||
{{ ajax_block(partials, updates_url, 'usage') }}
|
{{ ajax_block(partials, updates_url, 'usage') }}
|
||||||
{{ show_more(
|
<a
|
||||||
url_for(".usage", service_id=current_service['id']),
|
href="{{ url_for('.usage', service_id=current_service['id']) }}"
|
||||||
'See all usage'
|
class="usa-link show-more"
|
||||||
) }}
|
><span>See all usage</span></a>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
{% from "components/table.html" import list_table, field, right_aligned_field_heading, row_heading, spark_bar_field %}
|
{% from "components/table.html" import list_table, field, right_aligned_field_heading, row_heading, spark_bar_field %}
|
||||||
{% from "components/show-more.html" import show_more %}
|
|
||||||
|
|
||||||
<div class="ajax-block-container">
|
<div class="ajax-block-container">
|
||||||
{% if template_statistics|length > 1 %}
|
{% if template_statistics|length > 1 %}
|
||||||
@@ -25,11 +24,10 @@
|
|||||||
|
|
||||||
{{ spark_bar_field(item.count, most_used_template_count, id=item.template_id) }}
|
{{ spark_bar_field(item.count, most_used_template_count, id=item.template_id) }}
|
||||||
{% endcall %}
|
{% endcall %}
|
||||||
{{ show_more(
|
<a
|
||||||
url_for('.template_usage', service_id=current_service.id),
|
href="{{ url_for('.template_usage', service_id=current_service.id) }}"
|
||||||
'See templates used by month',
|
class="usa-link show-more-no-border"
|
||||||
with_border=False
|
><span>See templates used by month</span></a>
|
||||||
) }}
|
|
||||||
</div>
|
</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user