Commits

Gregory Petukhov committed ebfc276

Change Source List related things

Comments (0)

Files changed (5)

feedzilla/templates/base.html

         <div class="site-navigation">
             <ul>
                 <li><a href="/">{% trans "News stream" %}</a></li>
-                <li><a href="{% url feedzilla_sources %}">{% trans "Sources" %}</a></li>
+                <li><a href="{% url feedzilla_source_list %}">{% trans "Sources" %}</a></li>
                 {% for link in FEEDZILLA_HEAD_LINKS %}
                 {{ link|safe }}
                 {% endfor %}

feedzilla/templates/feedzilla/source_list.html

+{% extends 'feedzilla/base.html' %}
+{% load i18n %}
+
+{% block feedzilla_content %}
+<h1>{% block feedzilla_title %}{% trans "Sources" %}{% endblock %}</h1>
+<div class="divider2"></div>
+<div class="contentarea">
+    <ul>
+        {% for feed in feed %}
+        <li style="line-height: 1.6em">
+            <a href="{{ feed.site_url }}">{{ feed.title }}</a>
+            &nbsp;
+            ({{ feed.post_count }})
+            &nbsp;
+            <a href="{{ feed.feed_url }}">
+                <img style="position: relative; top: 3px" src="{{ MEDIA_URL }}feedzilla/img/feed-icon-small.png" />
+            </a>
+        </li>
+        {% endfor %}
+    </ul>
+</div>
+{% endblock %}

feedzilla/templates/feedzilla/sources.html

-{% extends 'feedzilla/base.html' %}
-{% load i18n %}
-
-{% block feedzilla_content %}
-<h1>{% block feedzilla_title %}{% trans "Sources" %}{% endblock %}</h1>
-<div class="divider2"></div>
-<div class="contentarea">
-    <ul>
-        {% for feed in feed %}
-        <li style="line-height: 1.6em">
-            <a href="{{ feed.site_url }}">{{ feed.title }}</a>
-            &nbsp;
-            ({{ feed.post_count }})
-            &nbsp;
-            <a href="{{ feed.feed_url }}">
-                <img style="position: relative; top: 3px" src="{{ MEDIA_URL }}feedzilla/img/feed-icon-small.png" />
-            </a>
-        </li>
-        {% endfor %}
-    </ul>
-</div>
-{% endblock %}

feedzilla/urls.py

 urlpatterns = patterns('feedzilla.views',
     url(r'^$', 'index', name='feedzilla_index'),
     url('^tag/(?P<tag_value>.+)$', 'tag', name='feedzilla_tag'),
-    url('^sources$', 'sources', name='feedzilla_sources'),
+    url('^sources$', 'source_list', name='feedzilla_source_list'),
     url('^search$', 'search', name='feedzilla_search'),
     url('^submit$', 'submit_blog', name='feedzilla_submit_blog'),
 )

feedzilla/views.py

 
 
 @cache_page
-@render_to('feedzilla/sources.html')
-def sources(request):
+@render_to('feedzilla/source_list.html')
+def source_list(request):
 
     feeds = Feed.objects.all()