Changeset - d1960cf04c67
[Not reviewed]
2 6 0
Ben Sturmfels (bsturmfels) - 7 months ago 2023-10-09 01:50:42
ben@sturm.com.au
Fix further podcast links, remove unused base template and CSS, improve layout
8 files changed with 23 insertions and 300 deletions:
0 comments (0 inline, 0 general)
www/podjango/static/podjango/podjango.css
Show inline comments
 
deleted file
www/podjango/templates/podjango/base_podcast.html
Show inline comments
...
 
@@ -2,25 +2,37 @@
 
<!--  Copyright (C) 2008       Bradley M. Kuhn <bkuhn@ebb.org> -->
 
<!-- Permission is granted to copy, modify, redistribute, propagate,  -->
 
<!-- and/or convey this template in any form. -->
 

	
 
{% extends "base_standard.html" %}
 

	
 
{% load static %}
 

	
 
{% block head %}
 
<meta name="description" content="Free as in Freedom is a bi-weekly oggcast about legal, policy and other issues in Free, Libre and Open Source Software" />
 
<meta name="keywords" content="software, freedom, podjango, open source, gnu, GNU, Open Source, Free and Open Source, Free and Open Source Software, FLOSS, FOSS, protect, protection, help, policy, linux, non-profit, oggcast, podcast" />
 
<style>
 
 ul {
 
   padding-left: 2rem;
 
   margin-bottom: 1rem;
 
 }
 
 a.feedlink img { margin-left: 0.5rem }
 
</style>
 
<link rel="alternate" type="application/rss+xml" title="MP3 Audio Feed for Free as in Freedom" href="{% url 'podjango:feed-mp3' %}" />
 
<link rel="alternate" type="application/rss+xml" title="Ogg/Vorbis Audio Feed for Free as in Freedom" href="{% url 'podjango:feed-ogg' %}" />
 
{% endblock %}
 

	
 
{% comment %}
 
{% block internal_navigate %}
 

	
 
<h3>Tags</h3>
 
<ul>
 
{% for tag in all_tags %}
 
<li><a href="{{ tag.get_absolute_url }}">{{ tag.label }}</a></li>
 
{% endfor %}
 
</ul>
 

	
 
<p><a href="{% url 'podjango:cast' %}">All oggcasts&hellip;</a></p>
 
<!-- Query is not working right now! -->
 
<!-- <p><a href="/podcast/query/">Query...</a></p> -->
 

	
 
{% endblock %}
 
{% endcomment %}
www/podjango/templates/podjango/base_standard.html
Show inline comments
 
deleted file
www/podjango/templates/podjango/cast/cast_archive_day.html
Show inline comments
...
 
@@ -11,15 +11,15 @@
 

	
 
<h1>{% include 'podjango/feed_links.inc.html' %} Free as in Freedom</h1>
 

	
 
<h2>Free as in Freedom Archive: {{ day|date:"F j, Y" }}</h2>
 

	
 
{% for object in object_list %}
 
    <div class="shaded">
 
    <p class="date">{{ object.pub_date|date:"F j, Y" }}</p>
 
    <div class="pa2 mb2" style="background: #F0FFB8">
 
    <h3><a href="{{ object.get_absolute_url }}">{{ object.title|safe }}</a></h3>
 
    <p class="date">{{ object.pub_date|date:"F j, Y" }}</p>
 
        {{ object.summary|safe }}
 
    <p><span class="continued"><a href="{{ object.get_absolute_url
 
    }}">Read More...</a></span></p>
 
    <p>Released on {{ object.pub_date|date:"F j, Y" }}; its running time is {{ object.duration }}</p>
 
    {% if object.tags.all %}<p class="blog-tags small">Tags: {% for tag in object.tags.all %}<a href="{{ tag.get_absolute_url }}">{{ tag.label }}</a>{% if not forloop.last %}, {% endif %}{% endfor %}</p>{% endif %}
 
    </div>
www/podjango/templates/podjango/cast/cast_archive_month.html
Show inline comments
...
 
@@ -11,15 +11,15 @@
 

	
 
<h1>{% include 'podjango/feed_links.inc.html' %}Free as in Freedom</h1>
 

	
 
<h2>Free as in Freedom Archive: {{ month|date:"F, Y" }}</h2>
 

	
 
