euscanwww: Added feeds help page

Signed-off-by: volpino <fox91@anche.no>
This commit is contained in:
volpino 2012-08-14 15:32:54 +02:00
parent 99d97cc2a1
commit d8de359256
4 changed files with 37 additions and 0 deletions

View File

@ -83,6 +83,7 @@
{% endblock %} {% endblock %}
<li>---</li> <li>---</li>
<li><a href="{% url "api" %}">API</a></li> <li><a href="{% url "api" %}">API</a></li>
<li><a href="{% url "feeds" %}">Feeds</a></li>
<li><a href="{% url "about" %}">About</a></li> <li><a href="{% url "about" %}">About</a></li>
{% endblock %} {% endblock %}
</ul> </ul>

View File

@ -0,0 +1,30 @@
{% extends "_base.html" %}
{% load url from future %}
{% block content %}
<h2>Feeds</h2>
<div>
<p>
Euscan provides different types of feed for keeping an eye on the packages
you're interested in as well as a set of options to customize them.
</p>
<h4>Options</h4>
<ul>
<li><em>portage_info</em>: Get info about portage updates (default: on)</li>
<li><em>upstream_info</em>: Get info about upstream updates (default: on)</li>
<li><em>show_adds</em>: Show version bumps (default: on)</li>
<li><em>show_removals</em>: Show removals (default: on)</li>
<li><em>ignore_pre</em>: Ignore unstable releases (default: off)</li>
<li><em>ignore_pre_if_stable</em>: Ignore unstable releases only if current release is stable (default: off)</li>
</ul>
<h4>Usage examples</h4>
<ul>
<li><a href="{% url "global_feed" %}?portage_info=0&show_removals=0">{% url "global_feed" %}?portage_info=0&amp;show_removals=0</a></li>
<li><a href="{% url "global_feed" %}?ignore_pre=true">{% url "global_feed" %}?ignore_pre=true</a></li>
</ul>
</div>
{% endblock %}

View File

@ -112,6 +112,7 @@ urlpatterns = patterns('djeuscan.views',
url(r'^feed/$', GlobalFeed(), name='global_feed'), url(r'^feed/$', GlobalFeed(), name='global_feed'),
url(r'^about/$', 'about', name="about"), url(r'^about/$', 'about', name="about"),
url(r'^about/api$', 'api', name="api"), url(r'^about/api$', 'api', name="api"),
url(r'^about/feeds$', 'feeds', name="feeds"),
url(r'^statistics/$', 'statistics', name="statistics"), url(r'^statistics/$', 'statistics', name="statistics"),
url(r'^statistics/charts/(?P<chart>[\w\-]+).png$', 'chart', name="chart"), url(r'^statistics/charts/(?P<chart>[\w\-]+).png$', 'chart', name="chart"),
url(r'^world/$', 'world', name="world"), url(r'^world/$', 'world', name="world"),

View File

@ -306,6 +306,11 @@ def api(request):
return {} return {}
@render_to("euscan/feeds.html")
def feeds(request):
return {}
@render_to("euscan/statistics.html") @render_to("euscan/statistics.html")
def statistics(request): def statistics(request):
return {} return {}