phcpress 0.4.5b → 0.4.9b

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: 47cd8dd69fa76871fdfe3d32b9666560422e4840
4
- data.tar.gz: cae4c4601bd435a283a8459ed2a6233517cc7da0
3
+ metadata.gz: 940d0f8c2913cd4bb431f8ed377d3f5af793f681
4
+ data.tar.gz: 93ae123fffcc1c7fa99023d93bace1670f99cb5a
5
5
  SHA512:
6
- metadata.gz: 1e7c5f4342a53b7bc8ffc3f0552c68b06d8aa5c4e006760efc54371618b7ceb26c358d2ff95703bac0483fa90fe6177cbc74b752da7fecd863158b7066346621
7
- data.tar.gz: 03d4fb6a4fc7c42ee43fa3b90b30559a4b65004edbd1929a74da3f8bdae68e9070faba002a8fdf46daeb7c4ac8fb39ac27ec6d0d592c06d2f9bcd007b45afb26
6
+ metadata.gz: 3619580607205e6d4f91dace8a9381b00d0e406c94bbb6bf96c02c1aac5fe41ba6eac79d0215ae7d07820c930412d344ca2cf37fd6c896279d27663f28e35329
7
+ data.tar.gz: dfbc72dab05d7350f0ead9a708adeb4b3941636f9ca80b178e882c197a0fcf3f1cfe6908c9e8729a85a92b51ad19652f9be2435f44fc5558e2035d7d63ed2d26
@@ -0,0 +1,2 @@
1
+ // Place all the behaviors and hooks related to the matching controller here.
2
+ // All this logic will automatically be available in application.js.
@@ -0,0 +1,3 @@
1
+ // Place all the styles related to the website/pages controller here.
2
+ // They will automatically be included in application.css.
3
+ // You can use Sass (SCSS) here: http://sass-lang.com/
@@ -0,0 +1,15 @@
1
+ require_dependency "phcpress/application_controller"
2
+
3
+ module Phcpress
4
+ class Website::PagesController < ApplicationController
5
+
6
+ def newspage
7
+ @news_posts = News::Post.all
8
+ end
9
+
10
+ def blogpage
11
+ @blog_posts = Blog::Post.all
12
+ end
13
+
14
+ end
15
+ end
@@ -0,0 +1,4 @@
1
+ module Phcpress
2
+ module Website::PagesHelper
3
+ end
4
+ end
@@ -0,0 +1,42 @@
1
+ <!-- Main Content -->
2
+ <div class="wrapper wrapper-content">
3
+ <div class="panel panel-default">
4
+
5
+ <div class="panel-heading">
6
+ <i class="fa fa-pencil-square-o"></i> Blog Post List
7
+ </div>
8
+
9
+ <div class="panel-body">
10
+
11
+ <table class="table table-bordered table-striped table-hover">
12
+
13
+ <thead>
14
+ <tr>
15
+ <th>BlogPage Title</th>
16
+ <th>BlogPage Text</th>
17
+ <th>BlogPage Status</th>
18
+ <th></th>
19
+ </tr>
20
+ </thead>
21
+
22
+ <tbody>
23
+ <% @blog_posts.each do |blog_post| %>
24
+ <tr>
25
+ <td><%= blog_post.blogpsttitle %></td>
26
+ <td><%= blog_post.blogpsttext %></td>
27
+ <td><%= blog_post.pststatus %></td>
28
+ <td><div class="btn-group" role="group" aria-label="Blog Articles">
29
+ <%= link_to 'Edit', edit_blog_post_path(blog_post), class: "btn btn-primary btn-xs" %>
30
+ <%= link_to 'Trash', blog_post, class: "btn btn-danger btn-xs", method: :delete, data: { confirm: 'Are you sure?' } %>
31
+ </div></td>
32
+ </tr>
33
+ <% end %>
34
+ </tbody>
35
+
36
+ </table>
37
+
38
+ <%= link_to 'New Blog Post', new_blog_post_path, class: "btn btn-primary" %>
39
+ </div>
40
+
41
+ </div>
42
+ </div>
@@ -0,0 +1,38 @@
1
+ <!-- Main Content -->
2
+ <div class="wrapper wrapper-content">
3
+ <div class="panel panel-default">
4
+ <div class="panel-heading">
5
+ <i class="fa fa-newspaper-o"></i> News Post List
6
+ </div>
7
+ <div class="panel-body">
8
+ <table class="table table-bordered table-striped table-hover">
9
+
10
+ <thead>
11
+ <tr>
12
+ <th>PagePost Name</th>
13
+ <th>PagePost Text</th>
14
+ <th>PagePost Status</th>
15
+ <th></th>
16
+ </tr>
17
+ </thead>
18
+
19
+ <tbody>
20
+ <% @news_posts.each do |news_post| %>
21
+ <tr>
22
+ <td><%= news_post.newspsttitle %></td>
23
+ <td><%= news_post.newspsttext %></td>
24
+ <td><%= news_post.pststatus %></td>
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
+ <%= link_to 'Edit', edit_news_post_path(news_post), class: "btn btn-primary btn-xs" %>
28
+ <%= link_to 'Destroy', news_post, class: "btn btn-danger btn-xs", method: :delete, data: { confirm: 'Are you sure?' } %>
29
+ </div></td>
30
+ </tr>
31
+ <% end %>
32
+ </tbody>
33
+
34
+ </table>
35
+ <%= link_to 'New Post', new_news_post_path, class: "btn btn-default" %>
36
+ </div>
37
+ </div>
38
+ </div>
data/config/routes.rb CHANGED
@@ -9,5 +9,9 @@ Phcpress::Engine.routes.draw do
9
9
  namespace :news do
