compat: re-enable

This commit is contained in:
Pierre Bourdon 2023-01-10 03:49:34 +01:00
parent 79c6eb18aa
commit 995a897a19
No known key found for this signature in database
GPG Key ID: 6FB80DCD84DA0F1C
3 changed files with 14 additions and 2 deletions

View File

@ -5,6 +5,6 @@ from django.conf.urls import url
from dolweb.compat.views import list_compat
urlpatterns = [
#url(r'^$', list_compat, name='compat_index'),
#url(r'^(?:(?P<first_char>[A-Z#])/)?(?:filter/(?P<filter_by>[12345])/)?$', list_compat, name='compat_list'),
url(r'^$', list_compat, name='compat_index'),
url(r'^(?:(?P<first_char>[A-Z#])/)?(?:filter/(?P<filter_by>[12345])/)?$', list_compat, name='compat_list'),
]

View File

@ -91,6 +91,17 @@
<div class="row" style="margin-top: 1em">
<div class="col-md-3">
<div class="realign ratings-stats well">
<h4><a href="{% url 'compat_index' %}">{% trans "Compatibility" %} »</a></h4>
<dl>
{% for rating in all_ratings %}
<dt>{{ rating|compat_text }}: {{ rating|rating_pct|floatformat }}%</dt>
<dd><div class="progress"><div class="progress-bar progress-bar-{{ rating|rating_class }}" style="width: {{ rating|rating_pct|unlocalize }}%"></div></div></dd>
{% endfor %}
</dl>
</div>
{% include "blog_sidebar.html" %}
</div>
<div class="col-md-9">

View File

@ -71,6 +71,7 @@
<li><a href="{% url 'media_all' %}">{% trans "Screenshots" %}</a></li>
<li><a href="{% url 'docs_faq' %}">{% trans "FAQ" %}</a></li>
<li><a href="{% url 'docs_guides_index' %}">{% trans "Guides" %}</a></li>
<li><a href="{% url 'compat_index' %}">{% trans "Compatibility" %}</a></li>
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown">{% trans "Community" %} <b class="caret"></b></a>
<ul class="dropdown-menu">