Commit 7d733de5 authored by Weblate's avatar Weblate

Merge remote-tracking branch 'origin/master'

parents aabb04c0 c5545680
......@@ -41,7 +41,7 @@
{% for prj in projects %}
{% with prj.get_translated_percent as percent %}
<tr>
<th><a href="{{ prj.get_absolute_url }}">{{ prj.name }}</a></th>
<th><a href="{{ prj.get_absolute_url }}">{{ prj }}</a></th>
<td class="progress"><div class="progress" id="{{ percent|floatformat:0 }}"></div></td>
<td class="percent">{{ percent }}%</td>
</tr>
......
......@@ -63,6 +63,8 @@ def home(request):
and user links if logged in.
'''
projects = Project.objects.all()
if projects.count() == 1:
projects = SubProject.objects.all()
# Warn about not filled in username (usually caused by migration of
# users from older system
......
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