bodhi/config/app.cfg | 3 +++ bodhi/new.py | 3 +++ 2 files changed, 6 insertions(+)
New commits: commit ceeece2163a123ca596fb6c5680878c998de1411 Author: Luke Macken lmacken@redhat.com Date: Mon Jul 12 16:11:53 2010 -0400
Add the ability to flash messages above our New Update form
diff --git a/bodhi/config/app.cfg b/bodhi/config/app.cfg index b67bbb0..d85c9d7 100644 --- a/bodhi/config/app.cfg +++ b/bodhi/config/app.cfg @@ -13,6 +13,9 @@ # A notice to flash on the front page frontpage_notice = ''
+# A notice to flash on the New Update page +newupdate_notice = '' + ## ## Mash settings ## diff --git a/bodhi/new.py b/bodhi/new.py index 02369dd..a628032 100644 --- a/bodhi/new.py +++ b/bodhi/new.py @@ -39,6 +39,9 @@ class NewUpdateController(controllers.Controller): @identity.require(identity.not_anonymous()) @expose(template="bodhi.templates.form") def index(self, *args, **kw): + notice = config.get('newupdate_notice') + if notice: + flash(notice) self.build_pkglist() return dict(form=update_form, values=kw, action=url("/save"), title='New Update Form')