refinerycms-blog 1.0.rc13 → 1.0.rc14

Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile CHANGED
@@ -1 +1,2 @@
1
- gem 'filters_spam', '~> 0.3'
1
+ gem 'filters_spam', '~> 0.3'
2
+ gem "will_paginate", ">= 2.3.14"
data/Gemfile.lock CHANGED
@@ -1,9 +1,11 @@
1
1
  GEM
2
2
  specs:
3
3
  filters_spam (0.3)
4
+ will_paginate (2.3.14)
4
5
 
5
6
  PLATFORMS
6
7
  ruby
7
8
 
8
9
  DEPENDENCIES
9
10
  filters_spam (~> 0.3)
11
+ will_paginate (>= 2.3.14)
@@ -2,14 +2,14 @@ class Blog::PostsController < BlogController
2
2
 
3
3
  before_filter :find_all_blog_posts
4
4
  before_filter :find_blog_post, :only => [:show, :comment]
5
-
5
+
6
6
  def index
7
7
  respond_to do |format|
8
8
  format.html
9
9
  format.rss
10
10
  end
11
11
  end
12
-
12
+
13
13
  def show
14
14
  @blog_comment = BlogComment.new
15
15
  present(@page)
@@ -37,7 +37,10 @@ protected
37
37
  end
38
38
 
39
39
  def find_all_blog_posts
40
- @blog_posts = BlogPost.live
40
+ @blog_posts = BlogPost.live.paginate({
41
+ :page => params[:page],
42
+ :per_page => RefinerySetting.find_or_set(:blog_posts_per_page, 10)
43
+ })
41
44
  end
42
45
 
43
46
  end
@@ -14,7 +14,7 @@
14
14
  <header>
15
15
  <p class='posted_at'>
16
16
  <%= t('blog.shared.posts.created_at', :when => @blog_post.published_at.strftime('%d %B %Y')) %>.
17
-
17
+
18
18
  <% if (categories = @blog_post.categories).any? %>
19
19
  <span class='filed_in'>
20
20
  <%= t('.filed_in') %>
@@ -26,11 +26,11 @@
26
26
  </p>
27
27
  </header>
28
28
  <%=raw @blog_post.body %>
29
-
29
+
30
30
  <% if BlogPost::ShareThis.enabled? %>
31
31
  <span class="st_sharethis" displayText="ShareThis"></span>
32
32
  <% end %>
33
- </article>
33
+ </article>
34
34
  <% if BlogPost.comments_allowed? %>
35
35
  <aside id="comments">
36
36
  <h2><%= t('.comments.title') %></h2>
@@ -66,7 +66,11 @@
66
66
  </div>
67
67
  <div class='field'>
68
68
  <%= f.label :email %>
69
- <%= f.email_field :email %>
69
+ <% if Rails.version > '3.0.0' %>
70
+ <%= f.email_field :email %>
71
+ <% else %>
72
+ <%= f.text_field :email %>
73
+ <% end %>
70
74
  </div>
71
75
  <div class='field message_field'>
72
76
  <%= f.label :message %>
@@ -7,17 +7,17 @@
7
7
  </p>
8
8
  </header>
9
9
  <section class='clearfix'>
