blog_logic 1.1.4 → 1.1.5

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.1.4
1
+ 1.1.5
data/app/models/post.rb CHANGED
@@ -14,6 +14,7 @@ class Post
14
14
 
15
15
  # Mongoid ========================================================================================
16
16
  field :title
17
+ field :title_short # because "title" is often too long for a decent layout
17
18
  field :content
18
19
  field :tags, :type => Array
19
20
  field :slug
@@ -15,11 +15,12 @@
15
15
  <fieldset class="form_container">
16
16
  <%= legend_tag 'Post Details' -%>
17
17
  <div class="form_column">
18
- <%= f.text_field :title, :label => 'Title', :help => 'This title will appear on the post before any content, and is used by search engines to identify the main idea of the post.' -%>
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 -%>
18
+ <%= f.text_field :title, :label => 'Title', :help => 'This title will appear on the post before any content and is used by search engines to identify the main idea of the post.' -%>
19
+ <%= f.text_field :title_short, :label => 'Short Title', :help => 'This is an optional, shortened title used when the layout imposes a length constraint for cosmetic reasons. As with the title above, it will appear on the post before any content and is used by search engines to identify the main idea of the post.' -%>
20
+ <%= f.text_field :desired_slug, :help => "The slug forms part of the URL for this post. For example, entering my-post will create the URL '#{@blog.humanize_path}my-post/'.", :label => 'URL Slug', :value => @post.slug -%>
20
21
  </div>
21
22
  <div class="form_column">
22
- <%= f.date_select :publication_date, :start_year => 2002, :label => 'Date' -%>
23
+ <%= f.date_select :publication_date, :start_year => 2002 -%>
23
24
  <%= 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.' -%>
24
25
  </div>
25
26
  </fieldset>
@@ -4,28 +4,29 @@
4
4
  <%= legend_tag 'About This Post' -%>
5
5
 
6
6
  <div class="form_column">
7
- <%= faux_field 'Title', @post.title %>
8
- <%= faux_field 'URL', @post.full_path %>
7
+ <%= faux_field 'Title', @post.title -%>
8
+ <%= faux_field 'Short Title', @post.title_short -%>
9
+ <%= faux_field 'URL', @post.full_path -%>
9
10
  </div>
10
11
  <div class="form_column">
11
- <%= faux_field 'Status', @post.status %>
12
- <%= faux_field 'Publication Date', @post.publication_date.try(:to_s, :concise) %>
12
+ <%= faux_field 'Publication Date', @post.publication_date.try(:to_s, :concise) -%>
13
+ <%= faux_field 'Status', @post.status -%>
13
14
  </div>
14
15
  </fieldset>
15
16
 
16
17
  <fieldset class="form_container">
17
18
  <%= legend_tag 'Summary' -%>
18
19
  <div class="form_column">
19
- <%= faux_field 'Summary', strip_tags(@post.summary) %>
20
+ <%= faux_field 'Summary', strip_tags(@post.summary) -%>
20
21
  </div>
21
22
  </fieldset>
22
23
 
23
24
  <fieldset class="form_container">
24
- <%= legend_tag 'Content&nbsp;' -%>
25
+ <%= legend_tag 'Content' -%>
25
26
  <%- if @post.state == 'published' -%>
26
- <iframe src="<%= @post.full_path -%>" width="100%" height="400px" style="background-color: #ffffff;"></iframe>
27
+ <iframe src="<%= @post.full_path -%>" width="100%" height="400" style="background-color: #FFF"></iframe>
27
28
  <%- else -%>
28
- <div style="background-color: #ffffff; padding: 1em;">
29
+ <div style="background-color: #FFF; padding: 1em">
29
30
  <%= @post.content.html_safe -%>
30
31
  </div>
31
32
  <%- 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.4"
8
+ s.version = "1.1.5"
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-14"
12
+ s.date = "2011-09-16"
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: 27
4
+ hash: 25
5
5
  prerelease:
6
6
  segments:
7
7
  - 1
8
8
  - 1
9
- - 4
10
- version: 1.1.4
9
+ - 5
10
+ version: 1.1.5
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-14 00:00:00 Z
18
+ date: 2011-09-16 00:00:00 Z
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
21
21
  name: bson_ext