Skip to content

Commit

Permalink
[2474] Move group feeds into a partial
Browse files Browse the repository at this point in the history
  • Loading branch information
aron committed May 31, 2012
1 parent 85edbe3 commit e789877
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
4 changes: 4 additions & 0 deletions ckan/templates/group/partials/feeds.html
@@ -0,0 +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) -%}
<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 }}" />
5 changes: 1 addition & 4 deletions ckan/templates/group/read.html
Expand Up @@ -40,8 +40,5 @@ <h2 class="heading"><i class="ckan-icon ckan-icon-info"></i> {{ _('What are Grou

{% block links %}
{{ super() }}
{%- 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) -%}
<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 }}" />
{% include "group/partials/feeds.html" %}
{% endblock %}

0 comments on commit e789877

Please sign in to comment.