From 03ad75ae9b99aaa1418e78ea05213d08e5f30363 Mon Sep 17 00:00:00 2001 From: str4d Date: Sun, 11 Jan 2015 06:31:06 +0000 Subject: [PATCH] Link from blog errors to relevant ticket --- i2p2www/blog/views.py | 2 ++ i2p2www/static/styles/duck/default.css | 3 --- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/i2p2www/blog/views.py b/i2p2www/blog/views.py index 30e102e0..a162e76d 100644 --- a/i2p2www/blog/views.py +++ b/i2p2www/blog/views.py @@ -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 this ticket 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 diff --git a/i2p2www/static/styles/duck/default.css b/i2p2www/static/styles/duck/default.css index 812d5d4b..74e9aeb8 100644 --- a/i2p2www/static/styles/duck/default.css +++ b/i2p2www/static/styles/duck/default.css @@ -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