The additional filter token introduced 404's for bookmarked feeds; now the old URLs are re-added and their actions forward the requests to the new handlers. Another small change removes a double assignment and puts the "All Updates" link in the template on top to separate it clearly from the other filters. This commit closes issue 605.
27 lines
1.1 KiB
HTML
27 lines
1.1 KiB
HTML
{extends "idf/base.html"}
|
|
{block extraheader}<link rel="alternate" type="application/atom+xml" title="{trans 'Latest updates'}" href="{$feedurl}"/>{/block}
|
|
{block docclass}yui-t2{/block}
|
|
{block tabhome} class="active"{/block}
|
|
{block subtabs}
|
|
<div id="sub-tabs">
|
|
<a href="{url 'IDF_Views_Project::home', array($project.shortname)}">{trans 'Welcome'}</a> | <strong><a href="{url 'IDF_Views_Project::timeline', array($project.shortname, 'all')}" class="active">{trans 'Latest Updates'}</a></strong>{superblock}
|
|
</div>
|
|
{/block}
|
|
|
|
{block body}
|
|
{$timeline.render}
|
|
{/block}
|
|
|
|
{block context}
|
|
<p><span class="label{if 'all' == $model_filter} active{/if}"><a href="{url 'IDF_Views_Project::timeline', array($project.shortname, 'all')}">{trans 'All Updates'}</a></span></p>
|
|
<p><strong>{trans 'Filter by type'}</strong><br />
|
|
{foreach $all_model_filters as $filter_key => $filter_name}
|
|
{if $filter_key != 'all'}
|
|
<span class="label{if $filter_key == $model_filter} active{/if}"><a href="{url 'IDF_Views_Project::timeline', array($project.shortname, $filter_key)}">{$filter_name}</a></span><br />
|
|
{/if}
|
|
{/foreach}
|
|
</p>
|
|
{/block}
|
|
|
|
|