Commit 75abfa67 authored by Grégoire Détrez's avatar Grégoire Détrez Committed by Claude Paroz

Fix "Hide completed modules" in user page and all modules page

https://bugzilla.gnome.org/show_bug.cgi?id=754190
parent 9b339f08
......@@ -22,16 +22,6 @@ $(document).ready(function()
<h2>{% trans "All modules" %} - <a href="{{ language.get_team_url }}">{{ language.get_name }}</a></h2>
<div id="hide-show">
<p id="hide">
<a href="#" onclick="return showHideCompleted('stats-table');">{% trans "Hide completed modules" %}</a>
</p>
<p id="show" style="display:none">
<a href="#" onclick="return showHideCompleted('stats-table');">{% trans "Show completed modules" %}</a>
</p>
</div>
<h3>{{ stats_title }}</h3>
{% with stats as modstats %}
{% include "languages/language_release_stats.html" %}
......
......@@ -25,11 +25,6 @@ $(document).ready(function()
<p><i>{% trans "The modules of this release are not part of the GNOME Git repository. Please check each module's web page to see where to send translations." %}</i></p>
{% endif %}
<div id="hide-show">
<a href="#" id="hide-completed-modules">{% trans "Hide completed modules" %}</a>
<a href="#" id="show-completed-modules" style="display: none;">{% trans "Show completed modules" %}</a>
</div>
<h3>{{ stats_title }}</h3>
{% with stats as modstats %}
{% include "languages/language_release_stats.html" %}
......
......@@ -2,6 +2,11 @@
{% load i18n stats_extras %}
<div id="hide-show">
<a href="#" id="hide-completed-modules">{% trans "Hide completed modules" %}</a>
<a href="#" id="show-completed-modules" style="display: none;">{% trans "Show completed modules" %}</a>
</div>
<table>
<tr>
<td class="leftcell" colspan="3" title="{% trans "Translated/Fuzzy/Untranslated" %}"><span style="margin-right: 10px;">{{ modstats.totaltransperc }}% ({{ modstats.totaltrans }}/{{ modstats.totalfuzzy }}/{{ modstats.totaluntrans }})</span></td>
......
......@@ -48,14 +48,10 @@ $(document).ready(function()
{% include "people/person_team_membership.html" %}
{% if states %}
<div id="hide-show">
<p id="hide">
<a href="#" onclick="return showHideCompleted('working_on');">{% trans "Hide completed modules" %}</a>
</p>
<p id="show" style="display:none">
<a href="#" onclick="return showHideCompleted('working_on');">{% trans "Show completed modules" %}</a>
</p>
<div id="hide-show">
<a href="#" id="hide-completed-modules">{% trans "Hide completed modules" %}</a>
<a href="#" id="show-completed-modules" style="display: none;">{% trans "Show completed modules" %}</a>
</div>
<h2>{% trans "Current activity" %}</h2>
......@@ -66,7 +62,7 @@ $(document).ready(function()
</tr></thead>
<tbody>
{% for state, stats in states %}
<tr id="{{ state.id }}{% if stats.tr_percentage == 100 %}-complete{% endif %}">
<tr id="{{ state.id }}{% if stats.tr_percentage == 100 %}-complete{% endif %}" {% if stats.tr_percentage == 100 %}class="completed-module"{% endif %}>
<td><span style="display: none;">{{ state.updated|date:"c" }}</span>{{ state.updated|naturalday:"DATE_FORMAT" }}</td>
<td><a href="{{ state.get_absolute_url }}">{{ state.branch.module.get_description }} - {{ state.branch.name }} - {{ state.domain.get_description }} - {{ state.language.get_name }}</a></td>
<td>{{ stats.tr_percentage|default:"0" }}%</td>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment