-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(templates): PD activity, and general archives;
- Improved PD activity templates. - Improved archive view templates.
- Loading branch information
1 parent
c952c85
commit e1a26a2
Showing
6 changed files
with
34 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,24 +15,23 @@ <h1>{{ title or pkg.name }} | |
<i class="fa fa-language text-muted mrgn-lft-sm" title="{{ _("This third party metadata element has been translated using an automated translation tool. To report any discrepancies please contact [email protected]") }}"></i> | ||
{% endif %} | ||
</h1> | ||
{% if is_activity_archive %} | ||
<div class="module-alert alert alert-danger mrgn-tp-sm"> | ||
<p> | ||
{% trans url = h.url_for(pkg.type + '.read', id=pkg.id) %}You're currently viewing an old version of this dataset. Some resources may no longer exist or the dataset may not display correctly. To see the current version, click <a href="{{ url }}">here</a>.{% endtrans %} | ||
</p> | ||
</div> | ||
{% endif %} | ||
{% endblock %} | ||
|
||
{% block primary_content_inner %} | ||
{% if not c.is_activity_archive %} | ||
{% if not is_activity_archive %} | ||
{%- snippet 'package/snippets/schemaorg.html', data=pkg -%} | ||
{% endif %} | ||
<div class="module"> | ||
{% block internal_actions %}{% endblock %} | ||
|
||
{% block package_archive_notice %} | ||
{% if c.is_activity_archive %} | ||
<div class="alert alert-error"> | ||
<p> | ||
{% trans url = h.url_for(pkg.type + '.read', id=pkg.id) %}You're currently viewing an old version of this dataset. Some resources may no longer exist or the dataset may not display correctly. To see the current version, click <a href="{{ url }}">here</a>.{% endtrans %} | ||
</p> | ||
</div> | ||
{% endif %} | ||
{% endblock %} | ||
{% block package_archive_notice %}{% endblock %} | ||
|
||
{% block package_item_title %} | ||
<section class="module-content indent-large"> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,7 +11,9 @@ | |
{%- if machine_translated -%} | ||
<i class="fa fa-language text-muted" style="margin-left: 10px;" title="{{ _("This third party metadata element has been translated using an automated translation tool. To report any discrepancies please contact [email protected]") }}"></i> | ||
{%- endif -%} | ||
{{ h.popular('views', res.tracking_summary.total, min=10) }} | ||
{% if 'tracking_summary' in res %} | ||
{{ h.popular('views', res.tracking_summary.total, min=10) }} | ||
{% endif %} | ||
</a> | ||
{% set language_options = h.scheming_get_preset('canada_resource_language').choices %} | ||
<div> | ||
|
@@ -74,7 +76,7 @@ | |
</a> | ||
</li> | ||
{% endif %} | ||
{% if can_edit %} | ||
{% if can_edit and not is_activity_archive %} | ||
<li>{% link_for _('Edit resource'), named_route=pkg.type ~ '_resource.edit', id=pkg.name, resource_id=res.id, class_='dropdown-item', icon='pencil' %}</li> | ||
{% block resource_item_explore_inner scoped %}{% endblock %} | ||
<li>{% link_for _('Views'), named_route=pkg.type ~ '_resource.views', id=pkg.name, resource_id=res.id, class_='dropdown-item', icon='chart-bar' %} | ||
|