From f365bedeafd0399de3387c7600d6dc30b431f14c Mon Sep 17 00:00:00 2001 From: Cédric Bonhomme Date: Sat, 5 Jan 2013 11:21:33 +0100 Subject: Improved display of confirmation message. --- source/pyAggr3g470r.py | 8 ++++---- source/templates/confirmation.html | 3 ++- 2 files changed, 6 insertions(+), 5 deletions(-) (limited to 'source') diff --git a/source/pyAggr3g470r.py b/source/pyAggr3g470r.py index 002eaf36..0f3f84fe 100755 --- a/source/pyAggr3g470r.py +++ b/source/pyAggr3g470r.py @@ -476,7 +476,7 @@ class pyAggr3g470r(object): feed = self.mongo.get_feed(feed_id) self.mongo.delete_feed(feed_id) utils.remove_feed(feed["feed_link"]) - message = """All articles from the feed %s are now removed from the base.""" % (feed["feed_title"],) + message = """

All articles from the feed %s are now removed from the base.

""" % (feed["feed_title"],) tmpl = lookup.get_template("confirmation.html") return tmpl.render(message=message) @@ -490,7 +490,7 @@ class pyAggr3g470r(object): self.mongo.update_feed(feed_id, {"feed_link":new_feed_url}) utils.change_feed_url(old_feed_url, new_feed_url) tmpl = lookup.get_template("confirmation.html") - return tmpl.render(message="The URL of the feed has been changed.") + return tmpl.render(message="

The URL of the feed has been changed.

") change_feed_url.exposed = True @@ -501,7 +501,7 @@ class pyAggr3g470r(object): """ self.mongo.update_feed(feed_id, {"feed_title":new_feed_name}) tmpl = lookup.get_template("confirmation.html") - return tmpl.render(message="The name of the feed has been changed.") + return tmpl.render(message="

The name of the feed has been changed.

") change_feed_name.exposed = True @@ -512,7 +512,7 @@ class pyAggr3g470r(object): """ self.mongo.update_feed(feed_id, {"feed_image":new_feed_logo}) tmpl = lookup.get_template("confirmation.html") - return tmpl.render(message="The logo of the feed has been changed.") + return tmpl.render(message="

The logo of the feed has been changed.

") change_feed_logo.exposed = True diff --git a/source/templates/confirmation.html b/source/templates/confirmation.html index 7f631d3c..ae206838 100644 --- a/source/templates/confirmation.html +++ b/source/templates/confirmation.html @@ -1,4 +1,5 @@ ## confirmation.html <%inherit file="base.html"/>
-

${message}

+

Your request processed successfully:

+

${message}

-- cgit