diff options
author | Cédric Bonhomme <kimble.mandel@gmail.com> | 2013-01-05 11:21:33 +0100 |
---|---|---|
committer | Cédric Bonhomme <kimble.mandel@gmail.com> | 2013-01-05 11:21:33 +0100 |
commit | f365bedeafd0399de3387c7600d6dc30b431f14c (patch) | |
tree | ba26516fc7d01a54188444f6aa5e11b420ddc3fd /source | |
parent | Improved display of error message. (diff) | |
download | newspipe-f365bedeafd0399de3387c7600d6dc30b431f14c.tar.gz newspipe-f365bedeafd0399de3387c7600d6dc30b431f14c.tar.bz2 newspipe-f365bedeafd0399de3387c7600d6dc30b431f14c.zip |
Improved display of confirmation message.
Diffstat (limited to 'source')
-rwxr-xr-x | source/pyAggr3g470r.py | 8 | ||||
-rw-r--r-- | source/templates/confirmation.html | 3 |
2 files changed, 6 insertions, 5 deletions
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 <i>%s</i> are now removed from the base.""" % (feed["feed_title"],) + message = """<p>All articles from the feed <i>%s</i> are now removed from the base.</p>""" % (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="<p>The URL of the feed has been changed.</p>") 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="<p>The name of the feed has been changed.</p>") 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="<p>The logo of the feed has been changed.</p>") 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"/> <div class="left inner"> -<p>${message}</p> + <h1>Your request processed successfully:</h1> + <p>${message}</p> |