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 +4 -4
- data/README.md +1 -0
- data/app/models/character/page.rb +2 -1
- data/app/models/character/post.rb +3 -1
- data/app/views/character/pages/form.html.erb +4 -2
- data/app/views/character/posts/form.html.erb +3 -1
- data/app/views/pages/show.html.erb +1 -1
- data/app/views/posts/show.html.erb +5 -5
- data/lib/character/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7d09fef79b97b6b3dfbefecf2a4586ae776a5b41
|
4
|
+
data.tar.gz: 53d6c85e003c39de296635a07d35604a355d5b8c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
|
@@ -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 :
|
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 :
|
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,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>
|
data/lib/character/version.rb
CHANGED
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.
|
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-
|
14
|
+
date: 2014-08-07 00:00:00.000000000 Z
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
17
17
|
name: underscore-rails
|