10
- <%= truncate(post.body,
11
- :length => RefinerySetting.find_or_set(:blog_post_teaser_length, 250),
10
+ <%= truncate(post.body,
11
+ :length => RefinerySetting.find_or_set(:blog_post_teaser_length, 250),
12
12
  :preserve_html_tags => true) %>
13
13
  </section>
14
14
  <footer>
15
- <p>
15
+ <p>
16
16
  <%= link_to t('blog.shared.posts.read_more'), blog_post_url(post) %>
17
-
17
+
18
18
  <span class='comment_count'>
19
19
  <% if post.comments.any? %>
20
- (<%= pluralize(post.comments.count, t('blog.shared.comments.singular')) %>)
20
+ (<%= pluralize(post.comments.approved.count, t('blog.shared.comments.singular')) %>)
21
21
  <% else %>
22
22
  (<%= t('blog.shared.comments.none') %>)
23
23
  <% end %>
@@ -1,7 +1,7 @@
1
1
  <h2><%= t('.other') %></h2>
2
2
  <ul id="blog_posts">
3
3
  <% @blog_posts.each do |blog_post| %>
4
- <li>
4
+ <li class='clearfix'>
5
5
  <%= link_to blog_post.title, blog_post_url(blog_post) %>
6
6
  </li>
7
7
  <% end %>
@@ -0,0 +1,103 @@
1
+ it:
2
+ plugins:
3
+ refinerycms_blog:
4
+ title: Blog
5
+ admin:
6
+ blog:
7
+ categories:
8
+ category:
9
+ edit: Modifica questa categoria
10
+ delete: Elimina questa categoria per sempre
11
+ index:
12
+ no_items_yet: 'Nessuna categoria ancora presente. Fare click su "{{create}}" per aggiungere la tua prima categoria.'
13
+ comments:
14
+ approved: 'Il commento di "{{author}}" è stato approvato.'
15
+ comment:
16
+ view_live: Visualizza questo commento <em> <br/> live (si apre in una nuova finestra) </ em>
17
+ read: Leggi questo commento
18
+ reject: Rifiuta questo commento
19
+ approve: Approva questo commento
20
+ rejected: 'Il commento di "{{author}}" è stato rifiutato.'
21
+ index:
22
+ no_items_yet: 'Non ci sono {{type}} commenti.'
23
+ show:
24
+ comment: Commento
25
+ blog_post: Messaggio del Blog
26
+ from: Pubblicato da
27
+ date: Pubblicato il
28
+ message: Commento
29
+ details: Dettagli
30
+ age: età
31
+ actions: Azioni
32
+ back: Torna a tutti i commenti
33
+ reject: Rifiuta questo commento
34
+ approve: Approva questo commento
35
+ posts:
36
+ form:
37
+ advanced_options: Opzioni Avanzate
38
+ toggle_advanced_options: Clicca per accedere alle impostationi dei meta tag e del menu
39
+ save_as_draft: Salva come Bozza
40
+ published_at: Data di Pubblicazione
41
+ index:
42
+ no_items_yet: 'Non ci sono ancora Messaggi per questo Blog. Clicca "{{create}}" per aggiungere il tuo primo messaggio.'
43
+ post:
44
+ view_live: Visualizza questo messaggio live <br/><em>(si apre in una nuova finestra)</em>
45
+ edit: Modifica questo messaggio
46
+ delete: Rimuovi questo messaggio per sempre
47
+ settings:
48
+ notification_recipients:
49
+ value: Inviare notifiche a
50
+ explanation: "Ogni volta che qualcuno commenta un messaggio del blog, Refinery invia una mail per avvisare che c'è un nuovo comemnto"
51
+ hint: 'Quando viene aggiunto un nuovo commento Refinery ti invierà una email di notifica.'
52
+ example: "Inserisci il tuo indirizzo email. È possibile insierire più indirizzi separati dalla virgola. Es: jack@work.com, jill@office.com"
53
+ updated: 'I destinatari delle notifiche sono stati impostati "{{recipients}}"'
54
+ submenu:
55
+ categories:
56
+ title: Categorie
57
+ manage: Gestione categorie
58
+ new: Crea nuova categoria
59
+ comments:
60
+ title: Commenti
61
+ title_with_count: 'Comment1 ({{new_count}} nuovi)'
62
+ new: Nuovo
63
+ unmoderated: Nuovo
64
+ approved: Approvato
65
+ rejected: Rifiutato
66
+ posts:
67
+ title: Messaggi
68
+ manage: Gestione post
69
+ new: Crea nuovo post
70
+ settings:
71
+ title: Impostazioni
72
+ moderation: Moderazione
73
+ update_notified: Aggiornare destinatario notifica
74
+ blog:
75
+ shared:
76
+ categories:
77
+ title: Categorie
78
+ rss_feed:
79
+ title: RSS Feed
80
+ posts:
81
+ other: Altri Messaggi
82
+ created_at: 'Pubblicato il {{when}}'
83
+ read_more: Per saperne di più
84
+ comments:
85
+ singular: commento
86
+ none: nessun commento
87
+ categories:
88
+ show:
89
+ no_posts: Nessun messaggio ancora presente.
90
+ posts:
91
+ comment: commento
92
+ comments:
93
+ by: 'Pubblicato da {{who}}'
94
+ time_ago: '{{time}} fa'
95
+ thank_you: 'Grazie per aver scritto un commento.'
96
+ thank_you_moderated: 'Grazie per aver scritto un commento. Il tuo messaggio è stato inserito nella coda di moderazione e sarà visibile a breve.'
97
+ show:
98
+ comments:
99
+ title: Commenti
100
+ add: Scrivi un Commento
101
+ other: Altri Messaggi del Blog
102
+ filed_in: Archiviato in
103
+ submit: Invia commento
@@ -1,5 +1,5 @@
1
1
  User.find(:all).each do |user|
2
- user.plugins.create(:name => "<%= singular_name %>",
2
+ user.plugins.create(:name => "refinerycms_blog",
3
3
  :position => (user.plugins.maximum(:position) || -1) +1)
4
4
  end
5
5
 
@@ -42,7 +42,7 @@ module Refinery
42
42
 
43
43
  class << self
44
44
  def version
45
- %q{1.0.rc13}
45
+ %q{1.0.rc14}
46
46
  end
47
47
  end
48
48
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: refinerycms-blog
3
3
  version: !ruby/object:Gem::Version
4
- hash: -398340062
4
+ hash: -398340061
5
5
  prerelease: true
6
6
  segments:
7
7
  - 1
8
8
  - 0
9
- - rc13
10
- version: 1.0.rc13
9
+ - rc14
10
+ version: 1.0.rc14
11
11
  platform: ruby
12
12
  authors:
13
13
  - Resolve Digital
@@ -16,7 +16,7 @@ autorequire:
16
16
  bindir: bin
17
17
  cert_chain: []
18
18
 
19
- date: 2010-10-05 00:00:00 +13:00
19
+ date: 2010-11-03 00:00:00 +13:00
20
20
  default_executable:
21
21
  dependencies:
22
22
  - !ruby/object:Gem::Dependency
@@ -98,6 +98,7 @@ files:
98
98
  - app/views/blog/shared/_posts.html.erb
99
99
  - app/views/blog/shared/_rss_feed.html.erb
100
100
  - config/locales/en.yml
101
+ - config/locales/it.yml
101
102
  - config/locales/nb.yml
102
103
  - config/locales/nl.yml
103
104
  - config/routes.rb