website, blog: style fixes

This commit is contained in:
Rushabh Mehta 2013-03-11 16:12:56 +05:30
parent b7ce8aa20b
commit bbbceb617c
3 changed files with 9 additions and 9 deletions

View File

@ -64,20 +64,16 @@ div.web-footer {
}
.navbar-inverse .brand,
.navbar-inverse .brand:hover,
.navbar-inverse .brand:focus,
.navbar-inverse .nav > li > a {
color: #{{ doc.top_bar_foreground or "fff"}};
text-shadow: none;
}
.navbar-inverse .brand:hover,
.navbar-inverse .nav > li > a:hover,
.navbar-inverse .brand:focus,
.navbar-inverse .nav > li > a:focus {
color: #{{ doc.top_bar_background or "aaa"}};
}
.navbar-inverse .brand {
color: #{{ doc.top_bar_foreground or "fff"}};
color: #{{ doc.top_bar_background or "000"}};
}
.navbar-inverse .navbar-text {

View File

@ -48,6 +48,7 @@ var blog = {
},
dataType: "json",
success: function(data) {
$(".progress").toggle(false);
if(data.exc) console.log(data.exc);
blog.render(data.message);
}
@ -81,10 +82,10 @@ var blog = {
</div><hr>', b)).appendTo($wrap);
});
blog.start += (data.length || 0);
if(!data.length) {
if(!data.length || data.length < 20) {
if(blog.start) {
$("#next-page").toggle(false)
.parent().append("<div class='alert'>Nothing more to show.</div>");
.parent().append("<div class='alert alert-info'>Nothing more to show.</div>");
} else {
$("#next-page").toggle(false)
.parent().append("<div class='alert'>No blogs written yet.</div>");

View File

@ -14,6 +14,9 @@
<div class="span12">
<h2 id="blog-title">Blog</h2>
<br>
<div class="progress progress-striped active">
<div class="bar" style="width: 100%;"></div>
</div>
<div id="blog-list">
<!-- blog list will be generated dynamically -->
</div>