Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[#3055] Deprecate and remove uses of h.url
In favour of h.url_for
- Loading branch information
Showing
8 changed files
with
18 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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
{%- set dataset_feed = h.url(controller='feed', action='group', id=c.group_dict.name) -%} | ||
{%- set history_feed = h.url(controller='revision', action='list', format='atom', days=1) -%} | ||
{%- set dataset_feed = h.url_for(controller='feed', action='group', id=c.group_dict.name) -%} | ||
{%- set history_feed = h.url_for(controller='revision', action='list', format='atom', days=1) -%} | ||
<link rel="alternate" type="application/atom+xml" title="{{ g.site_title }} - {{ _('Datasets in group: {group}').format(group=c.group_dict.display_name) }}" href="{{ dataset_feed }}" /> | ||
<link rel="alternate" type="application/atom+xml" title="{{ g.site_title }} - {{ _('Recent Revision History') }}" href="{{ history_feed }}" /> |
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,4 +1,4 @@ | ||
{%- set dataset_feed = h.url(controller='feed', action='organization', id=c.group_dict.name) -%} | ||
{%- set history_feed = h.url(controller='revision', action='list', format='atom', days=1) -%} | ||
{%- set dataset_feed = h.url_for(controller='feed', action='organization', id=c.group_dict.name) -%} | ||
{%- set history_feed = h.url_for(controller='revision', action='list', format='atom', days=1) -%} | ||
<link rel="alternate" type="application/atom+xml" title="{{ g.site_title }} - {{ _('Datasets in organization: {group}').format(group=c.group_dict.display_name) }}" href="{{ dataset_feed }}" /> | ||
<link rel="alternate" type="application/atom+xml" title="{{ g.site_title }} - {{ _('Recent Revision History') }}" href="{{ history_feed }}" /> |
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,2 +1,2 @@ | ||
{# Used to insert the home icon into a breadcrumb #} | ||
<li class="home"><a href="{{ h.url('home') }}"><i class="icon-home"></i><span> {{ _('Home') }}</span></a></li> | ||
<li class="home"><a href="{{ h.url_for('home') }}"><i class="icon-home"></i><span> {{ _('Home') }}</span></a></li> |