diff --git a/.gitignore b/.gitignore index 9c1a2c5..b6983d3 100644 --- a/.gitignore +++ b/.gitignore @@ -42,3 +42,7 @@ nbproject # Capybara Bug capybara-*html + +# Future stuff +Gemfile.lock +spec/dummy \ No newline at end of file diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..8fd075d --- /dev/null +++ b/.travis.yml @@ -0,0 +1,5 @@ +rvm: + - 1.9.2 +branches: + only: + - rails-3-1 \ No newline at end of file diff --git a/app/helpers/blog_posts_helper.rb b/app/helpers/blog_posts_helper.rb index 0848632..92e2bae 100644 --- a/app/helpers/blog_posts_helper.rb +++ b/app/helpers/blog_posts_helper.rb @@ -1,10 +1,8 @@ module BlogPostsHelper def blog_archive_list - posts = BlogPost.select('published_at').all_previous + posts = BlogPost.live.select('published_at').all_previous return nil if posts.blank? - html = '

' - html << t('archives', :scope => 'blog.shared') - html << '

' html.html_safe end diff --git a/app/views/admin/blog/posts/_form.html.erb b/app/views/admin/blog/posts/_form.html.erb index c891b63..3da6cd3 100644 --- a/app/views/admin/blog/posts/_form.html.erb +++ b/app/views/admin/blog/posts/_form.html.erb @@ -9,7 +9,12 @@ <%= f.label :title -%> <%= f.text_field :title, :class => 'larger widest' -%> - +
+

+ <%= f.check_box :draft %> + <%= f.label :draft, t('.save_as_draft'), :class => "stripped" %> +

+