forked from caseysoftware/eventgrinder
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
completing implementing new weekly digest RSS feed
- Loading branch information
Ross Karchner
committed
May 19, 2011
1 parent
5c8b0cb
commit 3efa5ea
Showing
5 changed files
with
51 additions
and
93 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,94 +1,53 @@ | ||
{% extends "base.html" %} | ||
{% load cdn_helper %} | ||
{% load humanize %} | ||
{% load utility %} | ||
|
||
{% block headextra %} | ||
{% ifequal user.userlevel 10 %} | ||
<script src="{% versioned "/static/editing.js" %}"></script> | ||
{% endifequal %} | ||
{% endblock %} | ||
{% block subtitle %}Week of {{ start|date:"F j, Y"}}{% endblock %} | ||
|
||
|
||
{% block opengraph %} | ||
<meta name="title" content="{{ site.name }} for the week of {{ start|date:"F j, Y"}}" /> | ||
<meta name="description" content="{{site.name}} is a calendar for {{site.audience}} " /> | ||
<meta property="og:type" content="article" /> | ||
{% endblock opengraph %} | ||
|
||
|
||
{% block content %} | ||
<div id="positioner"> | ||
|
||
|
||
<div class="row"> | ||
<div class="cell position-0 width-12" id="events"> | ||
<h1> upcoming events for the week of <em>{{ start|date:"F j, Y"}}</em></h1> | ||
<?xml version="1.0"?> | ||
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"> | ||
<channel> | ||
<title>{{ site.name }}</title> | ||
<link>http://{{site.host}}/</link> | ||
<atom:link href="http://{{site.host}}/thisweek.xml" rel="self" type="application/rss+xml" /> | ||
<language>en-us</language> | ||
<webMaster>[email protected] (Ross Karchner)</webMaster> | ||
<description> a calendar for {{site.audience}}</description> | ||
<item> | ||
<title>This Week on {{ site.name }}</title> | ||
<link>http://{{site.host}}/week-of/{{start|date:"c"}}</link> | ||
<description> | ||
<![CDATA[ <h1> <a href="http://{{site.host}}/week-of/{{start|date:"c"}}">{{ site.name }} for the week of {{ start|date:"F j, Y"}}</a></h1> | ||
<div>Please consider forwarding this along to your friends and colleagues in the community. If you find it useful, they might too.</div> | ||
<div>Did we miss something? <a href="http://{{site.host}}/events/add">You can still add events</a>!</div> | ||
<div> | ||
<!-- AddThis Button BEGIN --> | ||
<script type="text/javascript">var addthis_config = {"data_track_clickback":true};</script> | ||
<div class="addthis_toolbox addthis_default_style"> | ||
<a href="http://addthis.com/bookmark.php?v=250&username=rosskarchner" class="addthis_button_compact">Share</a> | ||
<span class="addthis_separator">|</span> | ||
<a class="addthis_button_facebook"></a> | ||
<a class="addthis_button_twitter"></a> | ||
</div> | ||
<script type="text/javascript" src="http://s7.addthis.com/js/250/addthis_widget.js#username=rosskarchner"></script> | ||
<!-- AddThis Button END --> | ||
|
||
</div> | ||
<div> | ||
{% for event in continuing %} | ||
|
||
{% ifequal forloop.counter 1 %} | ||
<h2>Continuing</h2> | ||
{% endifequal %} | ||
{% include "events/one_event.html" %} | ||
{% ifequal user.userlevel 10 %} | ||
{% include "events/edit_form.html" %} | ||
{% endifequal %} | ||
{% include "events/one_event_newsletter.html" %}</tr> | ||
{% if forloop.last %} | ||
{% endif %} | ||
{% endfor %} | ||
{% for event in events_soon %} | ||
|
||
{% ifchanged event.local_start.date %} | ||
<a name="{{event.local_start.date|date:'Y-m-d' }}"> | ||
<h2>{{event.local_start.date|naturalday }}</h2> | ||
<h2>{{event.local_start.date|date:"l (n/j)" }}</h2> | ||
{% else %} | ||
{% endifchanged %} | ||
{% include "events/one_event.html" %} | ||
{% ifequal user.userlevel 10 %} | ||
{% include "events/edit_form.html" %} | ||
{% endifequal %} | ||
|
||
{% endfor %} | ||
|
||
{% include "events/one_event_newsletter.html" %} | ||
|
||
</div> | ||
<div class="cell position-12 width-4" id="sidebar"> | ||
|
||
{% include "eventsite/sidebar.html" %} | ||
{% endfor %} | ||
</div> | ||
|
||
|
||
</div> | ||
{% endblock %} | ||
|
||
{% block endcode %} | ||
<script type="text/javascript"> | ||
var disqus_shortname = '{{site.disqus_shortname}}'; | ||
(function () { | ||
var s = document.createElement('script'); s.async = true; | ||
s.src = 'http://disqus.com/forums/{{site.disqus_shortname}}/count.js'; | ||
(document.getElementsByTagName('HEAD')[0] || document.getElementsByTagName('BODY')[0]).appendChild(s); | ||
}()); | ||
</script> | ||
|
||
|
||
{% endblock %} | ||
|
||
]]> | ||
</description> | ||
<pubDate>Mon, {{start|date:"d M Y 00:00:01 -0500"}}</pubDate> | ||
<guid>http://{{site.host}}/week-of/{{start|date:"c"}}</guid> | ||
</item> | ||
</channel> | ||
</rss> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters