character 1.0.5 → 1.0.6

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e84e6d3a41c5d6a1280ac7c9e4af4760e7e561e8
4
- data.tar.gz: 12843c85751bccfd42ea815b55e51745090ee67e
3
+ metadata.gz: 7d09fef79b97b6b3dfbefecf2a4586ae776a5b41
4
+ data.tar.gz: 53d6c85e003c39de296635a07d35604a355d5b8c
5
5
  SHA512:
6
- metadata.gz: abdc33829082024e1bc3155fc6fa5fa9df4fb675d5bd43678920831463b76bca0ee1565d32c2490ec1261f0044ee895001caf3ab1a4fcadce4fccb88de0c0082
7
- data.tar.gz: ae52290bd2f70283173e69b972a9e973b437b6e8bc004914acbcbfb599d2fa071575cdb573c3b6ed09f4cbe8b17fd1a323e13c6611067af9c0b9ba3c5034713f
6
+ metadata.gz: 3344841d724a0b63d5076aaba1cb764fc0952a0dc713bffc948ea117ba44e064a9564fcc99293e816a12e5f2d32e11a055a97d131b273039466a61961ac3d4d8
7
+ data.tar.gz: 0ad00f27577dd7510b29a865673be0b2c83d5afcfb50ae9f8217f258cdd13f570bfec57436e6e81343db04b48a9c58aee37990c74eae05ea58c3a665a6969c85
data/README.md CHANGED
@@ -20,6 +20,7 @@ Have you heard of [Django](https://www.djangoproject.com/), [Wordpress](https://
20
20
  * Add expand button to details header;
21
21
  * Reset validation after succesful form submission;
22
22
  * Cache list all list views in DOM and save scrolling state for them, rerender only details;
23
+ * Fix fontawesome for firefox;
23
24
 
24
25
  ## Setup new [Rails 4.1](http://rubyonrails.org) project
25
26
 
@@ -7,7 +7,8 @@ class Character::Page
7
7
 
8
8
  # attributes
9
9
  field :title
10
- field :description
10
+ field :seo_title
11
+ field :seo_description
11
12
  field :path
12
13
  field :template_name, default: 'redactor'
13
14
  field :template_content, type: Hash, default: {}
@@ -11,6 +11,8 @@ class Character::Post
11
11
  field :title, default: ''
12
12
  field :subtitle, default: ''
13
13
  field :body_html, default: ''
14
+ field :seo_title
15
+ field :seo_description
14
16
 
15
17
  field :featured_image, type: Hash, default: { 'url' => '' }
16
18
  field :published_at, type: DateTime, default: -> { DateTime.now }
@@ -37,4 +39,4 @@ class Character::Post
37
39
  def featured_image_url
38
40
  featured_image ? featured_image['url'] : ''
39
41
  end
40
- end
42
+ end
@@ -3,7 +3,8 @@
3
3
  <div class='chr-form-small chr-form-scrolled-up'>
4
4
  <%= simple_nested_form_for @object, url: @form_action_url, method: :post do |f| %>
5
5
  <%= f.input :title %>
6
- <%= f.input :description, as: :text %>
6
+ <%= f.input :seo_title %>
7
+ <%= f.input :seo_description, as: :text %>
7
8
  <%= f.input :path %>
8
9
  <%= f.input :template_name, collection: page_templates, include_blank: false %>
9
10
  <%= f.input :hidden, as: :hidden %>
@@ -19,7 +20,8 @@
19
20
  <div class='chr-form-small'>
20
21
  <%= simple_form_for @object, url: @form_action_url do |f| %>
21
22
  <%= f.input :title %>
22
- <%= f.input :description, as: :text %>
23
+ <%= f.input :seo_title %>
24
+ <%= f.input :seo_description, as: :text %>
23
25
  <%= f.input :path %>
24
26
  <%= f.input :template_name, collection: page_templates, include_blank: false %>
25
27
  <%= f.input :hidden, as: :hidden %>
@@ -14,6 +14,8 @@
14
14
  <% end %>
15
15
 
16
16
  <%= f.input :published_at %>
17
+ <%= f.input :seo_title %>
18
+ <%= f.input :seo_description %>
17
19
 
18
20
  <%= f.input :title, as: :hidden %>
19
21
  <%= f.input :subtitle, as: :hidden %>
@@ -35,4 +37,4 @@
35
37
  <textarea id='redactor' class='character-redactor' placeholder='Type text here...'>
36
38
  <%= @object.body_html.try(:html_safe) %>
37
39
  </textarea>
38
- </article>
40
+ </article>
@@ -1,4 +1,4 @@
1
- <% set_meta_tags title: @object.title, description: @object.description %>
1
+ <% set_meta_tags title: @object.seo_title || @object.title, description: @object.seo_description %>
2
2
 
3
3
  <article class='page'>
4
4
  <%= render partial: @object.template_path %>
@@ -1,9 +1,9 @@
1
- <% set_meta_tags title: @post.title,
2
- description: @post.subtitle,
1
+ <% set_meta_tags title: @post.seo_title || @post.title,
2
+ description: @post.seo_description || @post.subtitle,
3
3
  canonical: "http://#{ @domain }#{ posts_show_path(@post) }",
4
4
  open_graph: { type: 'article',
5
- title: @post.title,
6
- description: @post.subtitle,
5
+ title: @post.seo_title || @post.title,
6
+ description: @post.seo_description || @post.subtitle,
7
7
  url: "http://#{ @domain }#{ posts_show_path(@post) }",
8
8
  image: @post.featured_image_url.empty? ? '' : "http:#{ @post.featured_image_url }" } %>
9
9
 
@@ -11,4 +11,4 @@
11
11
 
12
12
  <nav class='navigation'>
13
13
  <%= link_to 'Blog Home', posts_index_path %>
14
- </nav>
14
+ </nav>
@@ -1,3 +1,3 @@
1
1
  module Character
2
- VERSION = '1.0.5'
2
+ VERSION = '1.0.6'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: character
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.5
4
+ version: 1.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alexander Kravets
@@ -11,7 +11,7 @@ authors:
11
11
  autorequire:
12
12
  bindir: bin
13
13
  cert_chain: []
14
- date: 2014-08-04 00:00:00.000000000 Z
14
+ date: 2014-08-07 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: underscore-rails