# HG changeset patch # User verrierj # Date 1322145139 -3600 # Node ID 81417fd477b0f42afd0e8fc36650fe56ad114d4e # Parent ff7ccbbba32925e260ee4f869c2b7b8f62d8de09 Display specific tooltip when project edition is not allowed diff -r ff7ccbbba329 -r 81417fd477b0 src/ldt/ldt/ldt_utils/templates/ldt/ldt_utils/groups.html --- a/src/ldt/ldt/ldt_utils/templates/ldt/ldt_utils/groups.html Thu Nov 24 12:54:41 2011 +0100 +++ b/src/ldt/ldt/ldt_utils/templates/ldt/ldt_utils/groups.html Thu Nov 24 15:32:19 2011 +0100 @@ -1,24 +1,42 @@ -{% extends "ldt/ldt_utils/workspace.html" %} +{% extends "ldt/ldt_base.html" %} {% load i18n %} +{% block js_import %} +{{block.super}} + +{% endblock %} + {% block js_declaration %} {{block.super}} {% endblock %} +{% block css_import %} +{{block.super}} + +{% endblock %} + {% block content %}
@@ -63,36 +86,14 @@ {% trans 'Create content' %}
-
-
- {% trans "Click on the line to see the group's projects" %} -
- - - - {% for group in groups %} - - - {% if group.can_change %} - - - {% else %} - - - {% endif %} - - - - {% endfor %} - -
c{{ group.name }}l{{ group.name }}
+
+ {% include "ldt/ldt_utils/partial/groupslist.html" %}
{% trans "The group's projects" %}
diff -r ff7ccbbba329 -r 81417fd477b0 src/ldt/ldt/ldt_utils/templates/ldt/ldt_utils/partial/contentslist.html --- a/src/ldt/ldt/ldt_utils/templates/ldt/ldt_utils/partial/contentslist.html Thu Nov 24 12:54:41 2011 +0100 +++ b/src/ldt/ldt/ldt_utils/templates/ldt/ldt_utils/partial/contentslist.html Thu Nov 24 15:32:19 2011 +0100 @@ -9,7 +9,7 @@
{% trans 'create project' %}
{% trans 'preview media'%}
- {{ content.title|default:"_" }} + {{ content.title|default:"_" }} {% endfor %} diff -r ff7ccbbba329 -r 81417fd477b0 src/ldt/ldt/ldt_utils/templates/ldt/ldt_utils/partial/groupslist.html --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/ldt/ldt/ldt_utils/templates/ldt/ldt_utils/partial/groupslist.html Thu Nov 24 15:32:19 2011 +0100 @@ -0,0 +1,26 @@ +{% load i18n %} + +
+{% trans "Click on the line to see the group's projects" %} +
+ + + + + {% for group in groups %} + + + {% if group.change %} + + + {% else %} + + + {% endif %} + + + + + {% endfor %} + +
c{{ group.name }}l{{ group.name }}
\ No newline at end of file diff -r ff7ccbbba329 -r 81417fd477b0 src/ldt/ldt/ldt_utils/templates/ldt/ldt_utils/partial/projectslist.html --- a/src/ldt/ldt/ldt_utils/templates/ldt/ldt_utils/partial/projectslist.html Thu Nov 24 12:54:41 2011 +0100 +++ b/src/ldt/ldt/ldt_utils/templates/ldt/ldt_utils/partial/projectslist.html Thu Nov 24 15:32:19 2011 +0100 @@ -18,17 +18,22 @@
{% trans 'link json by id' %}
{% ifequal project.state 2 %} - {% trans 'Project published, click to unpublish' %}
+ {% trans 'Project published, click to unpublish' %}
{% else %} - {% trans 'Project not published, click to publish' %} + {% trans 'Project not published, click to publish' %} {% endifequal %} + - {% ifequal project.state 2 %} - {% if show_username %}{{ project.owner.username }} : {% endif %}{{ project.title }} + {% if project.state == 2 %} + {% if show_username %}{{ project.owner.username }} : {% endif %}{{ project.title }} {% else %} - {% if show_username %}{{ project.owner.username }} : {% endif %}{{ project.title }} - {% endifequal %} + {% if project.change %} + {% if show_username %}{{ project.owner.username }} : {% endif %}{{ project.title }} + {% else %} + {% if show_username %}{{ project.owner.username }} : {% endif %}{{ project.title }} + {% endif %} + {% endif %} {% endfor %} diff -r ff7ccbbba329 -r 81417fd477b0 src/ldt/ldt/ldt_utils/templates/ldt/ldt_utils/published_projects.html --- a/src/ldt/ldt/ldt_utils/templates/ldt/ldt_utils/published_projects.html Thu Nov 24 12:54:41 2011 +0100 +++ b/src/ldt/ldt/ldt_utils/templates/ldt/ldt_utils/published_projects.html Thu Nov 24 15:32:19 2011 +0100 @@ -6,7 +6,6 @@ {% endblock %} - {% block js_declaration %} {{block.super}}