From 7ca77e22ed201c859ac6d3ed7a97624a9c965ea9 Mon Sep 17 00:00:00 2001 From: Leif Johansson Date: Fri, 4 Mar 2011 19:37:32 +0100 Subject: tagging works now --- templates/apps/name/acls.html | 3 +++ templates/apps/name/name.html | 24 ++++++++++++++---------- templates/apps/tag/add.html | 34 ---------------------------------- templates/apps/tag/modify.html | 23 +++++++++++++++++++++++ templates/base.html | 2 -- 5 files changed, 40 insertions(+), 46 deletions(-) delete mode 100644 templates/apps/tag/add.html create mode 100644 templates/apps/tag/modify.html (limited to 'templates') diff --git a/templates/apps/name/acls.html b/templates/apps/name/acls.html index 7fe8250..a514b91 100644 --- a/templates/apps/name/acls.html +++ b/templates/apps/name/acls.html @@ -27,6 +27,9 @@
{% endblock %} \ No newline at end of file diff --git a/templates/apps/name/name.html b/templates/apps/name/name.html index e00a887..01de064 100644 --- a/templates/apps/name/name.html +++ b/templates/apps/name/name.html @@ -59,18 +59,22 @@

{{m.user|lastidentifier}}

-
{{m.user|userdisplay}} ({{m.user|lastidentifier}}) became a member of {{name.shortname}} {{m.timecreated|datehumanize}}.
-
+
+ {{m.user|userdisplay}} ({{m.user|lastidentifier}}) became a member of {{name.shortname}} {{m.timecreated|datehumanize}} + and has the following role{{m.tags|pluralize}}: +
    + {% for tag in m.tags %} +
  • {{ tag|escape }}
  • + {% endfor %} +
+
+
diff --git a/templates/apps/tag/add.html b/templates/apps/tag/add.html deleted file mode 100644 index 1325929..0000000 --- a/templates/apps/tag/add.html +++ /dev/null @@ -1,34 +0,0 @@ -{% extends "tree.html" %} -{% block js %} - -{% endblock %} - -{% block content %} -

Add role to {{ type|escape }} {{ name }}

-
-

Current role{{ tagobj.tags|pluralize }} in this group

- {% for tag in tagobj.tags %}{{ tag|escape }} {% endfor %} -

Add

-
-
{% csrf_token %} -
-
    -
    -
    -
    - - -
    -
    -
    -
    - - -{% endblock %} \ No newline at end of file diff --git a/templates/apps/tag/modify.html b/templates/apps/tag/modify.html new file mode 100644 index 0000000..8218889 --- /dev/null +++ b/templates/apps/tag/modify.html @@ -0,0 +1,23 @@ +{% extends "tree.html" %} +{% block widgets %} + $("#taglist").tagit({ + existingTags: [{% for t in tagobj.tags %}'{{t}}',{% endfor %}], + namePrefix: 'tags' + }); +{% endblock %} +{% block content %} +
    +

    Modify {{tagtype|escape}} on {{type|escape}} {{name.short|escape}}

    +
    +
    +
      +
      +
      +
        +
      • +
      • +
      +
      +
      +
      +{% endblock %} \ No newline at end of file diff --git a/templates/base.html b/templates/base.html index fddbc95..bb59dda 100644 --- a/templates/base.html +++ b/templates/base.html @@ -4,7 +4,6 @@ @@ -17,7 +16,6 @@ - -- cgit v1.1