From bc82dac61c04e01d9659d84f03780603974e1507 Mon Sep 17 00:00:00 2001 From: maxwell Date: Mon, 24 Jan 2011 18:50:42 -0800 Subject: [PATCH] make the more button work in the mobile site, also, i finally fixed the timeago stuff in the scroll --- app/views/aspects/index.mobile.haml | 9 ++++----- public/javascripts/application.js | 1 + public/stylesheets/sass/mobile.sass | 4 ++++ 3 files changed, 9 insertions(+), 5 deletions(-) diff --git a/app/views/aspects/index.mobile.haml b/app/views/aspects/index.mobile.haml index 43f88ceb2..0dc5eb1f3 100644 --- a/app/views/aspects/index.mobile.haml +++ b/app/views/aspects/index.mobile.haml @@ -13,8 +13,7 @@ #main_stream.stream = render 'shared/stream', :posts => @fakes - %a.paginate - = t("more") -= will_paginate @posts - - + %a.more-link.paginate{:href => '#'} + %h2= t("more") + #small{:style => "font-size:x-small"} + = will_paginate @posts diff --git a/public/javascripts/application.js b/public/javascripts/application.js index f9ff57539..a92258ead 100644 --- a/public/javascripts/application.js +++ b/public/javascripts/application.js @@ -15,6 +15,7 @@ $(document).ready(function() { .detach() .appendTo("#main_stream") .css("display", "block"); + $("abbr.timeago").timeago(); }); $(window).unbind('.infscr'); diff --git a/public/stylesheets/sass/mobile.sass b/public/stylesheets/sass/mobile.sass index 876f645f1..1d6a936cb 100644 --- a/public/stylesheets/sass/mobile.sass +++ b/public/stylesheets/sass/mobile.sass @@ -121,6 +121,10 @@ a.ui-link-inherit :font :size larger +.more-link + :line-height 4em + :text-align center + .time :color #ccc :font