[damned-lies] Hide by default inactive members (Fixes #710062)
- From: Claude Paroz <claudep src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [damned-lies] Hide by default inactive members (Fixes #710062)
- Date: Sat, 2 Nov 2013 16:43:16 +0000 (UTC)
commit b7c27d426b2343718f7a0eb2ed494e158da6f300
Author: Claude Paroz <claude 2xlibre net>
Date: Sat Nov 2 17:41:16 2013 +0100
Hide by default inactive members (Fixes #710062)
Thanks Sakshi Jain for the work on the patch.
templates/teams/team_detail.html | 14 +++++++++-----
1 files changed, 9 insertions(+), 5 deletions(-)
---
diff --git a/templates/teams/team_detail.html b/templates/teams/team_detail.html
index 873ba8a..7aa08f0 100644
--- a/templates/teams/team_detail.html
+++ b/templates/teams/team_detail.html
@@ -7,7 +7,10 @@
title="{% blocktrans with team.get_description as lang %}Last actions made by the {{ lang }} team of
the GNOME Translation Project{% endblocktrans %}"
href="/rss/teams/{{ team.name }}" />
-<style>img.toggler { cursor: pointer; }</style>
+<style>
+ img.toggler { cursor: pointer; }
+ div#togglable-inactive { display: none; }
+</style>
<script type="text/javascript">
$(document).ready(function() {
$("img.toggler").click(function(event) {
@@ -15,7 +18,7 @@ $(document).ready(function() {
var target_div = $("#togglable-" + this.id);
if (target_div.is(':visible')) {
target_div.hide();
- $(this).children('img').attr("src", "{{ STATIC_URL }}img/closed.png");
+ $(this).attr("src", "{{ STATIC_URL }}img/closed.png");
} else {
if (target_div.attr("class") == "empty") {
// Load the archive stats dynamically
@@ -23,7 +26,7 @@ $(document).ready(function() {
target_div.attr("class", "loaded");
}
target_div.show();
- $(this).children('img').attr("src", "{{ STATIC_URL }}img/open.png");
+ $(this).attr("src", "{{ STATIC_URL }}img/open.png");
}
});
});
@@ -80,8 +83,9 @@ $(document).ready(function() {
<h2>{% trans "Team membership" %}</h2>
{% for group in mem_groups %}
- <h3>{{ group.title }}</h3>
- <div id="{{ group.id }}">
+ <h3>{% if group.id == 'inactive' %}<img class="toggler" id="{{ group.id }}" title="{% trans
'Show/hide inactive translations' %}" src="{{ STATIC_URL }}img/closed.png">{% endif %}
+ {{ group.title }}</h3>
+ <div id="togglable-{{ group.id }}">
{% if group.form %}
<form action="{{ request.path }}" method="POST">
{% csrf_token %}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]