Moved flash message up and put a gap underneath it.
This commit is contained in:
parent
6f806aad1c
commit
fcf5587af7
@ -165,5 +165,6 @@ class AdminController(BaseController):
|
||||
def logout(self):
|
||||
del session[u'REMOTE_USER']
|
||||
session.save()
|
||||
h.flash.set_message(u'You have logged out successfully.', u'success')
|
||||
h.redirect_to('/')
|
||||
|
||||
|
@ -418,8 +418,7 @@ fieldset {
|
||||
}
|
||||
|
||||
#message {
|
||||
margin-top: 1.8em;
|
||||
/*padding: 0.3em 0.5em;*/
|
||||
margin-bottom: 1.8em;
|
||||
}
|
||||
|
||||
#message p {
|
||||
|
@ -1,7 +1,7 @@
|
||||
<%inherit file="/base.mako"/>
|
||||
<%include file="/flash.mako"/>
|
||||
<div class="post">
|
||||
<h2 class="title">Log in</h2>
|
||||
<%include file="/flash.mako"/>
|
||||
<%include file="/errors.mako"/>
|
||||
<form id="post-new" action="${h.url_for(controller='admin', action='login')}" method="post">
|
||||
<fieldset>
|
||||
|
@ -1,7 +1,7 @@
|
||||
<%inherit file="/base.mako"/>
|
||||
<%include file="/flash.mako"/>
|
||||
<div class="post">
|
||||
<h2 class="title">Register</h2>
|
||||
<%include file="/flash.mako"/>
|
||||
<%include file="/errors.mako"/>
|
||||
<form id="post-new" action="${h.url_for(controller='admin', action='register')}" method="post">
|
||||
<fieldset>
|
||||
|
@ -1,5 +1,4 @@
|
||||
<div class="post">
|
||||
<%include file="/flash.mako"/>
|
||||
<h2 class="title"><a href="${h.url_for_post(post)}">${post.title}</a></h2>
|
||||
<div class="entry">
|
||||
${h.literal(post.body)}
|
||||
|
@ -1,8 +1,8 @@
|
||||
<%inherit file="/base.mako"/>
|
||||
<%include file="/flash.mako"/>
|
||||
<div class="post">
|
||||
<h2 class="title">${c.post.title}</h2>
|
||||
<div class="info">Posted by ${c.post.user.nick} on ${c.post.created.strftime('%B %d, %Y')}</div>
|
||||
<%include file="/flash.mako"/>
|
||||
<div class="entry">
|
||||
${h.literal(c.post.body)}
|
||||
</div>
|
||||
|
@ -1,7 +1,7 @@
|
||||
<%inherit file="/base.mako"/>
|
||||
<%include file="/flash.mako"/>
|
||||
<div class="post">
|
||||
<h2 class="title">Edit Post: ${c.post.title}</h2>
|
||||
<%include file="/flash.mako"/>
|
||||
<%include file="/errors.mako"/>
|
||||
<form id="post-new" action="${h.url_for(controller='post',action='edit', id=c.post.id)}" method="post">
|
||||
<fieldset>
|
||||
|
@ -1,7 +1,7 @@
|
||||
<%inherit file="/base.mako"/>
|
||||
<%include file="/flash.mako"/>
|
||||
<div class="post">
|
||||
<h2 class="title">New Post</h2>
|
||||
<%include file="/flash.mako"/>
|
||||
<%include file="/errors.mako"/>
|
||||
<form id="post-new" action="${h.url_for('/post/edit')}" method="post">
|
||||
<fieldset>
|
||||
|
Reference in New Issue
Block a user