Permalink
Browse files

patch for flash messages

  • Loading branch information...
Michaël Ricart
Michaël Ricart committed Aug 10, 2013
1 parent 28c3b5c commit 485a7c868253c07a9c7cdeb679076d08429ea44d
Showing with 22 additions and 23 deletions.
  1. +22 −23 paulla/paste/templates/layout.pt
@@ -14,36 +14,35 @@
<link rel="alternate" href="${request.route_url('rss2')}" title="paulla.paste rss2" type="application/rss+xml" />
</head>
<body>
<div class="container-fluid"
tal:condition="request.session.peek_flash()"
tal:define="flashes request.session.pop_flash()">

<div tal:repeat="flash flashes" class="alert ${flash['status']}" >
<button type="button" class="close" data-dismiss="alert">&times;</button>
<span>
${flash['message']}
</span>
</div>
<div class="container-fluid">
<tal:message condition="request.session.peek_flash()">
<div class="alert"
tal:repeat="message request.session.pop_flash()">
<button type="button" class="close" data-dismiss="alert">&times;</button>
<tal:alert replace="structure message" />
</div>
</tal:message>
</div>

<div class="row-fluid">
<div class="span3">
<ul class="nav nav-tabs nav-stacked">
<li tal:condition='request.path != "/"'>
<a href="${request.route_path('home')}" i18n:translate=''>new</a>
</li>
<li tal:repeat="current request.previous">
<a href="${request.route_path('oneContent', idContent=current._id)}">${current.title} </a>
</li>
<ul class="nav nav-tabs nav-stacked">
<li tal:condition='request.path != "/"'>
<a href="${request.route_path('home')}" i18n:translate=''>new</a>
</li>
<li tal:repeat="current request.previous">
<a href="${request.route_path('oneContent', idContent=current._id)}">${current.title} </a>
</li>

</ul>
</div>
<div class="span9">
<div id="content" metal:define-slot="content">
</ul>
</div>
<div class="span9">
<div id="content" metal:define-slot="content">

</div>
</div>
</div>
</div>
</div>

</body>
</html>

0 comments on commit 485a7c8

Please sign in to comment.