From 78ba357af675bfc0ac7c6bfc23353565d94fd786 Mon Sep 17 00:00:00 2001 From: dakkar Date: Tue, 8 Nov 2005 13:15:46 +0000 Subject: ora il BookmarksManager gestisce per bene i tag multipli, e i template sono fatti meglio --- root/add_form | 5 ++-- root/links | 91 +++++++++++++++++++++++++++++++++++++++++++---------------- root/tags | 5 ++-- 3 files changed, 73 insertions(+), 28 deletions(-) (limited to 'root') diff --git a/root/add_form b/root/add_form index bbb608a..10e83bb 100644 --- a/root/add_form +++ b/root/add_form @@ -1,9 +1,10 @@ - + + add -
+

Link:

Title:

Description:

diff --git a/root/links b/root/links index 40bfa51..210a7e9 100644 --- a/root/links +++ b/root/links @@ -1,25 +1,68 @@ - - -links - - -

-[% IF tagset.size() == 1 %]Tag:[% ELSE %]Tags:[% END %] -[% FOR tag IN tagset.tags %] - [% tag.name %] ( [% tag.descr %] ) - -[% END %]

-

Related:

- -

Links:

-
    -[% FOR link IN links %] -
  1. »[% link.title %]« (creato: [% link.add_date() %]) -[% FOR rtag IN link.tags %] [% rtag.name %] - [% END %]
  2. -[% END %] -
- + + + + + Links for + [% FOR tag IN tagset.tags; + tag.name; + ', ' UNLESS loop.last; + END %] + + + +
+

[% IF tagset.size() == 1 %]Tag:[% ELSE %]Tags:[% END %]

+
    + [% FOR tag IN tagset.tags %] +
  • + + [% tag.name %] + + [% IF tagset.size() > 1 %] + + - + + [% END %] +
  • + [% END %] +
+
+ + + diff --git a/root/tags b/root/tags index 748631e..888f50e 100644 --- a/root/tags +++ b/root/tags @@ -1,11 +1,12 @@ - + + tags
    [% FOR tag IN tags %] -
  1. [% tag.name %] ([% tag.how_many %])
  2. +
  3. [% tag.name %] ([% tag.how_many %])
  4. [% END %]
-- cgit v1.2.3