make the footer not so useless

This commit is contained in:
Dan Hansen 2011-01-23 23:53:17 -06:00
parent 89d43ef4d7
commit 8293016348
4 changed files with 32 additions and 2 deletions

View file

@ -6,6 +6,8 @@
- if posts.length > 0
- for post in posts
= render 'shared/stream_element', :post => post, :all_aspects => @all_aspects, :commenting_disabled => defined?(@commenting_disabled)
%a.paginate
= t("more")
- else
= render 'aspects/no_posts_message', :post_count => posts.length

View file

@ -28,6 +28,7 @@ en:
new_notifications: "%{count} new notifications"
no_new_notifications: "no new notifications"
_home: "Home"
_more: "More"
_comments: "Comments"
next: 'next'
previous: 'previous'

View file

@ -10,6 +10,18 @@ $(document).ready(function() {
donetext: "no more.",
loadingText: "",
loadingImg: '/images/ajax-loader.gif'
}, function() {
$("a.paginate")
.detach()
.appendTo("#main_stream")
.css("display", "block");
});
$(window).unbind('.infscr');
$("a.paginate").live("click", function() {
$(this).css("display", "none");
$(document).trigger("retrieve.infscr");
});
});

View file

@ -626,9 +626,24 @@ ul.show_comments
:margin
:bottom 2em
a.paginate
:border
:width 1px
:style solid
:color $blue
:display block
:margin
:top 10px
:padding 5px
:text-align center
:width 100%
:cursor pointer
&:hover
:border 1px solid #1C6D99
.pagination
a
:padding 3px
:display none
.stream_element
.right