{% for object in object_list %}
 
    <div class="shaded">
 
    <p class="date">{{ object.pub_date|date:"F j, Y" }}</p>
 
    <div class="pa2 mb2" style="background: #F0FFB8">
 
    <h3><a href="{{ object.get_absolute_url }}">{{ object.title|safe }}</a></h3>
 
    <p class="date">{{ object.pub_date|date:"F j, Y" }}</p>
 
        {{ object.summary|safe }}
 
    <p><span class="continued"><a href="{{ object.get_absolute_url
 
    }}">Read More...</a></span></p>
 
    <p>Released on {{ object.pub_date|date:"F j, Y" }}; its running time is {{ object.duration }}</p>
 
    {% if object.tags.all %}<p class="blog-tags small">Tags: {% for tag in object.tags.all %}<a href="{{ tag.get_absolute_url }}">{{ tag.label }}</a>{% if not forloop.last %}, {% endif %}{% endfor %}</p>{% endif %}
 
    </div>
www/podjango/templates/podjango/cast/cast_list.html
Show inline comments
...
 
@@ -14,19 +14,19 @@
 
<p>Displaying casts
 
tagged {% for tag in tags %}{% if not forloop.last %}{% if not forloop.first %}, {% endif %}{% endif %}<a href="{{ tag.get_absolute_url }}">{{ tag.label }}</a>{% ifequal forloop.revcounter 2 %} or {% endifequal %}{% endfor %}
 
</p>
 
{% endif %}
 

	
 
{% for object in object_list %}
 
    <div class="shaded">
 
    <p class="date">{{ object.pub_date|date:"F j, Y" }}</p>
 
    <div class="pa2 mb2" style="background: #F0FFB8">
 
    <h3>
 
<a class="feedlink" href="{{ object.ogg_path }}">{% include 'podjango/audio_ogg_button.inc.html' %}</a>
 
<a class="feedlink" href="{{ object.mp3_path }}">{% include 'podjango/audio_mp3_button.inc.html' %}</a>
 

	
 
<a href="{{ object.get_absolute_url }}">{{ object.title|safe }}</a></h3>
 
    <p class="date">{{ object.pub_date|date:"F j, Y" }}</p>
 
    <h4>Summary</h4>
 

	
 
    {{ object.summary|safe }}
 

	
 
    <p>
 
    This show was released on {{ object.pub_date|date:"l j F Y" }}; its
www/podjango/templates/podjango/frontpage.html
Show inline comments
...
 
@@ -34,17 +34,17 @@ Bradley and Karen to discuss various topics regarding FLOSS.</p>
 
  and <a href="http://gnomg.org">Karen</a> both have blogs you can
 
  read.</p>
 

	
 
<h2>{% include 'podjango/feed_links.inc.html' %}<a href="{% url 'podjango:cast' %}">Recent Free as in Freedom Shows</a></h2>
 

	
 
{% for cc in cast %}
 
<div class="shaded">
 
<div class="pa2 mb2" style="background: #F0FFB8">
 
<a class="feedlink" href="{{ cc.ogg_path }}">{% include 'podjango/audio_ogg_button.inc.html' %}</a>
 
<a class="feedlink" href="{{ cc.mp3_path }}">{% include 'podjango/audio_mp3_button.inc.html' %}</a>
 
<p class="date">{{ cc.pub_date|date:"F j, Y" }}</p>
 
<h3><a href="{{ cc.get_absolute_url }}">{{ cc.title|safe }}</a></h3>
 
<p class="date">{{ cc.pub_date|date:"F j, Y" }}</p>
 
{{ cc.summary|safe }}
 
</div>
 
{% endfor %}
 
<p><a href="{% url 'podjango:cast' }">All oggcasts&hellip;</a></p>
 
<p><a href="{% url 'podjango:cast' %}">All oggcasts&hellip;</a></p>
 
</div>
 
{% endblock %}
www/podjango/urls.py
Show inline comments
...
 
@@ -29,13 +29,13 @@ from podjango import frontpage
 

	
 
admin.autodiscover()
 

	
 
app_name = 'podjango'
 
urlpatterns = [
 
    url(r'^$', frontpage.view),
 
    url(r'^cast/?', include('podjango.apps.cast.urls')),
 
    url(r'^cast/', include('podjango.apps.cast.urls')),
 
    url(r'^feeds/cast-ogg/?$', OggCastFeed(), name='feed-ogg'),
 
    url(r'^feeds/cast-mp3/?$', OggCastFeed(), name='feed-mp3'),
 
    url(r'^feeds/$', view, name='feeds'),
 
]
 

	
 
if settings.DEBUG:
0 comments (0 inline, 0 general)