Link from blog errors to relevant ticket

This commit is contained in:
str4d
2015-01-11 06:31:06 +00:00
parent 38bf3f3d16
commit 03ad75ae9b
2 changed files with 2 additions and 3 deletions

View File

@ -29,6 +29,8 @@ def blog_post(slug):
if parts:
meta = get_metadata_from_meta(parts['meta'])
meta['date'] = meta['date'] if meta['date'] else get_date_from_slug(slug)
# add notification to any error messages
parts['fragment'] = parts['fragment'].replace('Docutils System Messages', 'There are errors in this translation. Please comment on <a href="https://trac.i2p2.de/ticket/1396">this ticket</a> with the URL of this page.')
# remove BLOG_DIR from any error messages
parts['fragment'] = parts['fragment'].replace(BLOG_DIR, 'Blog')
# now just pass to simple template file and we are done

View File

@ -361,9 +361,6 @@ div#content .inner ul.DREAD {
font-size: 1.2em !important;
text-align: left !important;
}
.system-messages > h1:after {
content: " (Please contact the website administrator)";
}
/*
* Footer