mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-24 19:33:02 +03:00
Merge pull request #1317 from jgillich/no-posts
Show "Write a new Post" message when there are no posts
This commit is contained in:
commit
256cd6ecd0
@ -250,4 +250,34 @@
|
||||
|
||||
}//.preview-post
|
||||
|
||||
.no-posts-box {
|
||||
position: relative;
|
||||
height: 90%;
|
||||
margin: 0px auto;
|
||||
padding: 0px;
|
||||
display: table;
|
||||
z-index: 600;
|
||||
@include breakpoint($tablet) {
|
||||
position: fixed;
|
||||
top: 45%;
|
||||
left: 50%;
|
||||
}
|
||||
|
||||
.no-posts {
|
||||
vertical-align: middle;
|
||||
display: table-cell;
|
||||
text-align: center;
|
||||
@include breakpoint($tablet) {
|
||||
display: block;
|
||||
position: relative;
|
||||
left: -50%;
|
||||
}
|
||||
|
||||
h3 {
|
||||
color: $brown;
|
||||
font-weight: 200;
|
||||
font-size: 2em;
|
||||
}
|
||||
}
|
||||
}//.no-posts-box
|
||||
}//.manage
|
||||
|
@ -42,3 +42,11 @@
|
||||
<section class="content-preview-content">
|
||||
<div class="wrapper"><h1>{{{title}}}</h1>{{{html}}}</div>
|
||||
</section>
|
||||
{{#unless title}}
|
||||
<div class="no-posts-box">
|
||||
<div class="no-posts">
|
||||
<h3>You Haven't Written Any Posts Yet!</h3>
|
||||
<form action="/ghost/editor/"><button class="button-add large" title="New Post">Write a new Post</button></form>
|
||||
</div>
|
||||
</div>
|
||||
{{/unless}}
|
||||
|
Loading…
Reference in New Issue
Block a user