Skip to content

Commit

Permalink
update dataset page title column name; update syling for download and…
Browse files Browse the repository at this point in the history
… outbound tables; fix outbound dataset page links
  • Loading branch information
rshewitt committed Dec 10, 2024
1 parent 0ed0a5e commit 6378f88
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
2 changes: 1 addition & 1 deletion _data/metrics.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ const ENUMS = {
"deviceCategory": "Device Category",
"activeUsers": "Users",
"searchTerm": "Search Term",
"pageTitle": "Title",
"pageTitle": "Page Title",
"eventCount": "Count",
"organization": "Organization",
"count": "Count",
Expand Down
14 changes: 11 additions & 3 deletions pages/metrics/metrics_per-org.html
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,11 @@ <h6 class="usa-heading">Report Date: {{ metrics.end_date}}</h6>
<div class="grid-col-12">
<h4>{{block.meta.title}}</h4>
<p>{{block.meta.description}}</p>
<table class="usa-table usa-table--borderless usa-table--stacked full-width">
{%- if cacheKey == "MOST_VIEWED_DATASETS" -%}
<table class="usa-table usa-table--borderless usa-table--stacked full-width">
{%- else -%}
<table class="usa-table usa-table--borderless usa-table--stacked">
{%- endif -%}
<caption>
<a href="{{block.meta.reportLink}}">{% usa_icon 'file_download' %} Download Full Report -
{{block.meta.title}}</a>
Expand Down Expand Up @@ -60,9 +64,13 @@ <h4>{{block.meta.title}}</h4>
{%- endif -%}

{%- else -%}
{%- assign pageURL = 5 -%}
{%- if cacheKey == "MOST_DOWNLOADED_DATASETS" -%}
{%- assign pageURL = 5 -%}
{%- else -%}
{%- assign pageURL = 4 -%}
{%- endif -%}
{%- if block.data[0][forloop.index0] == "pageTitle" -%}
<td align="right">
<td align="left">
<a href="{{row[pageURL]}}" target="_blank">{{column | toLocaleString | replace: " - Catalog", ""}}</a>
</td>
{%- else -%}
Expand Down

0 comments on commit 6378f88

Please sign in to comment.