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):
|
def logout(self):
|
||||||
del session[u'REMOTE_USER']
|
del session[u'REMOTE_USER']
|
||||||
session.save()
|
session.save()
|
||||||
|
h.flash.set_message(u'You have logged out successfully.', u'success')
|
||||||
h.redirect_to('/')
|
h.redirect_to('/')
|
||||||
|
|
||||||
|
@ -418,8 +418,7 @@ fieldset {
|
|||||||
}
|
}
|
||||||
|
|
||||||
#message {
|
#message {
|
||||||
margin-top: 1.8em;
|
margin-bottom: 1.8em;
|
||||||
/*padding: 0.3em 0.5em;*/
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#message p {
|
#message p {
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
<%inherit file="/base.mako"/>
|
<%inherit file="/base.mako"/>
|
||||||
|
<%include file="/flash.mako"/>
|
||||||
<div class="post">
|
<div class="post">
|
||||||
<h2 class="title">Log in</h2>
|
<h2 class="title">Log in</h2>
|
||||||
<%include file="/flash.mako"/>
|
|
||||||
<%include file="/errors.mako"/>
|
<%include file="/errors.mako"/>
|
||||||
<form id="post-new" action="${h.url_for(controller='admin', action='login')}" method="post">
|
<form id="post-new" action="${h.url_for(controller='admin', action='login')}" method="post">
|
||||||
<fieldset>
|
<fieldset>
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
<%inherit file="/base.mako"/>
|
<%inherit file="/base.mako"/>
|
||||||
|
<%include file="/flash.mako"/>
|
||||||
<div class="post">
|
<div class="post">
|
||||||
<h2 class="title">Register</h2>
|
<h2 class="title">Register</h2>
|
||||||
<%include file="/flash.mako"/>
|
|
||||||
<%include file="/errors.mako"/>
|
<%include file="/errors.mako"/>
|
||||||
<form id="post-new" action="${h.url_for(controller='admin', action='register')}" method="post">
|
<form id="post-new" action="${h.url_for(controller='admin', action='register')}" method="post">
|
||||||
<fieldset>
|
<fieldset>
|
||||||
|
@ -1,5 +1,4 @@
|
|||||||
<div class="post">
|
<div class="post">
|
||||||
<%include file="/flash.mako"/>
|
|
||||||
<h2 class="title"><a href="${h.url_for_post(post)}">${post.title}</a></h2>
|
<h2 class="title"><a href="${h.url_for_post(post)}">${post.title}</a></h2>
|
||||||
<div class="entry">
|
<div class="entry">
|
||||||
${h.literal(post.body)}
|
${h.literal(post.body)}
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
<%inherit file="/base.mako"/>
|
<%inherit file="/base.mako"/>
|
||||||
|
<%include file="/flash.mako"/>
|
||||||
<div class="post">
|
<div class="post">
|
||||||
<h2 class="title">${c.post.title}</h2>
|
<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>
|
<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">
|
<div class="entry">
|
||||||
${h.literal(c.post.body)}
|
${h.literal(c.post.body)}
|
||||||
</div>
|
</div>
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
<%inherit file="/base.mako"/>
|
<%inherit file="/base.mako"/>
|
||||||
|
<%include file="/flash.mako"/>
|
||||||
<div class="post">
|
<div class="post">
|
||||||
<h2 class="title">Edit Post: ${c.post.title}</h2>
|
<h2 class="title">Edit Post: ${c.post.title}</h2>
|
||||||
<%include file="/flash.mako"/>
|
|
||||||
<%include file="/errors.mako"/>
|
<%include file="/errors.mako"/>
|
||||||
<form id="post-new" action="${h.url_for(controller='post',action='edit', id=c.post.id)}" method="post">
|
<form id="post-new" action="${h.url_for(controller='post',action='edit', id=c.post.id)}" method="post">
|
||||||
<fieldset>
|
<fieldset>
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
<%inherit file="/base.mako"/>
|
<%inherit file="/base.mako"/>
|
||||||
|
<%include file="/flash.mako"/>
|
||||||
<div class="post">
|
<div class="post">
|
||||||
<h2 class="title">New Post</h2>
|
<h2 class="title">New Post</h2>
|
||||||
<%include file="/flash.mako"/>
|
|
||||||
<%include file="/errors.mako"/>
|
<%include file="/errors.mako"/>
|
||||||
<form id="post-new" action="${h.url_for('/post/edit')}" method="post">
|
<form id="post-new" action="${h.url_for('/post/edit')}" method="post">
|
||||||
<fieldset>
|
<fieldset>
|
||||||
|
Reference in New Issue
Block a user