aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNicolas Vigier <boklm@mageia.org>2013-05-15 13:47:22 +0000
committerNicolas Vigier <boklm@mageia.org>2013-05-15 13:47:22 +0000
commitd24ec958659270d5f409b30f1799342c1e345012 (patch)
tree60503c5822e1d160f6df1fc2ee4979bce348225c
parent0198a4bc59ce41712a86b610d10b0b7a93ec2dc7 (diff)
downloadmgatres-d24ec958659270d5f409b30f1799342c1e345012.tar
mgatres-d24ec958659270d5f409b30f1799342c1e345012.tar.gz
mgatres-d24ec958659270d5f409b30f1799342c1e345012.tar.bz2
mgatres-d24ec958659270d5f409b30f1799342c1e345012.tar.xz
mgatres-d24ec958659270d5f409b30f1799342c1e345012.zip
Rename donations per month and per year pages
git-svn-id: svn+ssh://svn.mageia.org/svn/soft/mga-treasurer/trunk@8244 5b7c3c08-40e5-403b-9995-ace06908e4af
-rwxr-xr-xmktreasurer4
-rw-r--r--tmpl/donations.html2
-rw-r--r--tmpl/donations_by_year.html2
3 files changed, 4 insertions, 4 deletions
diff --git a/mktreasurer b/mktreasurer
index 93967a7..1de2cf8 100755
--- a/mktreasurer
+++ b/mktreasurer
@@ -111,7 +111,7 @@ sub output_pages {
month => $month,
donations => $donations,
};
- process_template($template, 'donations_by_month', $vars, "donations_$month");
+ process_template($template, 'donations_by_month', $vars, "donations_m_$month");
}
foreach my $year (keys $donations->{by_year}) {
@@ -120,7 +120,7 @@ sub output_pages {
year => $year,
donations => $donations,
};
- process_template($template, 'donations_by_year', $vars, "donations_$year");
+ process_template($template, 'donations_by_year', $vars, "donations_y_$year");
}
my $vars = {
diff --git a/tmpl/donations.html b/tmpl/donations.html
index 8eac51c..1508a78 100644
--- a/tmpl/donations.html
+++ b/tmpl/donations.html
@@ -22,7 +22,7 @@
<h3>Donations per year</h3>
<ul>
[%- FOR year IN donations.by_year.keys.sort.reverse %]
- <li><a href="donations_[% year %].html">[% year %]: [% donations.by_year.$year.total %] Euros</a></li>
+ <li><a href="donations_y_[% year %].html">[% year %]: [% donations.by_year.$year.total %] Euros</a></li>
[%- END %]
</ul>
<small>Last update: [% date.format(last_update, format => '%Y/%m/%d %H:%M:%S') %]</small>
diff --git a/tmpl/donations_by_year.html b/tmpl/donations_by_year.html
index 9db18d0..f81325c 100644
--- a/tmpl/donations_by_year.html
+++ b/tmpl/donations_by_year.html
@@ -20,7 +20,7 @@
<ul>
[%- FOR month IN donations.by_month.keys.sort -%]
[%- IF donations.by_month.$month.year == year -%]
- <li><a href="donations_[% month %].html">[% month %]: [% donations.by_month.$month.total %] Euros</a></li>
+ <li><a href="donations_m_[% month %].html">[% month %]: [% donations.by_month.$month.total %] Euros</a></li>
[%- END -%]
[%- END -%]
</ul>