blog_logic 1.1.3 → 1.1.4
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/VERSION +1 -1
- data/app/views/admin/posts/_form.html.erb +14 -16
- data/blog_logic.gemspec +2 -2
- metadata +4 -4
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.1.
|
1
|
+
1.1.4
|
@@ -1,18 +1,16 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
<% if @post.errors.any? %>
|
1
|
+
<%- if @post.errors.any? -%>
|
4
2
|
<div id="error_explanation">
|
5
|
-
<h2>Please correct the following errors
|
6
|
-
|
3
|
+
<h2>Please correct the following errors:</h2>
|
4
|
+
<%- @post.errors.to_a.in_groups(2, false).each do |group| -%>
|
7
5
|
<ul>
|
8
|
-
|
9
|
-
<li><%= msg
|
10
|
-
|
6
|
+
<%- group.each do |msg| -%>
|
7
|
+
<li><%= msg -%></li>
|
8
|
+
<%- end -%>
|
11
9
|
</ul>
|
12
|
-
|
10
|
+
<%- end -%>
|
13
11
|
<br style="clear: both;" />
|
14
12
|
</div>
|
15
|
-
|
13
|
+
<%- end -%>
|
16
14
|
|
17
15
|
<fieldset class="form_container">
|
18
16
|
<%= legend_tag 'Post Details' -%>
|
@@ -21,7 +19,7 @@
|
|
21
19
|
<%= f.text_field :desired_slug, :help => "The permalink forms part of the URL for this post. For example, entering my-post will create the URL '#{@blog.humanize_path}my-post/'.", :label => 'Permalink', :value => @post.slug -%>
|
22
20
|
</div>
|
23
21
|
<div class="form_column">
|
24
|
-
<%= f.date_select :publication_date, :label => 'Date' -%>
|
22
|
+
<%= f.date_select :publication_date, :start_year => 2002, :label => 'Date' -%>
|
25
23
|
<%= f.select :state, Post::STATES.map{|s| s.capitalize}, :selected => @post.status, :label => 'Status', :help => 'A post may either be in a published or draft state. Draft content can be previewed but will not appear on the public-facing blog.' -%>
|
26
24
|
</div>
|
27
25
|
</fieldset>
|
@@ -32,13 +30,13 @@
|
|
32
30
|
<fieldset>
|
33
31
|
<label for="post_summary">Summary (<span id="meta_counter">255</span> characters remaining)</label>
|
34
32
|
<%= f.text_area :summary, :maxlength => 255, :label => false, :fieldset => false -%>
|
35
|
-
<%= countdown_field('post_summary','meta_counter',255)
|
33
|
+
<%= countdown_field('post_summary','meta_counter',255) -%>
|
36
34
|
</fieldset>
|
37
35
|
</div>
|
38
36
|
</fieldset>
|
39
37
|
|
40
38
|
<fieldset class="form_container">
|
41
|
-
<%= legend_tag 'Content
|
39
|
+
<%= legend_tag 'Content' -%>
|
42
40
|
<div class="form_column">
|
43
41
|
<%= f.cktext_area :content, :toolbar => 'Full', :id => 'content_field', :height => '500px' -%>
|
44
42
|
</div>
|
@@ -60,9 +58,9 @@
|
|
60
58
|
<%- end -%><br />
|
61
59
|
<%- end -%>
|
62
60
|
<div class="link_block">
|
63
|
-
<%= f.submit 'Publish', :class => 'link_button' -%>
|
64
|
-
<%= f.submit 'Save as Draft', :class => 'link_button' -%>
|
65
|
-
<%= f.submit 'Preview', :class => 'link_button' -%>
|
61
|
+
<%= f.submit 'Publish', :class => 'link_button', :id =>'publish' -%>
|
62
|
+
<%= f.submit 'Save as Draft', :class => 'link_button', :id =>'save' -%>
|
63
|
+
<%= f.submit 'Preview', :class => 'link_button', :id =>'preview' -%>
|
66
64
|
<%- if @post.new_record? -%>
|
67
65
|
<%= link_to 'Cancel', @post.new_record? ? admin_blog_posts_path(@blog) : admin_blog_post_path(@blog, @post), :class => 'link_button' -%>
|
68
66
|
<%- end -%>
|
data/blog_logic.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = "blog_logic"
|
8
|
-
s.version = "1.1.
|
8
|
+
s.version = "1.1.4"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Bantik"]
|
12
|
-
s.date = "2011-09-
|
12
|
+
s.date = "2011-09-14"
|
13
13
|
s.description = "An engine for search-engine-optimized blog management."
|
14
14
|
s.email = "corey@seologic.com"
|
15
15
|
s.extra_rdoc_files = [
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: blog_logic
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 27
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 1
|
8
8
|
- 1
|
9
|
-
-
|
10
|
-
version: 1.1.
|
9
|
+
- 4
|
10
|
+
version: 1.1.4
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Bantik
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2011-09-
|
18
|
+
date: 2011-09-14 00:00:00 Z
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|
21
21
|
name: bson_ext
|