Removed unused IPR-by-year pages

- Legacy-Id: 1723
This commit is contained in:
Pasi Eronen 2009-10-14 18:17:29 +00:00
parent 2ec7c6ea09
commit 4363336917
6 changed files with 5 additions and 87 deletions

View file

@ -1,8 +1,11 @@
# Copyright The IETF Trust 2007, All Rights Reserved
#
from django.contrib.sitemaps import GenericSitemap
from ietf.ipr.urls import archive
from ietf.ipr.models import IprDetail
# changefreq is "never except when it gets updated or withdrawn"
# so skip giving one
queryset = IprDetail.objects.filter(status__in=[1,3])
archive = {'queryset':queryset, 'date_field': 'submitted_date', 'allow_empty':True }
IPRMap = GenericSitemap(archive)

View file

@ -63,12 +63,8 @@
200 /ipr/search/?option=ipr_title_search&ipr_title_search=nortel
200 /ipr/search/?option=ipr_title_search&ipr_title_search=nortelxz # Empty result
200 /ipr/about/
200 /ipr/by-draft/
200 /ipr/by-date/
#200 /ipr/y/2006/
#200 /ipr/y/2006/feb/
200 /feed/ipr/
200 /sitemap-ipr.xml

View file

@ -17,13 +17,6 @@ urlpatterns = patterns('',
(r'^search/$', search.search),
)
queryset = models.IprDetail.objects.filter(status__in=[1,3])
archive = {'queryset':queryset, 'date_field': 'submitted_date', 'allow_empty':True }
urlpatterns += patterns('django.views.generic.date_based',
(r'^by-date/$', 'archive_index', archive),
(r'^y/(?P<year>\d{4})/$', 'archive_year', archive),
(r'^y/(?P<year>\d{4})/(?P<month>[a-z]{3})/$', 'archive_month', archive),
)

View file

@ -1,29 +0,0 @@
{# Copyright The IETF Trust 2007, All Rights Reserved #}
{% extends "base.html" %}
{% block title %}IPR Declarations{% endblock %}
{% block content %}
<h2>IPR Declarations</h2>
<h3>Recent IPR Declarations</h3>
{% regroup latest by telechat_date|date:"Y" as years %}
{% for year in years %}
{% ifnotequal latest|length "1" %}
<h4>{{ year.grouper }}</h4>
{% endifnotequal %}
<table border="1" cellpadding="2" cellspacing="2" width="820">
{% for ipr in year.list %}
{% include "ipr/list_item.html" %}
{% endfor %}
</table>
{% endfor %}
<h3>Archives by Year</h3>
<ul>
{% for year in date_list %}
<li><a href="/ipr/y/{{ year|date:"Y" }}/">{{ year|date:"Y" }}</a>
{% endfor %}
</ul>
{% endblock %}

View file

@ -1,28 +0,0 @@
{# Copyright The IETF Trust 2007, All Rights Reserved #}
{% extends "base.html" %}
{% block title %}IPR Declarations{% endblock %}
{% block content %}
<h2>IPR Declarations - {{ month|date:"F Y" }}</h2>
<p>
<a href="../../{{previous_month|date:"Y"}}/{{ previous_month|date:"b"}}/">&lt;&lt; {{ previous_month|date:"F Y" }}</a>
| <a href="../">{{ month|date:"Y" }}</a>
{% if next_month %}
| <a href="../../{{next_month|date:"Y"}}/{{ next_month|date:"b"}}/">{{ next_month|date:"F Y" }} &gt;&gt;</a>
{% endif %}
</p>
<p>
{% if object_list %}
<table border="1" cellpadding="2" cellspacing="2" width="820">
{% for ipr in object_list %}
{% include "ipr/list_item.html" %}
{% endfor %}
</table>
{% else %}
<i>No declarations for {{ month|date:"F Y "}}</i>
{% endif %}
</p>
{% endblock %}

View file

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