Source

django-website / src / django_website / templates / aggregator / feeditem_list.html

{% extends "base_community.html" %}

{% block extrahead %}
<link rel="alternate" type="application/rss+xml" title="RSS" href="/rss/community/" />
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"></script>
<script type="text/javascript">

var items = {
    page: 1,
    get_data: function () {
         r = {page:this.page}
         if (typeof this.tag != 'undefined')
            r.tags = this.tag
        return r
    },
    
    update: function (fresh_html) {
        if (items.page == 1)
            $("#items").html(fresh_html);
        else
        {
            $("#content-secondary").remove();
            $("#items").append(fresh_html);
        }
    },
    
    more: function () {
        this.page++;
        $.ajax( {
            type: "GET",
            url: "{% url aggregator_just_list %}",
            data: this.get_data(),
            dataType: "html",
            success: this.update
        });          
    },
        
    get: function (tag) {
        this.page = 1;
        this.tag = tag
        $.ajax( {
            type: "GET",
            url: "{% url aggregator_just_list %}",
            data: this.get_data(),
            dataType: "html",
            success: this.update
        });          
    },
}

</script>
{% endblock %}

{% block content %}

<h1>Community</h1>
<div class="tag-cloud">
    {% load tagging_tags %}
    {% tag_cloud_for_model aggregator.FeedItem as items_tags %}
    {% for tag in items_tags %}
        <a href="javascript:items.get('{{tag.name}}');" class="cloud-size-{{tag.font_size}}">{{tag.name}}</a>&nbsp;
    {% endfor %}
</div>
<h2 class="deck">This page, updated every hour, aggregates blog entries by people who are
writing about Django.</h2>
<div id="items">
{% include "aggregator/just_list.html" %}
</div>
{% endblock %}
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.