From 9aa786fa47f322798f2b3d9e1c63d7b704f51309 Mon Sep 17 00:00:00 2001 From: CharlotteGilhooly Date: Fri, 17 Aug 2012 16:21:24 +0100 Subject: [PATCH] Use nonbreaking spaces for last fetched times to stop text breaking across lines --- app/views/feeds/index.html.haml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/views/feeds/index.html.haml b/app/views/feeds/index.html.haml index 9a21409..7b84a06 100644 --- a/app/views/feeds/index.html.haml +++ b/app/views/feeds/index.html.haml @@ -24,8 +24,7 @@ - if f.last_fetched.nil? never - else - = time_ago_in_words f.last_fetched - ago + = (time_ago_in_words(f.last_fetched) + " ago").gsub(/ +/, " ").html_safe %td= link_to "Fetch", fetch_feed_url(f), :class => "button" %td= link_to 'Edit', edit_feed_path(f), :class => "button" %td= link_to 'Delete', f, :confirm => "Delete #{f.title} and all its posts?", :method => :delete, :class => "button"