make the footer not so useless
This commit is contained in:
parent
89d43ef4d7
commit
8293016348
4 changed files with 32 additions and 2 deletions
|
|
@ -6,6 +6,8 @@
|
||||||
- if posts.length > 0
|
- if posts.length > 0
|
||||||
- for post in posts
|
- for post in posts
|
||||||
= render 'shared/stream_element', :post => post, :all_aspects => @all_aspects, :commenting_disabled => defined?(@commenting_disabled)
|
= render 'shared/stream_element', :post => post, :all_aspects => @all_aspects, :commenting_disabled => defined?(@commenting_disabled)
|
||||||
|
%a.paginate
|
||||||
|
= t("more")
|
||||||
|
|
||||||
- else
|
- else
|
||||||
= render 'aspects/no_posts_message', :post_count => posts.length
|
= render 'aspects/no_posts_message', :post_count => posts.length
|
||||||
|
|
|
||||||
|
|
@ -28,6 +28,7 @@ en:
|
||||||
new_notifications: "%{count} new notifications"
|
new_notifications: "%{count} new notifications"
|
||||||
no_new_notifications: "no new notifications"
|
no_new_notifications: "no new notifications"
|
||||||
_home: "Home"
|
_home: "Home"
|
||||||
|
_more: "More"
|
||||||
_comments: "Comments"
|
_comments: "Comments"
|
||||||
next: 'next'
|
next: 'next'
|
||||||
previous: 'previous'
|
previous: 'previous'
|
||||||
|
|
|
||||||
|
|
@ -10,6 +10,18 @@ $(document).ready(function() {
|
||||||
donetext: "no more.",
|
donetext: "no more.",
|
||||||
loadingText: "",
|
loadingText: "",
|
||||||
loadingImg: '/images/ajax-loader.gif'
|
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");
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -626,9 +626,24 @@ ul.show_comments
|
||||||
:margin
|
:margin
|
||||||
:bottom 2em
|
: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
|
.pagination
|
||||||
a
|
:display none
|
||||||
:padding 3px
|
|
||||||
|
|
||||||
.stream_element
|
.stream_element
|
||||||
.right
|
.right
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue