Removed bunch of unused code/templates

- Legacy-Id: 1700
This commit is contained in:
Pasi Eronen 2009-09-24 16:14:56 +00:00
parent 469a60cc45
commit 26b1622b98
9 changed files with 16 additions and 173 deletions

View file

@ -35,20 +35,22 @@
from django.db import models
from ietf.idtracker.models import Acronym
class TelechatMinutes(models.Model):
telechat_date = models.DateField(null=True, blank=True)
telechat_minute = models.TextField(blank=True)
exported = models.IntegerField(null=True, blank=True)
def get_absolute_url(self):
return "/iesg/telechat/%d/" % self.id
def __str__(self):
return "IESG Telechat Minutes for %s" % self.telechat_date
class Meta:
db_table = 'telechat_minutes'
verbose_name = "Telechat Minute Text"
verbose_name_plural = "Telechat Minutes"
class Admin:
pass
# This table is not used by any code right now, and according to Glen,
# probably not currently (Aug 2009) maintained by the secretariat.
#class TelechatMinutes(models.Model):
# telechat_date = models.DateField(null=True, blank=True)
# telechat_minute = models.TextField(blank=True)
# exported = models.IntegerField(null=True, blank=True)
# def get_absolute_url(self):
# return "/iesg/telechat/%d/" % self.id
# def __str__(self):
# return "IESG Telechat Minutes for %s" % self.telechat_date
# class Meta:
# db_table = 'telechat_minutes'
# verbose_name = "Telechat Minute Text"
# verbose_name_plural = "Telechat Minutes"
# class Admin:
# pass
class TelechatDates(models.Model):
date1 = models.DateField(primary_key=True, null=True, blank=True)

View file

