Tweaked the changelog presentation to work irrespective of current directory, and give a sensible 404 if the changelog can't be found.
- Legacy-Id: 4972
This commit is contained in:
parent
781403ae9c
commit
7e84ccc606
|
@ -3,12 +3,17 @@ import os
|
|||
|
||||
from django.template import RequestContext
|
||||
from django.shortcuts import render_to_response
|
||||
from django.conf import settings
|
||||
from django.http import Http404
|
||||
|
||||
import changelog
|
||||
|
||||
def release(request, version=None):
|
||||
entries = {}
|
||||
log_entries = changelog.parse("changelog")
|
||||
if os.path.exists(settings.CHANGELOG_PATH):
|
||||
log_entries = changelog.parse(settings.CHANGELOG_PATH)
|
||||
else:
|
||||
raise Http404()
|
||||
next = None
|
||||
for entry in log_entries:
|
||||
if next:
|
||||
|
|
|
@ -302,6 +302,7 @@ BIBXML_BASE_PATH = '/a/www/ietf-ftp/xml2rfc'
|
|||
|
||||
# Timezone files for iCalendar
|
||||
TZDATA_ICS_PATH = '/www/ietf-datatracker/tz/ics/'
|
||||
CHANGELOG_PATH = '/www/ietf-datatracker/web/changelog'
|
||||
|
||||
# Put SECRET_KEY in here, or any other sensitive or site-specific
|
||||
# changes. DO NOT commit settings_local.py to svn.
|
||||
|
|
|
@ -77,7 +77,7 @@ IETF.user_groups = {{ user|user_roles_json }};
|
|||
</div>
|
||||
<div style="width: 100%; text-align: center; padding-top:4px;font-size:69%;">
|
||||
{% if version_num %}
|
||||
<a href="/release/">Version {{ version_num }}, {{revision_date}}</a>
|
||||
<a href="/release/{{version_num}}/">Version {{ version_num }}, {{revision_date}}</a>
|
||||
<br/>
|
||||
{% endif %}
|
||||
<a href="http://tools.ietf.org/tools/ietfdb/newticket">Report a bug</a>
|
||||
|
|
Loading…
Reference in a new issue