# HG changeset patch # User verrierj # Date 1325675867 -3600 # Node ID 6a0b65d60d00c06826970d92167d35eadfa46c9a # Parent 8a626a7a66bf376ee5c0fbdc4edebd678bfad38c Group icons are displayed in group tab diff -r 8a626a7a66bf -r 6a0b65d60d00 src/ldt/ldt/ldt_utils/templates/ldt/ldt_utils/groups.html --- a/src/ldt/ldt/ldt_utils/templates/ldt/ldt_utils/groups.html Wed Jan 04 11:20:13 2012 +0100 +++ b/src/ldt/ldt/ldt_utils/templates/ldt/ldt_utils/groups.html Wed Jan 04 12:17:47 2012 +0100 @@ -27,7 +27,7 @@ input_list_init = [ {'input_selector':"#searchprojectsinput", 'container_selector':"#projectslistcontainer", 'url':project_filter_url}, - {'input_selector':"#searchgroupsinput", 'container_selector':"#groupslistcontainer", 'url':groups_filter_url}, + {'input_selector':"#searchgroupsinput", 'container_selector':"#groupslistcontainer", 'url':groups_filter_url} ]; @@ -39,7 +39,7 @@ //alert("group id = " + $(this).attr('id') + ", url = " + get_group_projects_url); var id_group = $(this).attr('id'); // Remove icons from all the lines - $(".next_icon, td .grouplink").hide(); + $(".next_icon").hide(); // Display icons from the good line $(".next_icon, .grouplink",this).show(); // Show the search textfield and update the id_group in the hidden input diff -r 8a626a7a66bf -r 6a0b65d60d00 src/ldt/ldt/ldt_utils/templates/ldt/ldt_utils/partial/groupslist.html --- a/src/ldt/ldt/ldt_utils/templates/ldt/ldt_utils/partial/groupslist.html Wed Jan 04 11:20:13 2012 +0100 +++ b/src/ldt/ldt/ldt_utils/templates/ldt/ldt_utils/partial/groupslist.html Wed Jan 04 12:17:47 2012 +0100 @@ -1,4 +1,22 @@ {% load i18n %} +{% load thumbnail %} + +
{% trans "Click on the line to see the group's projects" %} @@ -8,18 +26,19 @@ {% for group in groups %} - + {% if group.change %} - + {% else %} - + {% endif %} @@ -29,10 +48,10 @@ {% endfor %} {% if not user.is_superuser and not search_active %} - - + + diff -r 8a626a7a66bf -r 6a0b65d60d00 src/ldt/ldt/static/ldt/css/workspace.css --- a/src/ldt/ldt/static/ldt/css/workspace.css Wed Jan 04 11:20:13 2012 +0100 +++ b/src/ldt/ldt/static/ldt/css/workspace.css Wed Jan 04 12:17:47 2012 +0100 @@ -200,7 +200,7 @@ margin-top: 20px; } -.next_icon, .grouplink { +.next_icon { display: none; } @@ -221,3 +221,12 @@ #profile_forms input[type="text"], #profile_forms input[type="password"], select { width: 250px; } + +.groupimg { + height: 60px; + width: 60px; +} + +.clickable { + cursor: pointer; +}
- - {% trans 'Change this group' %} - + + {% thumbnail group.profile.image "50x50" crop="center" format="PNG" as im %}{% empty %} {% endthumbnail %} + + {{ group.name }} - - + {% thumbnail group.profile.image "50x50" crop="center" format="PNG" as im %}{% empty %} {% endthumbnail %} + {{ group.name }}
- -
+ {% thumbnail user.get_profile.image "50x50" crop="center" format="PNG" as im %}{% empty %} {% endthumbnail %} + {% trans "Projects shared with me only" %}