Commit graph

210 commits

Author SHA1 Message Date
Joe Sak
a4b02b13c3 Previous scope test wasn't testing BlogPost.previous 2011-02-16 01:18:37 -06:00
Joe Sak
6f9de45019 Closes GH-34. Pagination was already in the public controller, the index view template "just" needed will_paginate
Should probably add basic CSS style or make it say older / newer? Open to suggestions
2011-02-16 01:17:05 -06:00
Joe Sak
5bf1926ec7 This is probably just faster 2011-02-16 01:16:24 -06:00
Joe Sak
4fe4a7ff24 Show publish date in preview data of admin index 2011-02-16 01:15:52 -06:00
Joe Sak
7046ba73fe default_scope :order => 'published_at DESC'
move "next" to << self to use exclusive scope
2011-02-16 01:15:05 -06:00
Joe Sak
d5ffea8e88 test coverage for uncategorized blog posts scope 2011-02-16 00:29:36 -06:00
Joe Sak
d668800767 Closes GH-30. Link uncategorized posts in the blog admin menu 2011-02-16 00:14:13 -06:00
Joe Sak
28b02370ec Update english language file for uncategorized posts 2011-02-16 00:14:01 -06:00
Joe Sak
a045cc11fe Add controller action and view template for uncategorized posts 2011-02-16 00:13:46 -06:00
Joe Sak
eac7a05f93 Add route for uncategorized posts index in blog admin 2011-02-16 00:13:00 -06:00
Joe Sak
f520d6c6e7 Add class method to find uncategorized posts 2011-02-16 00:12:40 -06:00
Joe Sak
3ecdeae3b0 test coverage for previous changes 2011-02-15 23:48:46 -06:00
Joe Sak
652ecc4707 Closes GH-37. Move habtm assn to a has_many :through so posts can be ordered by published_at DESC on category#show view 2011-02-15 23:23:17 -06:00
Joe Sak
2b86be50d2 .html_safe failed on empty body & sidebody content 2011-02-15 23:19:08 -06:00
Vitaly Ishkulov
8649dc7ff3 Russian localization added.
Signed-off-by: Vitaly Ishkulov <vit@iva-soft.com>
2011-01-26 19:44:01 +05:00
Adrien Giboire
9d03b0c677 Missed translation blog.posts.post.filed_in in translation files 2011-01-25 14:14:42 +01:00
Adrien Giboire
375fb27fc8 Added French Translations 2011-01-25 13:31:37 +01:00
Philip Arndt
eb7e23d665 redo gemspec. 2011-01-11 11:36:26 +13:00
Joe Sak
41d94df0df BlogPost != NewsItem 2011-01-10 16:26:22 -06:00
Joe Sak
bf74b32f3f Archives group by year after 2 years 2011-01-10 16:11:53 -06:00
Marcelo Griggio Cajueiro
b29b7df9ac Used internationalization for the months in the file list. 2011-01-03 12:21:13 -02:00
Marcelo Griggio Cajueiro
17c27b01c2 Added file for internationalization of the Brazilian Portuguese. 2011-01-03 12:17:06 -02:00
Marcelo Griggio Cajueiro
4a3a0fe250 Use i18n to display the post created_at. 2010-12-30 14:58:22 -02:00
Joe Sak
ff0bd433c5 The blog nav should not grab next & previous drafts :) 2010-12-15 19:41:08 -06:00
Philip Arndt
2a0dc92538 Make the body content work when there are not this many parts. 2010-12-13 11:02:29 +13:00
Phil Spitler
170753fbd7 Set page output to html_safe. 2010-12-12 16:52:19 -05:00
Philip Arndt
cf08283ccd << is much faster than += 2010-12-10 23:48:36 +13:00
Uģis Ozols
6b9b639fd4 Move 'Archives' text to locale. 2010-12-10 11:11:02 +02:00
Uģis Ozols
58da388652 Cleanup views as will_paginate link labels gets set in core. 2010-12-10 08:58:42 +02:00
Uģis Ozols
5c5ed009cc Prevent mass assignment. 2010-12-08 09:24:24 +02:00
Philip Arndt
01925ea2a8 Merge remote branch 'seasonlabs/master' 2010-12-08 09:13:44 +13:00
Xavi Blanch
51a36a6e0c fine tuning 2010-12-07 17:15:41 +01:00
Xavi Blanch
ea9b3e1fd5 translations 2010-12-07 16:46:51 +01:00
Uģis Ozols
f8dde9b3cf Added some rspec tests for blog category model. 2010-12-07 16:21:20 +02:00
Victor Castell
0bce34678a Translating progress 2010-12-07 13:48:58 +01:00
Uģis Ozols
9ff63388f3 Added some rspec tests for blog post model. 2010-12-07 09:09:55 +02:00
Uģis Ozols
ffa7b65e82 Use rails naming convention for translations that contain html markup. 2010-12-03 13:57:39 +02:00
Uģis Ozols
a914c2721e Fix translation path. 2010-12-03 13:47:32 +02:00
Uģis Ozols
329f39a37d Optimised post_count method. See gist for benchmarks - https://gist.github.com/726844 2010-12-03 13:25:58 +02:00
Uģis Ozols
deca138ec9 Reduce db queries. 2010-12-03 13:01:12 +02:00
Uģis Ozols
0dc56cc017 When we delete blog post it should delete associated comments too. 2010-12-03 11:31:21 +02:00
Uģis Ozols
1d7a814fb1 Rails 3 validation style. 2010-12-03 10:55:09 +02:00
Uģis Ozols
51095b8091 Moved some text to locale. 2010-12-03 09:58:16 +02:00
Uģis Ozols
2db680dd98 Refactored nav partial, added 'blog home' to locale and removed unneeded <nav></nav> tags. 2010-12-03 09:48:47 +02:00
Uģis Ozols
a0ec0bce14 Added missing </li> tag. 2010-12-03 09:17:25 +02:00
Uģis Ozols
420afaf199 Fix deprecation warnings. 2010-12-03 09:13:38 +02:00
Uģis Ozols
1167a1d6a9 We don't need those h in Rails 3. 2010-12-03 09:08:07 +02:00
Uģis Ozols
fef6dc47a6 Use symbol instead of string. 2010-12-03 09:05:09 +02:00
Uģis Ozols
447bbb5eb2 Use :confirm and :method link_to methods. 2010-12-03 09:03:54 +02:00
Uģis Ozols
7da21ab480 Moved 'no blog posts' text to locale file. 2010-12-03 08:38:30 +02:00