+ "<i class=\"fa fa-arrow-circle-down\"></i> " +
+ _("Newer posts") + " <i class=\"fa fa-arrow-circle-down\"></a></div></div>" ;
+ }
+
+ // Now figure out where to scroll to after rendering.
+ if (gt_msg > 0) {
+ scroll_to = msgs[0];
+ }
+ else if (lt_msg < 9999999999) {
+ scroll_to = msgs[msgs.length-1];
+ }
+ else if ( (logged_in) && (gt_msg == 0) && (lt_msg == 9999999999) ) {
+ scroll_to = msgs[msgs.length-1];
+ }
+ else {
+ scroll_to = msgs[0]; // FIXME this is too naive