10
10
  resources :posts
11
11
  end
12
+
13
+ # Serve Out Pages
14
+ get 'website/pages/newspage', :path => "news"
15
+ get 'website/pages/blogpage', :path => "blog"
12
16
 
13
17
  end
@@ -1,3 +1,3 @@
1
1
  module Phcpress
2
- VERSION = "0.4.5b"
2
+ VERSION = "0.4.9b"
3
3
  end
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.5b
4
+ version: 0.4.9b
5
5
  platform: ruby
6
6
  authors:
7
7
  - BradPotts
@@ -146,25 +146,14 @@ dependencies:
146
146
  - - "~>"
147
147
  - !ruby/object:Gem::Version
148
148
  version: '1.5'
149
- - !ruby/object:Gem::Dependency
150
- name: laundry
151
- requirement: !ruby/object:Gem::Requirement
152
- requirements:
153
- - - "~>"
154
- - !ruby/object:Gem::Version
155
- version: 0.0.8
156
- type: :development
157
- prerelease: false
158
- version_requirements: !ruby/object:Gem::Requirement
159
- requirements:
160
- - - "~>"
161
- - !ruby/object:Gem::Version
162
- version: 0.0.8
163
149
  - !ruby/object:Gem::Dependency
164
150
  name: factory_girl_rails
165
151
  requirement: !ruby/object:Gem::Requirement
166
152
  requirements:
167
153
  - - "~>"
154
+ - !ruby/object:Gem::Version
155
+ version: '4.4'
156
+ - - ">="
168
157
  - !ruby/object:Gem::Version
169
158
  version: 4.4.1
170
159
  type: :development
@@ -172,6 +161,9 @@ dependencies:
172
161
  version_requirements: !ruby/object:Gem::Requirement
173
162
  requirements:
174
163
  - - "~>"
164
+ - !ruby/object:Gem::Version
165
+ version: '4.4'
166
+ - - ">="
175
167
  - !ruby/object:Gem::Version
176
168
  version: 4.4.1
177
169
  - !ruby/object:Gem::Dependency
@@ -242,19 +234,22 @@ files:
242
234
  - app/assets/javascripts/phcpress/application.js
243
235
  - app/assets/javascripts/phcpress/blog/posts.js
244
236
  - app/assets/javascripts/phcpress/news/posts.js
237
+ - app/assets/javascripts/phcpress/website/pages.js
245
238
  - app/assets/stylesheets/phcpress/application.css.scss
246
239
  - app/assets/stylesheets/phcpress/blog/posts.css
247
240
  - app/assets/stylesheets/phcpress/news/posts.css
241
+ - app/assets/stylesheets/phcpress/website/pages.scss
248
242
  - app/assets/stylesheets/scaffolds.scss
249
243
  - app/controllers/phcpress/application_controller.rb
250
244
  - app/controllers/phcpress/blog/posts_controller.rb
251
245
  - app/controllers/phcpress/news/posts_controller.rb
246
+ - app/controllers/phcpress/website/pages_controller.rb
252
247
  - app/helpers/phcpress/application_helper.rb
253
248
  - app/helpers/phcpress/blog/posts_helper.rb
254
249
  - app/helpers/phcpress/news/posts_helper.rb
250
+ - app/helpers/phcpress/website/pages_helper.rb
255
251
  - app/models/phcpress/blog.rb
256
252
  - app/models/phcpress/blog/post.rb
257
- - app/models/phcpress/mews.rb
258
253
  - app/models/phcpress/news.rb
259
254
  - app/models/phcpress/news/post.rb
260
255
  - app/views/layouts/phcpress/_notifications.html.erb
@@ -267,6 +262,8 @@ files:
267
262
  - app/views/phcpress/news/posts/edit.html.erb
268
263
  - app/views/phcpress/news/posts/index.html.erb
269
264
  - app/views/phcpress/news/posts/new.html.erb
265
+ - app/views/phcpress/website/pages/blogpage.html.erb
266
+ - app/views/phcpress/website/pages/newspage.html.erb
270
267
  - config/routes.rb
271
268
  - db/migrate/20160219213259_create_phcpress_news_posts.rb
272
269
  - db/migrate/20160219213313_create_phcpress_blog_posts.rb
@@ -1,7 +0,0 @@
1
- module Phcpress
2
- module Mews
3
- def self.table_name_prefix
4
- 'phcpress_mews_'
5
- end
6
- end
7
- end