Skip to content

Commit

Permalink
Update the html templates
Browse files Browse the repository at this point in the history
  • Loading branch information
sr525 committed Feb 3, 2025
1 parent 25b71cb commit a9eb682
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions templates/metrics/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
<H3>Official Collections</H3>
<ul>
{% for entry in collection_entries %}
<li><a href="{{ url_for("metrics.collection", repo=entry["repo"], collection=entry["url"]) }}">
<li><a href="{{ url_for(".infoPage", repo=entry["repo"], collection=entry["url"]) }}">
{{entry["name"]}}
</a>
</li>
Expand All @@ -22,7 +22,7 @@ <H3>Official Collections</H3>
<H3>User Collections</H3>
<ul>
{% for entry in user_collection_entries %}
<li><a href="{{ url_for("metrics.collection", repo=entry["repo"], collection=entry["url"]) }}">
<li><a href="{{ url_for(".infoPage", repo=entry["repo"], collection=entry["url"]) }}">
{{entry["name"]}}
</a>
</li>
Expand Down
8 changes: 4 additions & 4 deletions templates/metrics/tracts.html
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,14 @@
</tr>
</thead>

{% for tract in content_dict %}
{% for key in content_dict %}
<tr>
<td>
<a href={{url_for(content_dict[tract][0].text, collection_name=collection_urlencoded, tract=tract)}}>
{{tract}}
<a href={{url_for(content_dict[key][0].text, collection_name=collection_urlencoded, tract=key)}}>
{{key}}
</a>
</td>
{% for cell in content_dict[tract][1:] %}
{% for cell in content_dict[key][1:] %}
{% if cell.text|length == 1 %}
<td>{{cell.text|safe}}</td>
{% else %}
Expand Down

0 comments on commit a9eb682

Please sign in to comment.