Commit graph

533 commits

Author SHA1 Message Date
Philip Arndt
559ef9b3cb Added new migration to add the user_id column to blog_posts. The madness must end, we must move to EngineInstaller in the next version. 2011-03-02 15:32:20 +13:00
Joe Sak
2cfc0c142c Merge branch 'i18n_de' of https://github.com/gern/refinerycms-blog into gern-i18n_de 2011-02-24 22:36:52 -06:00
Joe Sak
ed95360b7c Whups. Wrong variable name pasted in 2011-02-24 22:34:58 -06:00
Joe Sak
c9c38df5ba Closes GH-44. Authors are now associated with blog posts by current_user Merge branch 'addingusers'
Conflicts:
	app/models/blog_post.rb
2011-02-24 22:29:41 -06:00
Joe Sak
2b322a7bf4 ALL CUKES PASS: Show author login in view templates (if author present?) 2011-02-24 22:28:47 -06:00
Joe Sak
be7763d8d2 Fix bad syntax in cukes 2011-02-24 22:28:23 -06:00
Joe Sak
0455eb155e Wrong syntax for AR association 2011-02-24 22:28:04 -06:00
Joe Sak
d23c10db70 A little refactor and language change due to core auth steps & factories 2011-02-24 22:14:35 -06:00
Joe Sak
518ee00e0c WIP- just stuck on the uninitialized Constant weirdness 2011-02-24 22:12:20 -06:00
Joe Sak
e218c8fc5b just a lil' reminder 2011-02-24 21:38:24 -06:00
Joe Sak
6a3cf5d6a6 WIP: trying to test user association as author 2011-02-24 21:32:37 -06:00
Joe Sak
c75cf8a00e Blog Posts belong to an author ("user_id") 2011-02-24 20:46:20 -06:00
Gerhard Neugschwandtner
3f1144eedf added de.yml translation 2011-02-24 19:25:27 +01:00
Marcin Urbanski
56df60d80a Polish translation 2011-02-21 12:41:19 +01:00
Philip Arndt
ce9c663631 Only show these sections when there is relevant information to show. 2011-02-21 13:24:31 +13:00
Philip Arndt
f221da62cd Added settings click-button functionality for toggling comments being enabled, with translations. 2011-02-21 13:21:56 +13:00
Philip Arndt
4228fa4146 Fix constant ajax-loader spinning. 2011-02-21 12:58:09 +13:00
Simon Hambly
8c01bcece4 tidy up views, removing reference to comments when comments disable 2011-02-20 22:11:45 +00:00
Philip Arndt
6fda9d4fa7 Chrome (atleast) got more strict about this and if you have a / in the selector then you need quotation marks. Closes GH-39 2011-02-17 14:55:54 +13:00
Philip Arndt
78e5eeb624 No more gemfile in the gemspec 2011-02-17 11:05:43 +13:00
Philip Arndt
46372aab0e Not sure why we were getting bundler involved. Regeneraed gemspec 2011-02-17 11:03:09 +13:00
Joe Sak
f466091561 lambda is necessary to keep Time.now from becoming a constant, which allows .uncategorized to use .live posts again 2011-02-16 08:28:51 -06:00
Joe Sak
69d65032f8 The first shall be the .last, and the last shall be the .first
thanks to the default_scope :order_by published_at DESC
2011-02-16 01:22:29 -06:00
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