Removed unused IPR-by-year pages
- Legacy-Id: 1723
This commit is contained in:
parent
2ec7c6ea09
commit
4363336917
|
@ -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)
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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),
|
||||
)
|
||||
|
||||
|
||||
|
||||
|
|
|
@ -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 %}
|
|
@ -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"}}/"><< {{ 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" }} >></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 %}
|
|
@ -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 %}
|
Loading…
Reference in a new issue