This website works better with JavaScript.
Home
Explore
Help
Sign In
adrianshort
/
apollo
mirror of
https://github.com/adrianshort/apollo.git
Watch
1
Star
0
Fork
0
Code
Issues
0
Releases
0
Wiki
Activity
Browse Source
Use count rather than size to count posts efficiently
master
Adrian Short
12 years ago
parent
323ad0d2c1
commit
9469d67efd
2 changed files
with
2 additions
and
2 deletions
Unified View
Diff Options
Show Stats
Download Patch File
Download Diff File
+1
-1
app/views/feeds/index.html.haml
+1
-1
app/views/feeds/show.html.haml
+ 1
- 1
app/views/feeds/index.html.haml
View File
@@ -17,7 +17,7 @@
%td
%td
.feed_title
.feed_title
= link_to f.title, f
= link_to f.title, f
%td.right= f.posts.
size
%td.right= f.posts.
count
%td
%td
- if f.last_fetched.nil?
- if f.last_fetched.nil?
never
never
+ 1
- 1
app/views/feeds/show.html.haml
View File
@@ -9,7 +9,7 @@
Validate
Validate
%p
%p
= pluralize(@feed.posts.
size
, "post")
= pluralize(@feed.posts.
count
, "post")
%p
%p
= link_to @feed.feed_url, @feed.feed_url
= link_to @feed.feed_url, @feed.feed_url
Write
Preview
Loading…
Cancel
Save