@ -1,16 +0,0 @@
{# Copyright The IETF Trust 2007, All Rights Reserved #}
{% extends "base.html" %}
{% block content %}
<blockquote>
<h3>Currently available applications:</h3>
<ul>
{% for app in apps %}
<li><a href="/{{ app }}/">{{ app }}</li>
{% endfor %}
</ul>
</blockquote>
{% endblock %}

View file

@ -1,34 +0,0 @@
{# Copyright The IETF Trust 2007, All Rights Reserved #}
{% extends "base.html" %}
{% block head %}
<link rel="alternate" type="application/atom+xml" href="/feed/iesg-minutes/">
{% endblock %}
{% block title %}IESG Telechat Minutes{% endblock %}
{% block content %}
<br/>
<h2>IESG Telechat Minutes</h2>
<h3>Recent Telechats</h3>
{% regroup latest by telechat_date|date:"Y" as years %}
{% for year in years %}
{% ifnotequal latest|length "1" %}
<h4>{{ year.grouper }}</h4>
{% endifnotequal %}
<ul>
{% for minute in year.list %}
<li><a href="{{ minute.id }}/">{{ minute.telechat_date|date:"F j" }}</a>
{% endfor %}
</ul>
{% endfor %}
<h3>Archives by Year</h3>
<ul>
{% for year in date_list %}
<li><a href="y/{{ year|date:"Y" }}/">{{ year|date:"Y" }}</a>
{% endfor %}
</ul>
{% endblock %}

View file

@ -1,25 +0,0 @@
{# Copyright The IETF Trust 2007, All Rights Reserved #}
{% extends "base.html" %}
{% block title %}IESG Telechat Minutes{% endblock %}
{% block content %}
<h2>IESG Telechat Minutes - {{ month|date:"F Y" }}</h2>
<a href="../">up to {{ month|date:"Y" }}</a> | <a href="../../{{previous_month|date:"Y"}}/{{ previous_month|date:"b"}}/">&lt;&lt; {{ previous_month|date:"F Y" }}</a>
{% if next_month %}
| <a href="../../{{next_month|date:"Y"}}/{{ next_month|date:"b"}}/">{{ next_month|date:"F Y" }} &gt;&gt;</a>
{% endif %}
{% if object_list %}
<ul>
{% for object in object_list %}
<li><a href="../../../{{ object.id }}/">{{ object.telechat_date|date:"F j" }}
{% endfor %}
</ul>
{% else %}
<p>
<i>No minutes for {{ month|date:"F Y "}}</i>
{% endif %}
{% endblock %}

View file

@ -1,15 +0,0 @@
{# Copyright The IETF Trust 2007, All Rights Reserved #}
{% extends "base.html" %}
{% block title %}IESG Telechat Minutes{% endblock %}
{% block content %}
<h2>IESG Telechat Minutes - {{ year }}</h2>
<ul>
{% for month in date_list %}
<li><a href="{{month|date:"b" }}/">{{ month|date:"F" }}
{% endfor %}
</ul>
{% endblock %}

View file

@ -1,19 +0,0 @@
{# Copyright The IETF Trust 2007, All Rights Reserved #}
{% extends "base.html" %}
{% load ietf_filters %}
{% block title %}IESG Telechat Minutes - {{ object.telechat_date|date:"F j, Y" }}{% endblock %}
{% block content %}
<center><h2>Minutes of the IESG Teleconferences</h2></center>
<blockquote>
{{ object.telechat_minute|escape|linebreaks|urlize }}
<form method="GET" action="/iesg/telechat/">
<input type="submit" value="Back to Index Page">
</form>
</blockquote>
{% endblock %}

View file

@ -1 +0,0 @@
{# Copyright The IETF Trust 2007, All Rights Reserved #}

View file

@ -1,34 +0,0 @@
{# Copyright The IETF Trust 2007, All Rights Reserved #}
{% if wg.agenda_file and wg.minute_file and wg.slides %}
<tr bgcolor="#BBFFBB"><td>Presentation files received, agenda received, minutes received</td></tr>
{% else %}
{% if not wg.agenda_file and not wg.minute_file and not wg.slides %}
<tr bgcolor="#ff8888"><td>No presentation files, no agenda, no minutes</td></tr>
{% else %}
{% if not wg.agenda_file and wg.minute_file and not wg.slides %}
<tr bgcolor="ffffbb"><td>No presentation files, no agenda, minutes received</td></tr>
{% else %}
{% if wg.agenda_file and not wg.minute_file and not wg.slides %}
<tr bgcolor="ffffbb"><td>No presentation files, agenda received, no minutes</td></tr>
{% else %}
{% if wg.agenda_file and wg.minute_file and not wg.slides %}
<tr bgcolor="ffffbb"><td>No presentation files, agenda received, minutes received</td></tr>
{% else %}
{% if not wg.agenda_file and not wg.minute_file and wg.slides %}
<tr bgcolor="ffcc88"><td>Presentation files received, no agenda, no minutes</td></tr>
{% else %}
{% if not wg.agenda_file and wg.minute_file and wg.slides %}
<tr bgcolor="ffcc88"><td>Presentation files received, no agenda, minutes received</td></tr>
{% else %}
{% if wg.agenda_file and not wg.minute_file and wg.slides %}
<tr bgcolor="ffcc88"><td>Presentation files received, agenda received, no minutes</td></tr>
{% else %}
<tr bgcolor="cccccc"><td>Unknown Status</td></tr>
{% endif %}
{% endif %}
{% endif %}
{% endif %}
{% endif %}
{% endif %}
{% endif %}
{% endif %}

View file

@ -1,15 +0,0 @@
# Copyright The IETF Trust 2007, All Rights Reserved
from django.shortcuts import render_to_response as render
import urls
import re
def apps(request):
paths = []
for pattern in urls.urlpatterns:
path = pattern.regex.pattern.split("/")[0][1:]
if not re.search("[^a-z]", path) and not path in ["my", "feeds"]:
paths.append(path)
apps = list(set(paths))
apps.sort()
return render("apps.html", {"apps": apps })