go_blog 0.1.10 → 0.2.1

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: e514f5b198ca73f8d60469bd078245cf13be328f
4
- data.tar.gz: ea7142b9dac6db99fb6c11ca0ec5aaabbb0abdfb
3
+ metadata.gz: 2cf944e4493c1b9ae8768e2dedc83797a20cff83
4
+ data.tar.gz: 884423812b3cb7207cb9e13d32e6696765283fff
5
5
  SHA512:
6
- metadata.gz: 84b518251cd6f2d8563a493f4f08dfbf11c8e7bf90110911e53f0b41f60108f49c8845931671425fd3533c5cc58aede871e9dd4197d59997a9adca26961856a9
7
- data.tar.gz: e72615be760e44b4d5fa5a9fd77bc80bf4a319d548468dc0dd6ea0a0a71cdc9045607163bc66074f3bea2ac4b4fe1ce0878931cb3e1eef30cf94d070c62d2189
6
+ metadata.gz: 500ee9d2e60c8534714d5eb2f610a7e89659a01e7cc8402e597ceccff777507be4d9199f8670e13d7325733898573b4307a46971c3ddb9a22b61913b0d247a4c
7
+ data.tar.gz: 8475f92d7e1acd64dc715b838ac07de96631a8e99dc6a60d7886ab4d85fd842ac348c527d248a5190627c97e2a27fc7ef9954bda50c5c4a45710ec65db877108
@@ -14,7 +14,13 @@
14
14
  </div>
15
15
  <h4 class="text-uppercase push-10">
16
16
  <%= resource.decorate.link_to_title %></h4>
17
- <p class="push-20"><%= raw(resource.teaser) %></p>
17
+ <p>
18
+ <% if resource.teaser.present? %>
19
+ <%= raw resource.text %>
20
+ <% else %>
21
+ <%= raw Truncato.truncate resource.text, max_length: 150, count_tags: false%>
22
+ <% end %>
23
+ </p>
18
24
  <div class="btn-group btn-group-sm">
19
25
  <!--<a class="btn btn-default" href="javascript:void(0)"><i class="fa fa-share-alt push-5-r"></i> Compartilhar</a>-->
20
26
  <%= resource.decorate.link_to_read_more %>
@@ -11,10 +11,7 @@
11
11
  <div class="bg-white">
12
12
  <section class="content content-boxed">
13
13
  <div class="text-center">
14
- <%= @blog_post.decorate.link_to_author %> - <%= converte_date(@blog_post.published_at) %> <em>visualizado <%=@blog_post.access_count%> x- <div class="wordcount">
15
- <i class="fa fa-clock-o"></i>
16
- <span><%=pluralize(@blog_post.reading_time, 'minuto')%></span>
17
- </div></em>
14
+ <%= @blog_post.decorate.link_to_author %> <% if @blog_post.published_at or (current_user and current_user.admin?) %> - <% end %> <%= converte_timestamp(@blog_post.published_at) %> <% if current_user and current_user.admin? %><em>visualizado <%=@blog_post.access_count%> <% end %></em>
18
15
  </div>
19
16
  <div class="row push-50-t push-50 nice-copy-story">
20
17
  <div class="col-sm-8 col-sm-offset-2">
@@ -2,6 +2,8 @@ en:
2
2
  blog_posts:
3
3
  index:
4
4
  title: 'Posts'
5
+ new:
6
+ title: 'Novo post'
5
7
  blog_post:
6
8
  new:
7
9
  header: 'New post'
@@ -2,6 +2,8 @@ pt-BR:
2
2
  blog_posts:
3
3
  index:
4
4
  title: 'Posts'
5
+ new:
6
+ title: 'Novo post'
5
7
  blog_post:
6
8
  new:
7
9
  header: 'Novo post'
@@ -1,3 +1,3 @@
1
1
  module GoBlog
2
- VERSION = '0.1.10'
2
+ VERSION = '0.2.1'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: go_blog
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.10
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - João Carlos Ottobboni
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-10-17 00:00:00.000000000 Z
11
+ date: 2017-10-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: draper
@@ -38,20 +38,6 @@ dependencies:
38
38
  - - ">="
39
39
  - !ruby/object:Gem::Version
40
40
  version: '0'
41
- - !ruby/object:Gem::Dependency
42
- name: pg
43
- requirement: !ruby/object:Gem::Requirement
44
- requirements:
45
- - - ">="
46
- - !ruby/object:Gem::Version
47
- version: '0'
48
- type: :runtime
49
- prerelease: false
50
- version_requirements: !ruby/object:Gem::Requirement
51
- requirements:
52
- - - ">="
53
- - !ruby/object:Gem::Version
54
- version: '0'
55
41
  description: blog engine
56
42
  email:
57
43
  - jcottobboni@gmail.com