refinerycms-blog 1.7.0 → 1.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/app/helpers/blog_posts_helper.rb +1 -4
- data/app/models/blog_comment.rb +9 -3
- data/app/views/admin/blog/posts/_form.html.erb +7 -5
- data/app/views/admin/blog/posts/_post.html.erb +3 -0
- data/app/views/blog/posts/archive.html.erb +1 -1
- data/app/views/blog/posts/index.html.erb +1 -1
- data/app/views/blog/posts/show.html.erb +34 -3
- data/app/views/blog/posts/tagged.html.erb +1 -1
- data/app/views/blog/shared/_archive_list.html.erb +9 -0
- data/app/views/blog/shared/{_posts.html.erb → _related_posts.html.erb} +0 -0
- data/changelog.md +7 -1
- data/config/locales/pt-BR.yml +5 -0
- data/config/locales/ru.yml +7 -0
- data/lib/gemspec.rb +1 -1
- data/lib/refinery/blog/version.rb +1 -1
- data/readme.md +10 -0
- data/refinerycms-blog.gemspec +4 -5
- metadata +14 -15
- data/Gemfile.lock +0 -293
- data/app/views/blog/posts/_post.html.erb +0 -31
@@ -2,9 +2,7 @@ module BlogPostsHelper
|
|
2
2
|
def blog_archive_list
|
3
3
|
posts = BlogPost.live.select('published_at').all_previous
|
4
4
|
return nil if posts.blank?
|
5
|
-
html = '
|
6
|
-
html << t('archives', :scope => 'blog.shared')
|
7
|
-
html << '</h2><nav><ul>'
|
5
|
+
html = ''
|
8
6
|
links = []
|
9
7
|
super_old_links = []
|
10
8
|
|
@@ -34,7 +32,6 @@ module BlogPostsHelper
|
|
34
32
|
html << link_to(text, archive_blog_posts_path(:year => year))
|
35
33
|
html << "</li>"
|
36
34
|
end
|
37
|
-
html << '</ul></nav></section>'
|
38
35
|
html.html_safe
|
39
36
|
end
|
40
37
|
|
data/app/models/blog_comment.rb
CHANGED
@@ -20,10 +20,16 @@ class BlogComment < ActiveRecord::Base
|
|
20
20
|
scope :rejected, :conditions => {:state => 'rejected'}
|
21
21
|
|
22
22
|
def avatar_url(options = {})
|
23
|
-
options = {:size => 60}
|
24
23
|
require 'digest/md5'
|
25
|
-
|
26
|
-
|
24
|
+
params = {
|
25
|
+
:s => options[:size] || 60,
|
26
|
+
:d => options[:default_image]
|
27
|
+
}
|
28
|
+
query_string = params.map do |k,v|
|
29
|
+
[k,v].map { |s| CGI::escape(s.to_s) }.join('=')
|
30
|
+
end.join('&')
|
31
|
+
email_md5 = Digest::MD5.hexdigest(self.email.to_s.strip.downcase)
|
32
|
+
"http://gravatar.com/avatar/#{email_md5}?#{query_string}"
|
27
33
|
end
|
28
34
|
|
29
35
|
def approve!
|
@@ -9,7 +9,12 @@
|
|
9
9
|
<%= f.label :title -%>
|
10
10
|
<%= f.text_field :title, :class => 'larger widest' -%>
|
11
11
|
</div>
|
12
|
-
|
12
|
+
<div class="field">
|
13
|
+
<p>
|
14
|
+
<%= f.check_box :draft %>
|
15
|
+
<%= f.label :draft, t('.save_as_draft'), :class => "stripped" %>
|
16
|
+
</p>
|
17
|
+
</div>
|
13
18
|
<div class='field'>
|
14
19
|
<div id='page-tabs' class='clearfix ui-tabs ui-widget ui-widget-content ui-corner-all'>
|
15
20
|
<ul id='page_parts'>
|
@@ -59,10 +64,7 @@
|
|
59
64
|
:id => 'toggle_advanced_options',
|
60
65
|
:title => t('.toggle_advanced_options') %>
|
61
66
|
</p>
|
62
|
-
|
63
|
-
<%= f.check_box :draft %>
|
64
|
-
<%= f.label :draft, t('.save_as_draft'), :class => "stripped" %>
|
65
|
-
</span>
|
67
|
+
|
66
68
|
</div>
|
67
69
|
<div id='more_options' style="display:none;">
|
68
70
|
<div class="hemisquare">
|
@@ -6,6 +6,9 @@
|
|
6
6
|
<%= " by #{post.author.username}" if post.author.present? %>
|
7
7
|
</span>
|
8
8
|
</span>
|
9
|
+
<% if post.draft? %>
|
10
|
+
<span class="label notice">Draft</span>
|
11
|
+
<% end %>
|
9
12
|
<span class='actions'>
|
10
13
|
<%= link_to refinery_icon_tag("application_go.png"), blog_post_url(post),
|
11
14
|
:title => t('.view_live_html'),
|
@@ -13,7 +13,7 @@
|
|
13
13
|
<%= render :partial => "/blog/shared/categories" %>
|
14
14
|
<%= render :partial => "/blog/shared/tags" %>
|
15
15
|
<%= render :partial => "/blog/shared/rss_feed" %>
|
16
|
-
<%=
|
16
|
+
<%= render :partial => "/blog/shared/archive_list" %>
|
17
17
|
<% end %>
|
18
18
|
|
19
19
|
<%= render :partial => "/shared/content_page" %>
|
@@ -17,7 +17,7 @@
|
|
17
17
|
<%= render :partial => "/blog/shared/categories" %>
|
18
18
|
<%= render :partial => "/blog/shared/tags" %>
|
19
19
|
<%= render :partial => "/blog/shared/rss_feed" %>
|
20
|
-
<%=
|
20
|
+
<%= render :partial => "/blog/shared/archive_list" %>
|
21
21
|
<% end %>
|
22
22
|
|
23
23
|
<%= render :partial => "/shared/content_page" %>
|
@@ -1,6 +1,37 @@
|
|
1
1
|
<% content_for :body_content_left do %>
|
2
2
|
<div id="show_blog_post">
|
3
|
-
|
3
|
+
<% flash.each do |key, value| %>
|
4
|
+
<div id='flash' class="flash flash_<%= key %>">
|
5
|
+
<%= value %>
|
6
|
+
</div>
|
7
|
+
<% end %>
|
8
|
+
<article id="blog_post">
|
9
|
+
<header>
|
10
|
+
<h1><%= @blog_post.title %></h1>
|
11
|
+
<section class='details'>
|
12
|
+
<time datetime="<%=l @blog_post.published_at.to_date, :format => :default %>" class='posted_at'>
|
13
|
+
<%= t('created_at', :scope => 'blog.shared.posts', :when => l(@blog_post.published_at.to_date, :format => :short)) %>
|
14
|
+
</time>
|
15
|
+
<%= "#{t('by', :scope => 'blog.posts.show')} #{@blog_post.author.username}" if @blog_post.author.present? %>.
|
16
|
+
<% if (categories = @blog_post.categories).any? %>
|
17
|
+
<aside class='filed_in'>
|
18
|
+
<%= t('filed_in', :scope => 'blog.posts.show') %>
|
19
|
+
<% categories.each_with_index do |category, index| %>
|
20
|
+
<%= link_to category.title, blog_category_url(category) -%><%= ',' if index < ((categories.length) - 1) %>
|
21
|
+
<% end %>
|
22
|
+
</aside>
|
23
|
+
<% end %>
|
24
|
+
</section>
|
25
|
+
</header>
|
26
|
+
<%= @blog_post.body.html_safe %>
|
27
|
+
|
28
|
+
<% if BlogPost::ShareThis.enabled? %>
|
29
|
+
<span class="st_sharethis" displayText="ShareThis"></span>
|
30
|
+
<% end %>
|
31
|
+
</article>
|
32
|
+
<%= render :partial => '/shared/draft_page_message' unless @blog_post.nil? or @blog_post.live? -%>
|
33
|
+
<%= render 'nav' if next_or_previous?(@blog_post) %>
|
34
|
+
|
4
35
|
</div>
|
5
36
|
|
6
37
|
<% if BlogPost.comments_allowed? %>
|
@@ -50,9 +81,9 @@
|
|
50
81
|
<% content_for :body_content_right do %>
|
51
82
|
<%= render :partial => "/blog/shared/categories" %>
|
52
83
|
<%= render :partial => "/blog/shared/tags" %>
|
53
|
-
<%= render :partial => "/blog/shared/
|
84
|
+
<%= render :partial => "/blog/shared/related_posts" %>
|
54
85
|
<%= render :partial => "/blog/shared/rss_feed" %>
|
55
|
-
<%=
|
86
|
+
<%= render :partial => "/blog/shared/archive_list" %>
|
56
87
|
<% end %>
|
57
88
|
|
58
89
|
<%= render :partial => "/shared/content_page", :locals => { :remove_automatic_sections => true } %>
|
@@ -15,7 +15,7 @@
|
|
15
15
|
<%= render :partial => "/blog/shared/categories" %>
|
16
16
|
<%= render :partial => "/blog/shared/tags" %>
|
17
17
|
<%= render :partial => "/blog/shared/rss_feed" %>
|
18
|
-
<%=
|
18
|
+
<%= render :partial => "/blog/shared/archive_list" %>
|
19
19
|
<% end %>
|
20
20
|
|
21
21
|
<%= render :partial => "/shared/content_page" %>
|
File without changes
|
data/changelog.md
CHANGED
@@ -1,4 +1,10 @@
|
|
1
|
-
## 1.
|
1
|
+
## 1.8.0 [UNRELEASED]
|
2
|
+
* extraneous shared/_post partial was moved directly into posts/show [nicinabox](https://github.com/nicinabox)
|
3
|
+
* blog archive list helper logic refactored (HTML exists in view template) [nicinabox](https://github.com/nicinabox)
|
4
|
+
* pretty "Draft" label added to admin list of blog posts [nicinabox](https://github.com/nicinabox)
|
5
|
+
* [See full list](https://github.com/resolve/refinerycms-blog/compare/1.7.0...1.8.0)
|
6
|
+
|
7
|
+
## 1.7.0 [05 December 2011]
|
2
8
|
* Bulgarian translations [mirosr](https://github.com/mirosr)
|
3
9
|
* posts/tagged... params[:tag_name] is optional [joemsak](https://github.com/joemsak)
|
4
10
|
* Bug Fix on Categorization relationship: destroying a post produced error because no primary key existed on join table [joemsak](https://github.com/joemsak)
|
data/config/locales/pt-BR.yml
CHANGED
@@ -46,6 +46,10 @@ pt-BR:
|
|
46
46
|
toggle_advanced_options: Clique aqui para acessar as configurações de meta tag e menu
|
47
47
|
save_as_draft: Salvar como rascunho
|
48
48
|
published_at: Data de publicação
|
49
|
+
custom_url: Url customizada
|
50
|
+
custom_url_help: Gere a url para o post do blog a partir dessa ao invés de utilizar o título
|
51
|
+
copy_body: Copiar o Corpo do post para o Teaser
|
52
|
+
copy_body_helper: Copiar o corpo do post para o teaser. Deixe o teaser em branco para deixar o Refinery fazer o teaser automaticamente.
|
49
53
|
index:
|
50
54
|
no_items_yet: 'Ainda não há Posts no Blog. Clique em "%{create}" para adicionar o primeiro post.'
|
51
55
|
uncategorized:
|
@@ -83,6 +87,7 @@ pt-BR:
|
|
83
87
|
moderation: Moderação
|
84
88
|
update_notified: Quem receberá a notificação?
|
85
89
|
comments: Comentários
|
90
|
+
teasers: Teasers
|
86
91
|
blog:
|
87
92
|
comment_mailer:
|
88
93
|
notification:
|
data/config/locales/ru.yml
CHANGED
@@ -101,6 +101,8 @@ ru:
|
|
101
101
|
singular: комментарий
|
102
102
|
none: нет комментариев
|
103
103
|
archives: Архивы
|
104
|
+
tags:
|
105
|
+
title: "Теги"
|
104
106
|
categories:
|
105
107
|
show:
|
106
108
|
no_posts: Записей пока нет.
|
@@ -122,7 +124,12 @@ ru:
|
|
122
124
|
add: Написать комментарий
|
123
125
|
other: Другие записи
|
124
126
|
filed_in: Категория
|
127
|
+
tagged: Теги
|
125
128
|
submit: Отправить комментарий
|
129
|
+
name: Имя
|
130
|
+
email: Email
|
131
|
+
message: Сообщение
|
132
|
+
by: Автор
|
126
133
|
archive:
|
127
134
|
blog_archive_for: 'Архив %{date}'
|
128
135
|
no_blog_articles_posted: 'Ни одной записи за %{date} не опубликовано. Следите за новостями.'
|
data/lib/gemspec.rb
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
require File.expand_path('../refinery/blog/version', __FILE__)
|
3
3
|
version = ::Refinery::Blog::Version.to_s
|
4
4
|
raise "Could not get version so gemspec can not be built" if version.nil?
|
5
|
-
files = Dir.glob("**/*").flatten.reject{|f| f =~ %r{.gem$}}
|
5
|
+
files = Dir.glob("**/*").flatten.reject{|f| f =~ %r{.(gem|lock)$}}
|
6
6
|
|
7
7
|
gemspec = <<EOF
|
8
8
|
Gem::Specification.new do |s|
|
data/readme.md
CHANGED
@@ -18,8 +18,18 @@ Your Rails 3 application should not be called "blog"
|
|
18
18
|
|
19
19
|
Open up your ``Gemfile`` and add at the bottom this line:
|
20
20
|
|
21
|
+
# You now have two options:
|
22
|
+
|
23
|
+
## Take the blue pill and stay on 1.7.x
|
24
|
+
|
21
25
|
gem 'refinerycms-blog', '~> 1.7.0'
|
22
26
|
|
27
|
+
## Take the red pill and head up to 1.8.x
|
28
|
+
## Where the previous shared/_post.html.erb partial was moved directly into show.html.erb
|
29
|
+
## *MEANING:* If you depend on that partial, you'll have to check the changes and merge your customizations back in!
|
30
|
+
|
31
|
+
gem 'refinerycms-blog', '~> 1.8.0'
|
32
|
+
|
23
33
|
Now, run ``bundle install``
|
24
34
|
|
25
35
|
Next, to install the blog plugin run:
|
data/refinerycms-blog.gemspec
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
Gem::Specification.new do |s|
|
2
2
|
s.name = %q{refinerycms-blog}
|
3
|
-
s.version = %q{1.
|
3
|
+
s.version = %q{1.8.0}
|
4
4
|
s.description = %q{A really straightforward open source Ruby on Rails blog engine designed for integration with RefineryCMS.}
|
5
|
-
s.date = %q{
|
5
|
+
s.date = %q{2012-01-19}
|
6
6
|
s.summary = %q{Ruby on Rails blogging engine for RefineryCMS.}
|
7
7
|
s.email = %q{info@refinerycms.com}
|
8
8
|
s.homepage = %q{http://refinerycms.com/blog}
|
@@ -81,16 +81,16 @@ Gem::Specification.new do |s|
|
|
81
81
|
app/views/blog/posts
|
82
82
|
app/views/blog/posts/_comment.html.erb
|
83
83
|
app/views/blog/posts/_nav.html.erb
|
84
|
-
app/views/blog/posts/_post.html.erb
|
85
84
|
app/views/blog/posts/archive.html.erb
|
86
85
|
app/views/blog/posts/index.html.erb
|
87
86
|
app/views/blog/posts/index.rss.builder
|
88
87
|
app/views/blog/posts/show.html.erb
|
89
88
|
app/views/blog/posts/tagged.html.erb
|
90
89
|
app/views/blog/shared
|
90
|
+
app/views/blog/shared/_archive_list.html.erb
|
91
91
|
app/views/blog/shared/_categories.html.erb
|
92
92
|
app/views/blog/shared/_post.html.erb
|
93
|
-
app/views/blog/shared/
|
93
|
+
app/views/blog/shared/_related_posts.html.erb
|
94
94
|
app/views/blog/shared/_rss_feed.html.erb
|
95
95
|
app/views/blog/shared/_tags.html.erb
|
96
96
|
app/views/shared
|
@@ -142,7 +142,6 @@ Gem::Specification.new do |s|
|
|
142
142
|
features/support/step_definitions/tags_steps.rb
|
143
143
|
features/tags.feature
|
144
144
|
Gemfile
|
145
|
-
Gemfile.lock
|
146
145
|
lib
|
147
146
|
lib/gemspec.rb
|
148
147
|
lib/generators
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: refinerycms-blog
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.8.0
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -10,11 +10,11 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date:
|
13
|
+
date: 2012-01-19 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: refinerycms-core
|
17
|
-
requirement: &
|
17
|
+
requirement: &70116785673040 !ruby/object:Gem::Requirement
|
18
18
|
none: false
|
19
19
|
requirements:
|
20
20
|
- - ~>
|
@@ -22,10 +22,10 @@ dependencies:
|
|
22
22
|
version: 1.0.3
|
23
23
|
type: :runtime
|
24
24
|
prerelease: false
|
25
|
-
version_requirements: *
|
25
|
+
version_requirements: *70116785673040
|
26
26
|
- !ruby/object:Gem::Dependency
|
27
27
|
name: filters_spam
|
28
|
-
requirement: &
|
28
|
+
requirement: &70116785672220 !ruby/object:Gem::Requirement
|
29
29
|
none: false
|
30
30
|
requirements:
|
31
31
|
- - ~>
|
@@ -33,10 +33,10 @@ dependencies:
|
|
33
33
|
version: '0.2'
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
|
-
version_requirements: *
|
36
|
+
version_requirements: *70116785672220
|
37
37
|
- !ruby/object:Gem::Dependency
|
38
38
|
name: acts-as-taggable-on
|
39
|
-
requirement: &
|
39
|
+
requirement: &70116785671580 !ruby/object:Gem::Requirement
|
40
40
|
none: false
|
41
41
|
requirements:
|
42
42
|
- - ! '>='
|
@@ -44,10 +44,10 @@ dependencies:
|
|
44
44
|
version: '0'
|
45
45
|
type: :runtime
|
46
46
|
prerelease: false
|
47
|
-
version_requirements: *
|
47
|
+
version_requirements: *70116785671580
|
48
48
|
- !ruby/object:Gem::Dependency
|
49
49
|
name: seo_meta
|
50
|
-
requirement: &
|
50
|
+
requirement: &70116785667160 !ruby/object:Gem::Requirement
|
51
51
|
none: false
|
52
52
|
requirements:
|
53
53
|
- - ~>
|
@@ -55,10 +55,10 @@ dependencies:
|
|
55
55
|
version: 1.1.0
|
56
56
|
type: :runtime
|
57
57
|
prerelease: false
|
58
|
-
version_requirements: *
|
58
|
+
version_requirements: *70116785667160
|
59
59
|
- !ruby/object:Gem::Dependency
|
60
60
|
name: factory_girl
|
61
|
-
requirement: &
|
61
|
+
requirement: &70116785666680 !ruby/object:Gem::Requirement
|
62
62
|
none: false
|
63
63
|
requirements:
|
64
64
|
- - ! '>='
|
@@ -66,7 +66,7 @@ dependencies:
|
|
66
66
|
version: '0'
|
67
67
|
type: :development
|
68
68
|
prerelease: false
|
69
|
-
version_requirements: *
|
69
|
+
version_requirements: *70116785666680
|
70
70
|
description: A really straightforward open source Ruby on Rails blog engine designed
|
71
71
|
for integration with RefineryCMS.
|
72
72
|
email: info@refinerycms.com
|
@@ -115,15 +115,15 @@ files:
|
|
115
115
|
- app/views/blog/comment_mailer/notification.html.erb
|
116
116
|
- app/views/blog/posts/_comment.html.erb
|
117
117
|
- app/views/blog/posts/_nav.html.erb
|
118
|
-
- app/views/blog/posts/_post.html.erb
|
119
118
|
- app/views/blog/posts/archive.html.erb
|
120
119
|
- app/views/blog/posts/index.html.erb
|
121
120
|
- app/views/blog/posts/index.rss.builder
|
122
121
|
- app/views/blog/posts/show.html.erb
|
123
122
|
- app/views/blog/posts/tagged.html.erb
|
123
|
+
- app/views/blog/shared/_archive_list.html.erb
|
124
124
|
- app/views/blog/shared/_categories.html.erb
|
125
125
|
- app/views/blog/shared/_post.html.erb
|
126
|
-
- app/views/blog/shared/
|
126
|
+
- app/views/blog/shared/_related_posts.html.erb
|
127
127
|
- app/views/blog/shared/_rss_feed.html.erb
|
128
128
|
- app/views/blog/shared/_tags.html.erb
|
129
129
|
- app/views/shared/admin/_autocomplete.html.erb
|
@@ -164,7 +164,6 @@ files:
|
|
164
164
|
- features/support/step_definitions/tags_steps.rb
|
165
165
|
- features/tags.feature
|
166
166
|
- Gemfile
|
167
|
-
- Gemfile.lock
|
168
167
|
- lib/gemspec.rb
|
169
168
|
- lib/generators/refinerycms_blog_generator.rb
|
170
169
|
- lib/refinery/blog/tabs.rb
|
data/Gemfile.lock
DELETED
@@ -1,293 +0,0 @@
|
|
1
|
-
GIT
|
2
|
-
remote: git://github.com/collectiveidea/awesome_nested_set.git
|
3
|
-
revision: 7f43579770dd42d00e34c0f09ed9a49f8a524bdc
|
4
|
-
specs:
|
5
|
-
awesome_nested_set (2.1.0)
|
6
|
-
activerecord (>= 3.0.0)
|
7
|
-
|
8
|
-
GIT
|
9
|
-
remote: git://github.com/resolve/refinerycms.git
|
10
|
-
revision: 25162b585b9c4023d39fd1a9796140bfa4ecb909
|
11
|
-
specs:
|
12
|
-
refinerycms (2.0.0)
|
13
|
-
bundler (~> 1.0)
|
14
|
-
refinerycms-authentication (= 2.0.0)
|
15
|
-
refinerycms-core (= 2.0.0)
|
16
|
-
refinerycms-dashboard (= 2.0.0)
|
17
|
-
refinerycms-images (= 2.0.0)
|
18
|
-
refinerycms-pages (= 2.0.0)
|
19
|
-
refinerycms-resources (= 2.0.0)
|
20
|
-
refinerycms-settings (= 2.0.0)
|
21
|
-
refinerycms-authentication (2.0.0)
|
22
|
-
devise (~> 1.4.0)
|
23
|
-
friendly_id_globalize3 (~> 3.2.1)
|
24
|
-
refinerycms-core (= 2.0.0)
|
25
|
-
refinerycms-core (2.0.0)
|
26
|
-
acts_as_indexed (~> 0.7)
|
27
|
-
awesome_nested_set (~> 2.0)
|
28
|
-
coffee-rails (~> 3.1.0)
|
29
|
-
friendly_id_globalize3 (~> 3.2.1)
|
30
|
-
globalize3 (~> 0.2.0.beta3)
|
31
|
-
jquery-rails
|
32
|
-
rails (>= 3.1.1)
|
33
|
-
refinerycms-settings (= 2.0.0)
|
34
|
-
sass-rails (~> 3.1.0)
|
35
|
-
truncate_html (~> 0.5)
|
36
|
-
uglifier
|
37
|
-
will_paginate (~> 3.0.1)
|
38
|
-
refinerycms-dashboard (2.0.0)
|
39
|
-
refinerycms-core (= 2.0.0)
|
40
|
-
refinerycms-images (2.0.0)
|
41
|
-
dragonfly (~> 0.9.8)
|
42
|
-
rack-cache (>= 0.5.3)
|
43
|
-
refinerycms-core (= 2.0.0)
|
44
|
-
refinerycms-pages (2.0.0)
|
45
|
-
awesome_nested_set (~> 2.0)
|
46
|
-
friendly_id_globalize3 (~> 3.2.1)
|
47
|
-
refinerycms-core (= 2.0.0)
|
48
|
-
seo_meta (>= 1.2.0.rc2)
|
49
|
-
refinerycms-resources (2.0.0)
|
50
|
-
dragonfly (~> 0.9.8)
|
51
|
-
rack-cache (>= 0.5.3)
|
52
|
-
refinerycms-core (= 2.0.0)
|
53
|
-
refinerycms-settings (2.0.0)
|
54
|
-
refinerycms-testing (2.0.0)
|
55
|
-
capybara (~> 1.1.0)
|
56
|
-
database_cleaner
|
57
|
-
factory_girl_rails (~> 1.3.0)
|
58
|
-
fuubar
|
59
|
-
guard-rspec (~> 0.5.0)
|
60
|
-
json_pure
|
61
|
-
launchy
|
62
|
-
rack-test (~> 0.6.0)
|
63
|
-
refinerycms-core (= 2.0.0)
|
64
|
-
rspec-instafail
|
65
|
-
rspec-rails (~> 2.7.0)
|
66
|
-
|
67
|
-
PATH
|
68
|
-
remote: .
|
69
|
-
specs:
|
70
|
-
refinerycms-blog (2.0.0)
|
71
|
-
acts-as-taggable-on
|
72
|
-
filters_spam (~> 0.2)
|
73
|
-
rails_autolink
|
74
|
-
refinerycms-core (~> 2.0.0)
|
75
|
-
seo_meta (~> 1.2.0.rc1)
|
76
|
-
|
77
|
-
GEM
|
78
|
-
remote: http://rubygems.org/
|
79
|
-
specs:
|
80
|
-
actionmailer (3.1.1)
|
81
|
-
actionpack (= 3.1.1)
|
82
|
-
mail (~> 2.3.0)
|
83
|
-
actionpack (3.1.1)
|
84
|
-
activemodel (= 3.1.1)
|
85
|
-
activesupport (= 3.1.1)
|
86
|
-
builder (~> 3.0.0)
|
87
|
-
erubis (~> 2.7.0)
|
88
|
-
i18n (~> 0.6)
|
89
|
-
rack (~> 1.3.2)
|
90
|
-
rack-cache (~> 1.1)
|
91
|
-
rack-mount (~> 0.8.2)
|
92
|
-
rack-test (~> 0.6.1)
|
93
|
-
sprockets (~> 2.0.2)
|
94
|
-
activemodel (3.1.1)
|
95
|
-
activesupport (= 3.1.1)
|
96
|
-
builder (~> 3.0.0)
|
97
|
-
i18n (~> 0.6)
|
98
|
-
activerecord (3.1.1)
|
99
|
-
activemodel (= 3.1.1)
|
100
|
-
activesupport (= 3.1.1)
|
101
|
-
arel (~> 2.2.1)
|
102
|
-
tzinfo (~> 0.3.29)
|
103
|
-
activeresource (3.1.1)
|
104
|
-
activemodel (= 3.1.1)
|
105
|
-
activesupport (= 3.1.1)
|
106
|
-
activesupport (3.1.1)
|
107
|
-
multi_json (~> 1.0)
|
108
|
-
acts-as-taggable-on (2.1.1)
|
109
|
-
rails
|
110
|
-
acts_as_indexed (0.7.6)
|
111
|
-
addressable (2.2.6)
|
112
|
-
arel (2.2.1)
|
113
|
-
babosa (0.3.5)
|
114
|
-
bcrypt-ruby (3.0.1)
|
115
|
-
builder (3.0.0)
|
116
|
-
capybara (1.1.1)
|
117
|
-
mime-types (>= 1.16)
|
118
|
-
nokogiri (>= 1.3.3)
|
119
|
-
rack (>= 1.0.0)
|
120
|
-
rack-test (>= 0.5.4)
|
121
|
-
selenium-webdriver (~> 2.0)
|
122
|
-
xpath (~> 0.1.4)
|
123
|
-
childprocess (0.2.2)
|
124
|
-
ffi (~> 1.0.6)
|
125
|
-
coffee-rails (3.1.1)
|
126
|
-
coffee-script (>= 2.2.0)
|
127
|
-
railties (~> 3.1.0)
|
128
|
-
coffee-script (2.2.0)
|
129
|
-
coffee-script-source
|
130
|
-
execjs
|
131
|
-
coffee-script-source (1.1.3)
|
132
|
-
database_cleaner (0.6.7)
|
133
|
-
devise (1.4.9)
|
134
|
-
bcrypt-ruby (~> 3.0)
|
135
|
-
orm_adapter (~> 0.0.3)
|
136
|
-
warden (~> 1.0.3)
|
137
|
-
diff-lcs (1.1.3)
|
138
|
-
dragonfly (0.9.8)
|
139
|
-
rack
|
140
|
-
erubis (2.7.0)
|
141
|
-
execjs (1.2.9)
|
142
|
-
multi_json (~> 1.0)
|
143
|
-
factory_girl (2.2.0)
|
144
|
-
activesupport
|
145
|
-
factory_girl_rails (1.3.0)
|
146
|
-
factory_girl (~> 2.2.0)
|
147
|
-
railties (>= 3.0.0)
|
148
|
-
ffi (1.0.9)
|
149
|
-
filters_spam (0.3)
|
150
|
-
friendly_id_globalize3 (3.2.1.5)
|
151
|
-
babosa (~> 0.3.0)
|
152
|
-
fuubar (0.0.6)
|
153
|
-
rspec (~> 2.0)
|
154
|
-
rspec-instafail (~> 0.1.8)
|
155
|
-
ruby-progressbar (~> 0.0.10)
|
156
|
-
globalize3 (0.2.0.beta4)
|
157
|
-
activemodel (>= 3.0.0)
|
158
|
-
activerecord (>= 3.0.0)
|
159
|
-
paper_trail (~> 2)
|
160
|
-
growl (1.0.3)
|
161
|
-
guard (0.8.8)
|
162
|
-
thor (~> 0.14.6)
|
163
|
-
guard-rspec (0.5.2)
|
164
|
-
guard (>= 0.8.4)
|
165
|
-
guard-spork (0.3.1)
|
166
|
-
guard (>= 0.8.4)
|
167
|
-
spork (>= 0.8.4)
|
168
|
-
hike (1.2.1)
|
169
|
-
i18n (0.6.0)
|
170
|
-
jquery-rails (1.0.16)
|
171
|
-
railties (~> 3.0)
|
172
|
-
thor (~> 0.14)
|
173
|
-
json (1.6.1)
|
174
|
-
json_pure (1.6.1)
|
175
|
-
launchy (2.0.5)
|
176
|
-
addressable (~> 2.2.6)
|
177
|
-
mail (2.3.0)
|
178
|
-
i18n (>= 0.4.0)
|
179
|
-
mime-types (~> 1.16)
|
180
|
-
treetop (~> 1.4.8)
|
181
|
-
mime-types (1.17.2)
|
182
|
-
multi_json (1.0.3)
|
183
|
-
mysql2 (0.3.7)
|
184
|
-
nokogiri (1.5.0)
|
185
|
-
orm_adapter (0.0.5)
|
186
|
-
paper_trail (2.4.0)
|
187
|
-
rails (~> 3)
|
188
|
-
pg (0.11.0)
|
189
|
-
polyglot (0.3.3)
|
190
|
-
rack (1.3.5)
|
191
|
-
rack-cache (1.1)
|
192
|
-
rack (>= 0.4)
|
193
|
-
rack-mount (0.8.3)
|
194
|
-
rack (>= 1.0.0)
|
195
|
-
rack-ssl (1.3.2)
|
196
|
-
rack
|
197
|
-
rack-test (0.6.1)
|
198
|
-
rack (>= 1.0)
|
199
|
-
rails (3.1.1)
|
200
|
-
actionmailer (= 3.1.1)
|
201
|
-
actionpack (= 3.1.1)
|
202
|
-
activerecord (= 3.1.1)
|
203
|
-
activeresource (= 3.1.1)
|
204
|
-
activesupport (= 3.1.1)
|
205
|
-
bundler (~> 1.0)
|
206
|
-
railties (= 3.1.1)
|
207
|
-
rails_autolink (1.0.4)
|
208
|
-
rails (>= 3.1.0)
|
209
|
-
railties (3.1.1)
|
210
|
-
actionpack (= 3.1.1)
|
211
|
-
activesupport (= 3.1.1)
|
212
|
-
rack-ssl (~> 1.3.2)
|
213
|
-
rake (>= 0.8.7)
|
214
|
-
rdoc (~> 3.4)
|
215
|
-
thor (~> 0.14.6)
|
216
|
-
rake (0.9.2.2)
|
217
|
-
rb-fsevent (0.4.3.1)
|
218
|
-
rdoc (3.11)
|
219
|
-
json (~> 1.4)
|
220
|
-
rspec (2.7.0)
|
221
|
-
rspec-core (~> 2.7.0)
|
222
|
-
rspec-expectations (~> 2.7.0)
|
223
|
-
rspec-mocks (~> 2.7.0)
|
224
|
-
rspec-core (2.7.1)
|
225
|
-
rspec-expectations (2.7.0)
|
226
|
-
diff-lcs (~> 1.1.2)
|
227
|
-
rspec-instafail (0.1.9)
|
228
|
-
rspec-mocks (2.7.0)
|
229
|
-
rspec-rails (2.7.0)
|
230
|
-
actionpack (~> 3.0)
|
231
|
-
activesupport (~> 3.0)
|
232
|
-
railties (~> 3.0)
|
233
|
-
rspec (~> 2.7.0)
|
234
|
-
ruby-progressbar (0.0.10)
|
235
|
-
rubyzip (0.9.4)
|
236
|
-
sass (3.1.10)
|
237
|
-
sass-rails (3.1.4)
|
238
|
-
actionpack (~> 3.1.0)
|
239
|
-
railties (~> 3.1.0)
|
240
|
-
sass (>= 3.1.4)
|
241
|
-
sprockets (~> 2.0.0)
|
242
|
-
tilt (~> 1.3.2)
|
243
|
-
selenium-webdriver (2.10.0)
|
244
|
-
childprocess (>= 0.2.1)
|
245
|
-
ffi (= 1.0.9)
|
246
|
-
json_pure
|
247
|
-
rubyzip
|
248
|
-
seo_meta (1.2.0.rc2)
|
249
|
-
rails (>= 3.0.0)
|
250
|
-
spork (0.9.0.rc9)
|
251
|
-
sprockets (2.0.3)
|
252
|
-
hike (~> 1.2)
|
253
|
-
rack (~> 1.0)
|
254
|
-
tilt (~> 1.1, != 1.3.0)
|
255
|
-
sqlite3 (1.3.4)
|
256
|
-
thor (0.14.6)
|
257
|
-
tilt (1.3.3)
|
258
|
-
treetop (1.4.10)
|
259
|
-
polyglot
|
260
|
-
polyglot (>= 0.3.1)
|
261
|
-
truncate_html (0.5.1)
|
262
|
-
tzinfo (0.3.31)
|
263
|
-
uglifier (1.0.4)
|
264
|
-
execjs (>= 0.3.0)
|
265
|
-
multi_json (>= 1.0.2)
|
266
|
-
warden (1.0.6)
|
267
|
-
rack (>= 1.0)
|
268
|
-
will_paginate (3.0.2)
|
269
|
-
xpath (0.1.4)
|
270
|
-
nokogiri (~> 1.3)
|
271
|
-
|
272
|
-
PLATFORMS
|
273
|
-
ruby
|
274
|
-
|
275
|
-
DEPENDENCIES
|
276
|
-
awesome_nested_set!
|
277
|
-
coffee-rails (~> 3.1.0)
|
278
|
-
growl (~> 1.0.3)
|
279
|
-
guard-spork
|
280
|
-
jquery-rails
|
281
|
-
mysql2
|
282
|
-
pg
|
283
|
-
rb-fchange (~> 0.0.5)
|
284
|
-
rb-fsevent (>= 0.3.9)
|
285
|
-
rb-notifu (~> 0.0.4)
|
286
|
-
refinerycms!
|
287
|
-
refinerycms-blog!
|
288
|
-
refinerycms-testing (~> 2.0.0)
|
289
|
-
sass-rails (~> 3.1.0)
|
290
|
-
spork (= 0.9.0.rc9)
|
291
|
-
sqlite3
|
292
|
-
uglifier
|
293
|
-
win32console
|
@@ -1,31 +0,0 @@
|
|
1
|
-
<% flash.each do |key, value| %>
|
2
|
-
<div id='flash' class="flash flash_<%= key %>">
|
3
|
-
<%= value %>
|
4
|
-
</div>
|
5
|
-
<% end %>
|
6
|
-
<article id="blog_post">
|
7
|
-
<header>
|
8
|
-
<h1><%= @blog_post.title %></h1>
|
9
|
-
<section class='details'>
|
10
|
-
<time datetime="<%=l @blog_post.published_at.to_date, :format => :default %>" class='posted_at'>
|
11
|
-
<%= t('created_at', :scope => 'blog.shared.posts', :when => l(@blog_post.published_at.to_date, :format => :short)) %>
|
12
|
-
</time>
|
13
|
-
<%= "#{t('by', :scope => 'blog.posts.show')} #{@blog_post.author.username}" if @blog_post.author.present? %>.
|
14
|
-
<% if (categories = @blog_post.categories).any? %>
|
15
|
-
<aside class='filed_in'>
|
16
|
-
<%= t('filed_in', :scope => 'blog.posts.show') %>
|
17
|
-
<% categories.each_with_index do |category, index| %>
|
18
|
-
<%= link_to category.title, blog_category_url(category) -%><%= ',' if index < ((categories.length) - 1) %>
|
19
|
-
<% end %>
|
20
|
-
</aside>
|
21
|
-
<% end %>
|
22
|
-
</section>
|
23
|
-
</header>
|
24
|
-
<%= @blog_post.body.html_safe %>
|
25
|
-
|
26
|
-
<% if BlogPost::ShareThis.enabled? %>
|
27
|
-
<span class="st_sharethis" displayText="ShareThis"></span>
|
28
|
-
<% end %>
|
29
|
-
</article>
|
30
|
-
<%= render :partial => '/shared/draft_page_message' unless @blog_post.nil? or @blog_post.live? -%>
|
31
|
-
<%= render 'nav' if next_or_previous?(@blog_post) %>
|