Skip to content

Commit

Permalink
patch for flash messages
Browse files Browse the repository at this point in the history
  • Loading branch information
Michaël Ricart committed Aug 10, 2013
1 parent 28c3b5c commit 485a7c8
Showing 1 changed file with 22 additions and 23 deletions.
45 changes: 22 additions & 23 deletions paulla/paste/templates/layout.pt
Expand Up @@ -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.