-
Notifications
You must be signed in to change notification settings - Fork 2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #5189 from DataShades/package_type-in-urls
Use current package_type for urls
- Loading branch information
Showing
45 changed files
with
635 additions
and
203 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
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 |
---|---|---|
@@ -1,25 +1,26 @@ | ||
{% extends "page.html" %} | ||
|
||
{% set pkg = pkg_dict %} | ||
{% set dataset_type = dataset_type or pkg.type or 'dataset' %} | ||
|
||
{% block breadcrumb_content_selected %} class="active"{% endblock %} | ||
|
||
{% block subtitle %}{{ _('Datasets') }}{% endblock %} | ||
{% block subtitle %}{{ _(dataset_type.title()) }}{% endblock %} | ||
|
||
{% block breadcrumb_content %} | ||
{% if pkg %} | ||
{% set dataset = h.dataset_display_name(pkg) %} | ||
{% if pkg.organization %} | ||
{% set organization = h.get_translated(pkg.organization, 'title') or pkg.organization.name %} | ||
{% set group_type = pkg.organization.type %} | ||
<li>{% link_for _('Organizations'), named_route='organization.index' %}</li> | ||
<li>{% link_for organization|truncate(30), named_route='organization.read', id=pkg.organization.name %}</li> | ||
<li>{% link_for _('Organizations'), named_route=pkg.organization.type ~ '.index' %}</li> | ||
<li>{% link_for organization|truncate(30), named_route=pkg.organization.type ~ '.read', id=pkg.organization.name %}</li> | ||
{% else %} | ||
<li>{% link_for _('Datasets'), named_route='dataset.search' %}</li> | ||
<li>{% link_for _(dataset_type.title()), named_route=dataset_type ~ '.search' %}</li> | ||
{% endif %} | ||
<li{{ self.breadcrumb_content_selected() }}>{% link_for dataset|truncate(30), named_route='dataset.read', id=pkg.id if is_activity_archive else pkg.name %}</li> | ||
<li{{ self.breadcrumb_content_selected() }}>{% link_for dataset|truncate(30), named_route=pkg.type ~ '.read', id=pkg.id if is_activity_archive else pkg.name %}</li> | ||
{% else %} | ||
<li>{% link_for _('Datasets'), named_route='dataset.search' %}</li> | ||
<li>{% link_for _(dataset_type.title()), named_route=dataset_type ~ '.search' %}</li> | ||
<li class="active"><a href="">{{ _('Create Dataset') }}</a></li> | ||
{% endif %} | ||
{% endblock %} |
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
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
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
Oops, something went wrong.