phcpress 0.6.0 → 0.7.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/views/phcpress/blog/posts/_form.html.erb +4 -0
- data/app/views/phcpress/blog/posts/index.html.erb +1 -1
- data/app/views/phcpress/news/posts/_form.html.erb +4 -0
- data/app/views/phcpress/news/posts/index.html.erb +1 -2
- data/app/views/phcpress/website/pages/blogpage.html.erb +1 -1
- data/app/views/phcpress/website/pages/newspage.html.erb +1 -1
- data/db/migrate/20160223171835_add_excerpts_to_phcpress_news_posts.rb +5 -0
- data/db/migrate/20160223171843_add_excerpts_to_phcpress_blog_posts.rb +5 -0
- data/lib/phcpress/version.rb +1 -1
- metadata +5 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: df1e6b970408389ff6e8b186aeded8162bec1f64
|
4
|
+
data.tar.gz: 7b77b9c53b7277d8543e77b940e0c1b7a4c9b60a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5f66cfbe3808d45521499da63f29e205f062bc45a0fbbd84b39f29e500a798b0886f793d8bac50dd339e0b95574cd249666ee0b022fce6d3321f0bb30991a28c
|
7
|
+
data.tar.gz: 761bc97fd1ed435892f38464507e196cf61190506a852762597c7f187da9803cd279c0db3d585f0fb8d6988290b3b052f0b308a4bd053ed025e6f1a931f9b944
|
@@ -30,6 +30,10 @@
|
|
30
30
|
<label><%= f.label :blogpsttext, "Text" %></label>
|
31
31
|
<%= f.text_area :blogpsttext, class: "form-control" %>
|
32
32
|
</div>
|
33
|
+
<div class="form-group">
|
34
|
+
<label><%= f.label :blogpstexcerpts, "Excerpts/Text Leads" %></label>
|
35
|
+
<%= f.text_area :blogpstexcerpts, class: "form-control" %>
|
36
|
+
</div>
|
33
37
|
</div>
|
34
38
|
</div>
|
35
39
|
</div>
|
@@ -23,7 +23,7 @@
|
|
23
23
|
<% @blog_posts.each do |blog_post| %>
|
24
24
|
<tr>
|
25
25
|
<td><%= blog_post.blogpsttitle %></td>
|
26
|
-
<td><%= blog_post.blogpsttext %></td>
|
26
|
+
<td><%= truncate(blog_post.blogpsttext, :length => 80) %></td>
|
27
27
|
<td><%= blog_post.pststatus %></td>
|
28
28
|
<td><div class="btn-group" role="group" aria-label="Blog Articles">
|
29
29
|
<%= link_to 'Edit', edit_blog_post_path(blog_post), class: "btn btn-primary btn-xs" %>
|
@@ -30,6 +30,10 @@
|
|
30
30
|
<label><%= f.label :newspsttext, "Post Text" %></label>
|
31
31
|
<%= f.text_area :newspsttext, class: "form-control" %>
|
32
32
|
</div>
|
33
|
+
<div class="form-group">
|
34
|
+
<label><%= f.label :newspstexcerpts, "Excerpts/Text Leads" %></label>
|
35
|
+
<%= f.text_area :newspstexcerpts, class: "form-control" %>
|
36
|
+
</div>
|
33
37
|
</div>
|
34
38
|
</div>
|
35
39
|
</div>
|
@@ -20,10 +20,9 @@
|
|
20
20
|
<% @news_posts.each do |news_post| %>
|
21
21
|
<tr>
|
22
22
|
<td><%= news_post.newspsttitle %></td>
|
23
|
-
<td><%= news_post.newspsttext %></td>
|
23
|
+
<td><%= truncate(news_post.newspsttext, :length => 80) %></td>
|
24
24
|
<td><%= news_post.pststatus %></td>
|
25
25
|
<td><div class="btn-group" role="group" aria-label="News Articles">
|
26
|
-
<%= link_to 'Show', news_post, class: "btn btn-primary btn-xs" %>
|
27
26
|
<%= link_to 'Edit', edit_news_post_path(news_post), class: "btn btn-primary btn-xs" %>
|
28
27
|
<%= link_to 'Destroy', news_post, class: "btn btn-danger btn-xs", method: :delete, data: { confirm: 'Are you sure?' } %>
|
29
28
|
</div></td>
|
data/lib/phcpress/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: phcpress
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.7.9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- BradPotts
|
@@ -222,7 +222,8 @@ dependencies:
|
|
222
222
|
- - "~>"
|
223
223
|
- !ruby/object:Gem::Version
|
224
224
|
version: '2.52'
|
225
|
-
description:
|
225
|
+
description: PHCPress is a simple news and blog posting engine for your ruby on rails
|
226
|
+
powered app or website.
|
226
227
|
email:
|
227
228
|
- brad.potts@phcnetworks.net
|
228
229
|
executables: []
|
@@ -268,6 +269,8 @@ files:
|
|
268
269
|
- config/routes.rb
|
269
270
|
- db/migrate/20160219213259_create_phcpress_news_posts.rb
|
270
271
|
- db/migrate/20160219213313_create_phcpress_blog_posts.rb
|
272
|
+
- db/migrate/20160223171835_add_excerpts_to_phcpress_news_posts.rb
|
273
|
+
- db/migrate/20160223171843_add_excerpts_to_phcpress_blog_posts.rb
|
271
274
|
- lib/generators/phcpress/views_generator.rb
|
272
275
|
- lib/phcpress.rb
|
273
276
|
- lib/phcpress/engine.rb
|