From 9c80de19d71dd7a74be444e368a0919eb7319554 Mon Sep 17 00:00:00 2001 From: William MARTIN Date: Thu, 24 Feb 2011 08:58:43 +0100 Subject: [PATCH] Fix url in the tag cloud --- src/IDF/templates/idf/downloads/index.html | 1 + src/IDF/templates/idf/issues/index.html | 1 + src/IDF/templates/idf/tags-cloud.html | 2 +- src/IDF/templates/idf/wiki/index.html | 1 + 4 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/IDF/templates/idf/downloads/index.html b/src/IDF/templates/idf/downloads/index.html index f5b6c4b..9a25555 100644 --- a/src/IDF/templates/idf/downloads/index.html +++ b/src/IDF/templates/idf/downloads/index.html @@ -9,6 +9,7 @@ {/block} {block context}

{trans 'Number of files:'} {$downloads.nb_items}

+{assign $cloud_url = 'IDF_Views_Download::listLabel'} {assign $cloud = 'downloads'} {include 'idf/tags-cloud.html'} {if $deprecated > 0} diff --git a/src/IDF/templates/idf/issues/index.html b/src/IDF/templates/idf/issues/index.html index ac1e1fb..e3b2d2a 100644 --- a/src/IDF/templates/idf/issues/index.html +++ b/src/IDF/templates/idf/issues/index.html @@ -12,6 +12,7 @@ {aurl 'closed_url', 'IDF_Views_Issue::listStatus', array($project.shortname, 'closed')} {blocktrans}

Open issues: {$open}

Closed issues: {$closed}

{/blocktrans} +{assign $cloud_url = 'IDF_Views_Issue::listLabel'} {assign $cloud = 'issues'} {include 'idf/tags-cloud.html'} {/block} diff --git a/src/IDF/templates/idf/tags-cloud.html b/src/IDF/templates/idf/tags-cloud.html index cdf375e..353b9c5 100644 --- a/src/IDF/templates/idf/tags-cloud.html +++ b/src/IDF/templates/idf/tags-cloud.html @@ -1,6 +1,6 @@ {assign $class = ''}{assign $i = 0}
{foreach $project.getTagCloud($cloud) as $label} -{aurl 'url', 'IDF_Views_Issue::listLabel', array($project.shortname, $label.id, 'open')} +{aurl 'url', $cloud_url, array($project.shortname, $label.id, 'open')} {if $class != $label.class}
{$label.class}
{assign $i = 0}{/if}
{$label.name},
{assign $class = $label.class} diff --git a/src/IDF/templates/idf/wiki/index.html b/src/IDF/templates/idf/wiki/index.html index af6cdec..945dd87 100644 --- a/src/IDF/templates/idf/wiki/index.html +++ b/src/IDF/templates/idf/wiki/index.html @@ -9,6 +9,7 @@ {/block} {block context}

{trans 'Number of pages:'} {$pages.nb_items}

+{assign $cloud_url = 'IDF_Views_Wiki::listLabel'} {assign $cloud = 'wiki'} {include 'idf/tags-cloud.html'} {if $deprecated > 0}