phcpress 6.6.1 → 6.6.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (46) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +1 -1
  3. data/app/assets/config/phcpress_manifest.js +1 -1
  4. data/app/assets/javascripts/phcpress/application.js +1 -1
  5. data/app/assets/stylesheets/phcpress/application.scss +1 -1
  6. data/app/controllers/phcpress/api/v1/categories_controller.rb +1 -1
  7. data/app/controllers/phcpress/api/v1/posts_controller.rb +1 -1
  8. data/app/controllers/phcpress/application_controller.rb +1 -1
  9. data/app/controllers/phcpress/frontend/articles_controller.rb +1 -1
  10. data/app/helpers/phcpress/application_helper.rb +8 -8
  11. data/app/jobs/phcpress/application_job.rb +1 -2
  12. data/app/mailers/phcpress/application_mailer.rb +1 -3
  13. data/app/models/phcpress/api/v1/category.rb +1 -2
  14. data/app/models/phcpress/api/v1/post.rb +0 -1
  15. data/app/models/phcpress/application_record.rb +4 -6
  16. data/app/models/phcpress/articles.rb +6 -8
  17. data/app/models/phcpress/articles/post.rb +20 -8
  18. data/app/models/phcpress/frontend.rb +2 -4
  19. data/app/models/phcpress/frontend/article.rb +1 -2
  20. data/app/models/phcpress/modules.rb +6 -8
  21. data/app/models/phcpress/modules/category.rb +11 -6
  22. data/app/models/phcpress/modules/connection.rb +8 -8
  23. data/app/views/layouts/components/backend/footer/_footer.html.erb +2 -2
  24. data/app/views/layouts/components/backend/navigation/_navigation.html.erb +1 -1
  25. data/app/views/layouts/components/backend/topbar/_topbar.html.erb +1 -1
  26. data/app/views/layouts/phcpress/frontend.html.erb +1 -1
  27. data/app/views/phcpress/api/v1/categories/index.json.rabl +1 -1
  28. data/app/views/phcpress/api/v1/posts/index.json.rabl +1 -1
  29. data/app/views/phcpress/articles/posts/_form.html.erb +2 -2
  30. data/app/views/phcpress/articles/posts/edit.html.erb +9 -9
  31. data/app/views/phcpress/articles/posts/index.html.erb +33 -30
  32. data/app/views/phcpress/articles/posts/new.html.erb +9 -9
  33. data/app/views/phcpress/articles/posts/show.html.erb +32 -41
  34. data/app/views/phcpress/modules/categories/_form.html.erb +4 -1
  35. data/app/views/phcpress/modules/categories/edit.html.erb +7 -7
  36. data/app/views/phcpress/modules/categories/index.html.erb +30 -28
  37. data/app/views/phcpress/modules/categories/new.html.erb +7 -7
  38. data/app/views/phcpress/modules/categories/show.html.erb +26 -9
  39. data/app/views/phcpress/modules/connections/_form.html.erb +3 -0
  40. data/app/views/phcpress/modules/connections/edit.html.erb +8 -8
  41. data/app/views/phcpress/modules/connections/index.html.erb +36 -31
  42. data/app/views/phcpress/modules/connections/new.html.erb +9 -9
  43. data/app/views/phcpress/modules/connections/show.html.erb +47 -11
  44. data/lib/phcpress/engine.rb +7 -0
  45. data/lib/phcpress/version.rb +2 -2
  46. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c09c8ebb7b49f4a6dd6fec6dba6af51c7d0e6a44
4
- data.tar.gz: be6048ebe9129047d91c6ad36d3c0cca62e6f573
3
+ metadata.gz: be0ff5d3a1fe7942dae29fdd40c49e3c04207c92
4
+ data.tar.gz: bc21c651e831df1c2c4c5b306a4eaab17aadd65e
5
5
  SHA512:
6
- metadata.gz: db963042b9aa0088b7561287b38f5e4e5b7391a510667c79995b8dca821431ee6a6a207ead2252891f0eab42544cfa5cb349a333883e3a39b5f6fc1e91991134
7
- data.tar.gz: d67e6e67074bd74d033ac0009a4fbdcd1cd3e7e6b6547bb0c860d729bd4838f250d5cb2a5d1bb7ab378587bff26b40dde8d51d72822c8b0a8820ac5f8d514440
6
+ metadata.gz: 9d0c72c407df2a526bb47e7e74f18a386110efbf509af4fa6dbc13ac28f7fe8f3a9912f811e130373e49f6aff7279dcdffff744d16ddaf1f0f8aa69abca363d2
7
+ data.tar.gz: 58f50a8d9c717151cd800565555c6ded63285768b733fa4abdedbe7e9617e08c1246643bbe5da9b18c093a456318db6631f57d3a9cfb94b5e1c0da45d8bdf9d4
data/README.md CHANGED
@@ -43,4 +43,4 @@ PHCPress default Carrierwave settings can be overwritten.
43
43
 
44
44
  - [How to Override PHCPress Uploader](https://github.com/PHCNetworks/phc-press/wiki/Image-Uploader---Override)
45
45
  - [How to Override Cloudinary Uploader](https://github.com/PHCNetworks/phc-press/wiki/Image-Uploader-(Cloudinary))
46
- - [Critical Security Updates](https://github.com/PHCNetworks/phc-press/wiki/Critical-Security-Updates)
46
+ - [Critical Security Updates](https://github.com/PHCNetworks/phc-press/wiki/Critical-Security-Updates)
@@ -1,2 +1,2 @@
1
1
  //= link_directory ../javascripts/phcpress .js
2
- //= link_directory ../stylesheets/phcpress .scss
2
+ //= link_directory ../stylesheets/phcpress .scss
@@ -1,2 +1,2 @@
1
1
  // Load PHCAdmin3 Javascript
2
- //= require phc_admins_main_three
2
+ //= require phc_admins_main_three
@@ -1,2 +1,2 @@
1
1
  // Load PHCAdmin3 Styles
2
- @import "phc_admins_style_three";
2
+ @import "phc_admins_style_three";
@@ -12,4 +12,4 @@ module Phcpress
12
12
  end
13
13
 
14
14
  end
15
- end
15
+ end
@@ -12,4 +12,4 @@ module Phcpress
12
12
  end
13
13
 
14
14
  end
15
- end
15
+ end
@@ -9,4 +9,4 @@ module Phcpress
9
9
  helper Phcnotifi::Engine.helpers
10
10
 
11
11
  end
12
- end
12
+ end
@@ -17,4 +17,4 @@ module Phcpress
17
17
  end
18
18
 
19
19
  end
20
- end
20
+ end
@@ -1,14 +1,14 @@
1
1
  module Phcpress
2
2
  module ApplicationHelper
3
3
 
4
- # Add Active to Menu
5
- def is_active_controller(controller_name)
6
- params[:controller] == controller_name ? "active open selected" : nil
7
- end
4
+ # Add Active to Menu
5
+ def is_active_controller(controller_name)
6
+ params[:controller] == controller_name ? "active open selected" : nil
7
+ end
8
8
 
9
- def is_active_action(action_name)
10
- params[:action] == action_name ? "active" : nil
11
- end
9
+ def is_active_action(action_name)
10
+ params[:action] == action_name ? "active" : nil
11
+ end
12
12
 
13
13
  end
14
- end
14
+ end
@@ -1,5 +1,4 @@
1
1
  module Phcpress
2
2
  class ApplicationJob < ActiveJob::Base
3
-
4
3
  end
5
- end
4
+ end
@@ -1,8 +1,6 @@
1
1
  module Phcpress
2
-
3
2
  class ApplicationMailer < ActionMailer::Base
4
3
  default from: 'info@example.com'
5
4
  layout 'mailer'
6
5
  end
7
-
8
- end
6
+ end
@@ -1,5 +1,4 @@
1
1
  module Phcpress
2
2
  class Api::V1::Category < ApplicationRecord
3
-
4
3
  end
5
- end
4
+ end
@@ -1,5 +1,4 @@
1
1
  module Phcpress
2
2
  class Api::V1::Post < ApplicationRecord
3
-
4
3
  end
5
4
  end
@@ -1,7 +1,5 @@
1
1
  module Phcpress
2
-
3
- class ApplicationRecord < ActiveRecord::Base
4
- self.abstract_class = true
5
- end
6
-
7
- end
2
+ class ApplicationRecord < ActiveRecord::Base
3
+ self.abstract_class = true
4
+ end
5
+ end
@@ -1,9 +1,7 @@
1
1
  module Phcpress
2
- module Articles
3
-
4
- def self.table_name_prefix
5
- 'phcpress_articles_'
6
- end
7
-
8
- end
9
- end
2
+ module Articles
3
+ def self.table_name_prefix
4
+ 'phcpresspro_articles_'
5
+ end
6
+ end
7
+ end
@@ -1,12 +1,24 @@
1
1
  module Phcpress
2
- class Articles::Post < ApplicationRecord
2
+ class Articles::Post < ApplicationRecord
3
+
4
+ # For Image Uploads
5
+ mount_uploader :pstimage, Phcpresspro::PstimageUploader
6
+
7
+ # Relationships
8
+ has_many :connections, class_name: 'Phcpress::Modules::Connection', dependent: :destroy
9
+ has_many :categories, class_name: 'Phcpress::Modules::Category', :through => :connections
10
+
11
+ # Validation for Form Fields
12
+ validates :psttitle,
13
+ presence: true,
14
+ length: { minimum: 3 }
3
15
 
4
- # For Image Uploads
5
- mount_uploader :pstimage, Phcpress::PstimageUploader
6
-
7
- # Relationships
8
- has_many :connections, class_name: 'Phcpress::Modules::Connection', dependent: :destroy
9
- has_many :categories, class_name: 'Phcpress::Modules::Category', :through => :connections
16
+ validates :psttext,
17
+ presence: true,
18
+ length: { minimum: 3 }
10
19
 
11
- end
20
+ validates :pststatus,
21
+ presence: true
22
+
23
+ end
12
24
  end
@@ -1,9 +1,7 @@
1
1
  module Phcpress
2
2
  module Frontend
3
-
4
3
  def self.table_name_prefix
5
- 'phcpress_frontend_'
4
+ 'phcpresspro_frontend_'
6
5
  end
7
-
8
6
  end
9
- end
7
+ end
@@ -1,5 +1,4 @@
1
1
  module Phcpress
2
2
  class Frontend::Article < ApplicationRecord
3
-
4
3
  end
5
- end
4
+ end
@@ -1,9 +1,7 @@
1
1
  module Phcpress
2
- module Modules
3
-
4
- def self.table_name_prefix
5
- 'phcpress_modules_'
6
- end
7
-
8
- end
9
- end
2
+ module Modules
3
+ def self.table_name_prefix
4
+ 'phcpresspro_modules_'
5
+ end
6
+ end
7
+ end
@@ -1,9 +1,14 @@
1
1
  module Phcpress
2
- class Modules::Category < ApplicationRecord
2
+ class Modules::Category < ApplicationRecord
3
3
 
4
- # Relationships
5
- has_many :connections, class_name: 'Phcpress::Modules::Connection', dependent: :destroy
6
- has_many :posts, class_name: 'Phcpress::Modules::Category', :through => :connections
4
+ # Relationships
5
+ has_many :connections, class_name: 'Phcpress::Modules::Connection', dependent: :destroy
6
+ has_many :posts, class_name: 'Phcpress::Modules::Category', :through => :connections
7
7
 
8
- end
9
- end
8
+ # Validation for Form Fields
9
+ validates :catname,
10
+ presence: true,
11
+ length: { minimum: 3 }
12
+
13
+ end
14
+ end
@@ -1,9 +1,9 @@
1
1
  module Phcpress
2
- class Modules::Connection < ApplicationRecord
3
-
4
- # Relationships
5
- belongs_to :post, class_name: 'Phcpress::Articles::Post'
6
- belongs_to :category, class_name: 'Phcpress::Modules::Category'
7
-
8
- end
9
- end
2
+ class Modules::Connection < ApplicationRecord
3
+
4
+ # Relationships
5
+ belongs_to :post, class_name: 'Phcpress::Articles::Post'
6
+ belongs_to :category, class_name: 'Phcpress::Modules::Category'
7
+
8
+ end
9
+ end
@@ -1,4 +1,4 @@
1
1
  <div class="pull-right hidden-xs">
2
- <b>Version</b> 6.2.3 - DEC-08-<%= Date.today.year %>
2
+ <b>Version</b> 6.6.1 - MAR-04-<%= Date.today.year %>
3
3
  </div>
4
- <strong>&copy; 2012-<%= Time.now.year %> <%= link_to "https://phcnetworks.net", target: "_blank", rel: "nofollow" do %>PHCNetworks<% end %></strong>
4
+ <strong>&copy; 2012-<%= Time.now.year %> <%= link_to "https://phcnetworks.net", target: "_blank", rel: "nofollow" do %>PHCNetworks<% end %></strong>
@@ -45,4 +45,4 @@
45
45
  </ul>
46
46
  </li>
47
47
  </ul>
48
- </section>
48
+ </section>
@@ -2,4 +2,4 @@
2
2
  <a href="#" class="sidebar-toggle" data-toggle="offcanvas" role="button">
3
3
  <span class="sr-only">Toggle navigation</span>
4
4
  </a>
5
- <!-- Mobile Toggle -->
5
+ <!-- Mobile Toggle -->
@@ -21,4 +21,4 @@
21
21
 
22
22
  </body>
23
23
 
24
- </html>
24
+ </html>
@@ -1,2 +1,2 @@
1
1
  object @modules_categories
2
- attributes :id, :catname
2
+ attributes :id, :catname
@@ -1,2 +1,2 @@
1
1
  object @articles_posts
2
- attributes :id, :psttitle, :psttext, :pststatus, :pstimage
2
+ attributes :id, :psttitle, :psttext, :pststatus, :pstimage
@@ -62,8 +62,8 @@
62
62
  </div>
63
63
  <div class="panel-body">
64
64
  <div class="form-group">
65
- <%= f.label :psttitle, "Title" %>
66
- <%= f.text_field :psttitle, class: "form-control" %>
65
+ <%= f.label :psttext, "News Post Text" %>
66
+ <%= f.text_area :psttext, :class => "tinymce form-control", :rows => 15, :cols => 60 %>
67
67
  </div>
68
68
  <div class="form-group">
69
69
  <%= f.text_area :psttext, class: "post_edit_box form-control" %>
@@ -1,19 +1,19 @@
1
1
  <!-- Title System -->
2
- <% phc_title "Articles Manager" %>
3
- <% phc_title_tagline "Update Article Information" %>
2
+ <% phc_title "Article Manager" %>
3
+ <% phc_title_tagline "Update Article" %>
4
+ <% phc_breadcrumb_one link_to "Article Index", phcpress.articles_posts_path %>
5
+ <% phc_breadcrumb_two yield(:phc_title_tagline) %>
4
6
  <!-- Title System -->
5
7
 
6
8
  <!-- Page Title Bar -->
7
9
  <section class="content-header">
8
-
9
10
  <!-- Page Title and BreadCrumb -->
10
11
  <h1><%= yield(:phc_title) %> <small><%= yield(:phc_title_tagline) %></small></h1>
11
12
  <ol class="breadcrumb">
12
- <li><%= link_to "Article Index", articles_posts_path %></li>
13
- <li class="active"><%= yield(:phc_title_tagline) %></li>
13
+ <li><%= yield(:phc_breadcrumb_one) %></li>
14
+ <li class="active"><%= yield(:phc_breadcrumb_two) %></li>
14
15
  </ol>
15
16
  <!-- Page Title and BreadCrumb -->
16
-
17
17
  </section>
18
18
  <!-- Page Title Bar -->
19
19
 
@@ -21,17 +21,17 @@
21
21
  <section class="content">
22
22
  <div class="row">
23
23
  <div class="col-lg-12">
24
-
25
24
  <div class="box">
26
25
  <div class="box-header with-border">
27
26
  <h3 class="box-title"><%= yield(:phc_title) %></h3>
28
27
  </div>
29
28
  <div class="box-body">
29
+
30
30
  <%= render 'form', articles_post: @articles_post %>
31
+
31
32
  </div>
32
33
  </div>
33
-
34
34
  </div>
35
35
  </div>
36
36
  </section>
37
- <!-- Main Content -->
37
+ <!-- Main Content -->
@@ -1,18 +1,19 @@
1
1
  <!-- Title System -->
2
- <% phc_title "Articles Manager" %>
2
+ <% phc_title "Article Manager" %>
3
3
  <% phc_title_tagline "Article Index" %>
4
+ <% phc_breadcrumb_one link_to "Article Index", phcpress.articles_posts_path %>
5
+ <% phc_breadcrumb_two yield(:phc_title_tagline) %>
4
6
  <!-- Title System -->
5
7
 
6
8
  <!-- Page Title Bar -->
7
9
  <section class="content-header">
8
-
9
10
  <!-- Page Title and BreadCrumb -->
10
11
  <h1><%= yield(:phc_title) %> <small><%= yield(:phc_title_tagline) %></small></h1>
11
12
  <ol class="breadcrumb">
12
- <li class="active"><%= yield(:phc_title_tagline) %></li>
13
+ <li><%= yield(:phc_breadcrumb_one) %></li>
14
+ <li class="active"><%= yield(:phc_breadcrumb_two) %></li>
13
15
  </ol>
14
16
  <!-- Page Title and BreadCrumb -->
15
-
16
17
  </section>
17
18
  <!-- Page Title Bar -->
18
19
 
@@ -20,41 +21,43 @@
20
21
  <section class="content">
21
22
  <div class="row">
22
23
  <div class="col-lg-12">
23
-
24
24
  <div class="box">
25
25
  <div class="box-header with-border">
26
26
  <h3 class="box-title"><%= yield(:phc_title) %></h3>
27
27
  </div>
28
28
  <div class="box-body">
29
- <table class="table table-bordered table-striped table-hover">
30
- <thead>
31
- <tr>
32
- <th>Title</th>
33
- <th>Text Preview</th>
34
- <th>Article Status</th>
35
- <th></th>
36
- </tr>
37
- </thead>
38
- <tbody>
39
- <% @articles_posts.each do |articles_post| %>
29
+
30
+ <div class="table-responsive">
31
+ <table class="table table-bordered table-striped table-hover">
32
+ <thead>
40
33
  <tr>
41
- <td><%= articles_post.psttitle %></td>
42
- <td><%= truncate(articles_post.psttext, :length => 80) %></td>
43
- <td><%= articles_post.pststatus %></td>
44
- <td><div class="btn-group" role="group" aria-label="Blog Articles">
45
- <%= link_to 'Edit', edit_articles_post_path(articles_post), class: "btn btn-primary btn-xs" %>
46
- <%= link_to 'Delete', articles_post, class: "btn btn-danger btn-xs", method: :delete, data: { confirm: 'Are you sure?' } %>
47
- </div></td>
34
+ <th>Title</th>
35
+ <th>Text Preview</th>
36
+ <th>Article Status</th>
37
+ <th></th>
48
38
  </tr>
49
- <% end %>
50
- </tbody>
51
- </table>
52
- </div>
53
- <div class="box-footer clearfix">
54
- <%= link_to 'New Blog Post', new_articles_post_path, class: "btn btn-primary" %>
39
+ </thead>
40
+ <tbody>
41
+ <% @articles_posts.each do |articles_post| %>
42
+ <tr>
43
+ <td><%= articles_post.psttitle %></td>
44
+ <td><%= truncate(articles_post.psttext, :length => 80) %></td>
45
+ <td><%= articles_post.pststatus %></td>
46
+ <td><div class="btn-group" role="group" aria-label="Blog Articles">
47
+ <%= link_to 'Edit', edit_articles_post_path(articles_post), class: "btn btn-primary btn-xs" %>
48
+ <%= link_to 'Delete', articles_post, class: "btn btn-danger btn-xs", method: :delete, data: { confirm: 'Are you sure?' } %>
49
+ </div></td>
50
+ </tr>
51
+ <% end %>
52
+ </tbody>
53
+ </table>
54
+ </div>
55
+ <div class="box-footer clearfix">
56
+ <%= link_to 'New Blog Post', new_articles_post_path, class: "btn btn-primary" %>
57
+ </div>
58
+
55
59
  </div>
56
60
  </div>
57
-
58
61
  </div>
59
62
  </div>
60
63
  </section>
@@ -1,19 +1,19 @@
1
1
  <!-- Title System -->
2
- <% phc_title "Articles Manager" %>
3
- <% phc_title_tagline "Post a New Article" %>
2
+ <% phc_title "Article Manager" %>
3
+ <% phc_title_tagline "Create a New Article" %>
4
+ <% phc_breadcrumb_one link_to "Article Index", phcpress.articles_posts_path %>
5
+ <% phc_breadcrumb_two yield(:phc_title_tagline) %>
4
6
  <!-- Title System -->
5
7
 
6
8
  <!-- Page Title Bar -->
7
9
  <section class="content-header">
8
-
9
10
  <!-- Page Title and BreadCrumb -->
10
11
  <h1><%= yield(:phc_title) %> <small><%= yield(:phc_title_tagline) %></small></h1>
11
12
  <ol class="breadcrumb">
12
- <li><%= link_to "Article Index", articles_posts_path %></li>
13
- <li class="active"><%= yield(:phc_title_tagline) %></li>
13
+ <li><%= yield(:phc_breadcrumb_one) %></li>
14
+ <li class="active"><%= yield(:phc_breadcrumb_two) %></li>
14
15
  </ol>
15
16
  <!-- Page Title and BreadCrumb -->
16
-
17
17
  </section>
18
18
  <!-- Page Title Bar -->
19
19
 
@@ -21,17 +21,17 @@
21
21
  <section class="content">
22
22
  <div class="row">
23
23
  <div class="col-lg-12">
24
-
25
24
  <div class="box">
26
25
  <div class="box-header with-border">
27
26
  <h3 class="box-title"><%= yield(:phc_title) %></h3>
28
27
  </div>
29
28
  <div class="box-body">
29
+
30
30
  <%= render 'form', articles_post: @articles_post %>
31
+
31
32
  </div>
32
33
  </div>
33
-
34
34
  </div>
35
35
  </div>
36
36
  </section>
37
- <!-- Main Content -->
37
+ <!-- Main Content -->
@@ -1,48 +1,39 @@
1
- <!-- Title Variables -->
2
- <% phc_title "Articles Manager" %>
3
- <% phc_title_tagline "Article Detail" %>
4
-
5
- <!-- Page Header -->
6
- <div class="row">
7
- <div class="col-lg-12">
8
-
9
- <!-- Bread Crumbs -->
10
- <ol class="breadcrumb">
11
- <li><%= link_to "Article Index", articles_posts_path %></li>
12
- <li class="active"><%= yield(:phc_title_tagline) %></li>
13
- </ol>
14
-
15
- <!-- Page Title -->
16
- <h3 class="page-title">
17
- <%= yield(:phc_title) %> </br>
18
- <small><%= yield(:phc_title_tagline) %></small>
19
- </h3>
20
-
21
- </div>
22
- </div>
1
+ <!-- Title System -->
2
+ <% phc_title "Article Manager" %>
3
+ <% phc_title_tagline "Article Details" %>
4
+ <% phc_breadcrumb_one link_to "Article Index", phcpress.articles_posts_path %>
5
+ <% phc_breadcrumb_two yield(:phc_title_tagline) %>
6
+ <!-- Title System -->
7
+
8
+ <!-- Page Title Bar -->
9
+ <section class="content-header">
10
+ <!-- Page Title and BreadCrumb -->
11
+ <h1><%= yield(:phc_title) %> <small><%= yield(:phc_title_tagline) %></small></h1>
12
+ <ol class="breadcrumb">
13
+ <li><%= yield(:phc_breadcrumb_one) %></li>
14
+ <li class="active"><%= yield(:phc_breadcrumb_two) %></li>
15
+ </ol>
16
+ <!-- Page Title and BreadCrumb -->
17
+ </section>
18
+ <!-- Page Title Bar -->
23
19
 
24
20
  <!-- Main Content -->
25
- <div class="row">
26
- <div class="col-lg-12">
27
-
28
- <div class="panel panel-default">
29
-
30
- <div class="panel-heading">
31
- <div class="caption">
32
- <span class="caption-subject bold uppercase"><%= yield(:phc_title_tagline) %></span>
21
+ <section class="content">
22
+ <div class="row">
23
+ <div class="col-lg-12">
24
+ <div class="box">
25
+ <div class="box-header with-border">
26
+ <h3 class="box-title"><%= yield(:phc_title) %></h3>
33
27
  </div>
34
- <div class="actions">
35
- </div>
36
- </div>
28
+ <div class="box-body">
37
29
 
38
- <div class="panel-body">
39
- <p id="notice"><%= notice %></p>
40
- <%= link_to 'Edit', edit_articles_post_path(@articles_post) %> |
41
- <%= link_to 'Back', articles_posts_path %>
30
+ <p id="notice"><%= notice %></p>
31
+ <%= link_to 'Edit', edit_articles_post_path(@articles_post) %> |
32
+ <%= link_to 'Back', articles_posts_path %>
33
+
34
+ </div>
42
35
  </div>
43
-
44
36
  </div>
45
-
46
37
  </div>
47
- </div>
48
- <!-- Main Content -->
38
+ </section>
39
+ <!-- Main Content -->
@@ -3,6 +3,9 @@
3
3
 
4
4
  <%= form_for(@modules_category) do |f| %>
5
5
 
6
+ <!-- PHC-Notifi Render Validation -->
7
+ <%= render 'phcnotifi/validations', :object => @modules_category %>
8
+
6
9
  <div class="form-group">
7
10
  <label><%= f.label :catname, "Category Name" %></label>
8
11
  <%= f.text_field :catname, class: "form-control" %>
@@ -15,4 +18,4 @@
15
18
  <% end %>
16
19
 
17
20
  </div>
18
- </div>
21
+ </div>
@@ -1,19 +1,19 @@
1
1
  <!-- Title System -->
2
- <% phc_title "Categories Manager" %>
3
- <% phc_title_tagline "Update Category Information" %>
2
+ <% phc_title "Plugin: Article Category Manager" %>
3
+ <% phc_title_tagline "Update Category Data" %>
4
+ <% phc_breadcrumb_one link_to "Category Index", phcpress.modules_categories_path %>
5
+ <% phc_breadcrumb_two yield(:phc_title_tagline) %>
4
6
  <!-- Title System -->
5
7
 
6
8
  <!-- Page Title Bar -->
7
9
  <section class="content-header">
8
-
9
10
  <!-- Page Title and BreadCrumb -->
10
11
  <h1><%= yield(:phc_title) %> <small><%= yield(:phc_title_tagline) %></small></h1>
11
12
  <ol class="breadcrumb">
12
- <li><%= link_to "Category Index", modules_categories_path %></li>
13
- <li class="active"><%= yield(:phc_title_tagline) %></li>
13
+ <li><%= yield(:phc_breadcrumb_one) %></li>
14
+ <li class="active"><%= yield(:phc_breadcrumb_two) %></li>
14
15
  </ol>
15
16
  <!-- Page Title and BreadCrumb -->
16
-
17
17
  </section>
18
18
  <!-- Page Title Bar -->
19
19
 
@@ -21,12 +21,12 @@
21
21
  <section class="content">
22
22
  <div class="row">
23
23
  <div class="col-lg-12">
24
-
25
24
  <div class="box">
26
25
  <div class="box-header with-border">
27
26
  <h3 class="box-title"><%= yield(:phc_title) %></h3>
28
27
  </div>
29
28
  <div class="box-body">
29
+
30
30
  <%= render 'form', modules_category: @modules_category %>
31
31
  </div>
32
32
  </div>
@@ -1,18 +1,18 @@
1
1
  <!-- Title System -->
2
- <% phc_title "Categories Manager" %>
3
- <% phc_title_tagline "Categories Index" %>
2
+ <% phc_title "Plugin: Article Category Manager" %>
3
+ <% phc_title_tagline "Category Index" %>
4
+ <% phc_breadcrumb_one yield(:phc_title_tagline) %>
4
5
  <!-- Title System -->
5
6
 
6
7
  <!-- Page Title Bar -->
7
8
  <section class="content-header">
8
-
9
9
  <!-- Page Title and BreadCrumb -->
10
10
  <h1><%= yield(:phc_title) %> <small><%= yield(:phc_title_tagline) %></small></h1>
11
11
  <ol class="breadcrumb">
12
- <li class="active"><%= yield(:phc_title_tagline) %></li>
12
+ <li><%= yield(:phc_breadcrumb_one) %></li>
13
+ <li class="active"><%= yield(:phc_breadcrumb_two) %></li>
13
14
  </ol>
14
15
  <!-- Page Title and BreadCrumb -->
15
-
16
16
  </section>
17
17
  <!-- Page Title Bar -->
18
18
 
@@ -20,39 +20,41 @@
20
20
  <section class="content">
21
21
  <div class="row">
22
22
  <div class="col-lg-12">
23
-
24
23
  <div class="box">
25
24
  <div class="box-header with-border">
26
25
  <h3 class="box-title"><%= yield(:phc_title) %></h3>
27
26
  </div>
28
27
  <div class="box-body">
29
- <table class="table table-bordered table-striped table-hover">
30
- <thead>
31
- <tr>
32
- <th>Category Name</th>
33
- <th></th>
34
- </tr>
35
- </thead>
36
28
 
37
- <tbody>
38
- <% @modules_categories.each do |modules_category| %>
29
+ <div class="table-responsive">
30
+ <table class="table table-bordered table-striped table-hover">
31
+ <thead>
39
32
  <tr>
40
- <td><%= modules_category.catname %></td>
41
- <td><div class="btn-group" role="group" aria-label="Blog Articles">
42
- <%= link_to 'Edit', edit_modules_category_path(modules_category), class: "btn btn-primary btn-xs" %>
43
- <%= link_to 'Trash', modules_category, class: "btn btn-danger btn-xs", method: :delete, data: { confirm: 'Are you sure?' } %>
44
- </div>
45
- </td>
33
+ <th>Category Name</th>
34
+ <th></th>
46
35
  </tr>
47
- <% end %>
48
- </tbody>
49
- </table>
50
- </div>
51
- <div class="box-footer clearfix">
52
- <%= link_to 'New Category', new_modules_category_path, class: "btn btn-primary" %>
36
+ </thead>
37
+
38
+ <tbody>
39
+ <% @modules_categories.each do |modules_category| %>
40
+ <tr>
41
+ <td><%= modules_category.catname %></td>
42
+ <td><div class="btn-group" role="group" aria-label="Blog Articles">
43
+ <%= link_to 'Edit', edit_modules_category_path(modules_category), class: "btn btn-primary btn-xs" %>
44
+ <%= link_to 'Trash', modules_category, class: "btn btn-danger btn-xs", method: :delete, data: { confirm: 'Are you sure?' } %>
45
+ </div>
46
+ </td>
47
+ </tr>
48
+ <% end %>
49
+ </tbody>
50
+ </table>
51
+ </div>
52
+ <div class="box-footer clearfix">
53
+ <%= link_to 'New Category', new_modules_category_path, class: "btn btn-primary" %>
54
+ </div>
55
+
53
56
  </div>
54
57
  </div>
55
-
56
58
  </div>
57
59
  </div>
58
60
  </section>
@@ -1,19 +1,19 @@
1
1
  <!-- Title System -->
2
- <% phc_title "Categories Manager" %>
2
+ <% phc_title "Plugin: Article Category Manager" %>
3
3
  <% phc_title_tagline "Create a New Category" %>
4
+ <% phc_breadcrumb_one link_to "Category Index", phcpress.modules_categories_path %>
5
+ <% phc_breadcrumb_two yield(:phc_title_tagline) %>
4
6
  <!-- Title System -->
5
7
 
6
8
  <!-- Page Title Bar -->
7
9
  <section class="content-header">
8
-
9
10
  <!-- Page Title and BreadCrumb -->
10
11
  <h1><%= yield(:phc_title) %> <small><%= yield(:phc_title_tagline) %></small></h1>
11
12
  <ol class="breadcrumb">
12
- <li><%= link_to "Categories Index", modules_categories_path %></li>
13
- <li class="active"><%= yield(:phc_title_tagline) %></li>
13
+ <li><%= yield(:phc_breadcrumb_one) %></li>
14
+ <li class="active"><%= yield(:phc_breadcrumb_two) %></li>
14
15
  </ol>
15
16
  <!-- Page Title and BreadCrumb -->
16
-
17
17
  </section>
18
18
  <!-- Page Title Bar -->
19
19
 
@@ -21,16 +21,16 @@
21
21
  <section class="content">
22
22
  <div class="row">
23
23
  <div class="col-lg-12">
24
-
25
24
  <div class="box">
26
25
  <div class="box-header with-border">
27
26
  <h3 class="box-title"><%= yield(:phc_title) %></h3>
28
27
  </div>
29
28
  <div class="box-body">
29
+
30
30
  <%= render 'form', modules_category: @modules_category %>
31
+
31
32
  </div>
32
33
  </div>
33
-
34
34
  </div>
35
35
  </div>
36
36
  </section>
@@ -1,23 +1,40 @@
1
1
  <!-- Title System -->
2
- <% phc_title "Categories Manager" %>
3
- <% phc_title_tagline "Update Category Information" %>
2
+ <% phc_title "Plugin: Article Category Manager" %>
3
+ <% phc_title_tagline "Category Details" %>
4
+ <% phc_breadcrumb_one link_to "Category Index", phcpress.modules_categories_path %>
5
+ <% phc_breadcrumb_two yield(:phc_title_tagline) %>
4
6
  <!-- Title System -->
5
7
 
6
8
  <!-- Page Title Bar -->
7
9
  <section class="content-header">
8
-
9
10
  <!-- Page Title and BreadCrumb -->
10
11
  <h1><%= yield(:phc_title) %> <small><%= yield(:phc_title_tagline) %></small></h1>
11
12
  <ol class="breadcrumb">
12
- <li><%= link_to "Category Index", modules_categories_path %></li>
13
- <li class="active"><%= yield(:phc_title_tagline) %></li>
13
+ <li><%= yield(:phc_breadcrumb_one) %></li>
14
+ <li class="active"><%= yield(:phc_breadcrumb_two) %></li>
14
15
  </ol>
15
16
  <!-- Page Title and BreadCrumb -->
16
-
17
17
  </section>
18
18
  <!-- Page Title Bar -->
19
19
 
20
- <p id="notice"><%= notice %></p>
20
+ <!-- Main Content -->
21
+ <section class="content">
22
+ <div class="row">
23
+ <div class="col-lg-12">
24
+ <div class="box">
25
+ <div class="box-header with-border">
26
+ <h3 class="box-title"><%= yield(:phc_title) %></h3>
27
+ </div>
28
+ <div class="box-body">
21
29
 
22
- <%= link_to 'Edit', edit_modules_category_path(@modules_category) %> |
23
- <%= link_to 'Back', modules_categories_path %>
30
+ <p id="notice"><%= notice %></p>
31
+
32
+ <%= link_to 'Edit', edit_modules_category_path(@modules_category) %> |
33
+ <%= link_to 'Back', modules_categories_path %>
34
+
35
+ </div>
36
+ </div>
37
+ </div>
38
+ </div>
39
+ </section>
40
+ <!-- Main Content -->
@@ -2,6 +2,9 @@
2
2
  <div class="col-lg-12">
3
3
 
4
4
  <%= form_for(@modules_connection) do |f| %>
5
+
6
+ <!-- PHC-Notifi Render Validation -->
7
+ <%= render 'phcnotifi/validations', :object => @articles_post %>
5
8
 
6
9
  <div class="form-group">
7
10
  <%= f.label :category_id, "Category ID" %>
@@ -1,19 +1,19 @@
1
1
  <!-- Title System -->
2
- <% phc_title "Conection Manager" %>
3
- <% phc_title_tagline "Update Connection" %>
2
+ <% phc_title "PHCPress Plugin: Connections" %>
3
+ <% phc_title_tagline "Update Category Connections" %>
4
+ <% phc_breadcrumb_one link_to "Connection Index", phcpresspro.modules_connections_path %>
5
+ <% phc_breadcrumb_two yield(:phc_title_tagline) %>
4
6
  <!-- Title System -->
5
7
 
6
8
  <!-- Page Title Bar -->
7
9
  <section class="content-header">
8
-
9
10
  <!-- Page Title and BreadCrumb -->
10
11
  <h1><%= yield(:phc_title) %> <small><%= yield(:phc_title_tagline) %></small></h1>
11
12
  <ol class="breadcrumb">
12
- <li><%= link_to "Category Index", modules_categories_path %></li>
13
- <li class="active"><%= yield(:phc_title_tagline) %></li>
13
+ <li><%= yield(:phc_breadcrumb_one) %></li>
14
+ <li class="active"><%= yield(:phc_breadcrumb_two) %></li>
14
15
  </ol>
15
16
  <!-- Page Title and BreadCrumb -->
16
-
17
17
  </section>
18
18
  <!-- Page Title Bar -->
19
19
 
@@ -21,16 +21,16 @@
21
21
  <section class="content">
22
22
  <div class="row">
23
23
  <div class="col-lg-12">
24
-
25
24
  <div class="box">
26
25
  <div class="box-header with-border">
27
26
  <h3 class="box-title"><%= yield(:phc_title) %></h3>
28
27
  </div>
29
28
  <div class="box-body">
29
+
30
30
  <%= render 'form', modules_connection: @modules_connection %>
31
+
31
32
  </div>
32
33
  </div>
33
-
34
34
  </div>
35
35
  </div>
36
36
  </section>
@@ -1,18 +1,18 @@
1
1
  <!-- Title System -->
2
- <% phc_title "Connections Manager" %>
3
- <% phc_title_tagline "Connection Index" %>
2
+ <% phc_title "PHCPress Plugin: Connections" %>
3
+ <% phc_title_tagline "Connections Index" %>
4
+ <% phc_breadcrumb_one yield(:phc_title_tagline) %>
4
5
  <!-- Title System -->
5
6
 
6
7
  <!-- Page Title Bar -->
7
8
  <section class="content-header">
8
-
9
9
  <!-- Page Title and BreadCrumb -->
10
10
  <h1><%= yield(:phc_title) %> <small><%= yield(:phc_title_tagline) %></small></h1>
11
11
  <ol class="breadcrumb">
12
- <li class="active"><%= yield(:phc_title_tagline) %></li>
12
+ <li><%= yield(:phc_breadcrumb_one) %></li>
13
+ <li class="active"><%= yield(:phc_breadcrumb_two) %></li>
13
14
  </ol>
14
15
  <!-- Page Title and BreadCrumb -->
15
-
16
16
  </section>
17
17
  <!-- Page Title Bar -->
18
18
 
@@ -20,37 +20,42 @@
20
20
  <section class="content">
21
21
  <div class="row">
22
22
  <div class="col-lg-12">
23
-
24
23
  <div class="box">
25
24
  <div class="box-header with-border">
26
25
  <h3 class="box-title"><%= yield(:phc_title) %></h3>
27
26
  </div>
28
27
  <div class="box-body">
29
- <table class="table table-bordered table-striped table-hover">
30
- <thead>
31
- <tr>
32
- <th>Category</th>
33
- <th>Posts</th>
34
- <th colspan="3"></th>
35
- </tr>
36
- </thead>
37
-
38
- <tbody>
39
- <% @modules_connections.each do |modules_connection| %>
40
- <tr>
41
- <td><%= modules_connection.category.catname %></td>
42
- <td><%= modules_connection.post.psttitle %></td>
43
- <td><%= link_to 'Show', modules_connection, class: "btn btn-primary btn-xs" %></td>
44
- <td><%= link_to 'Edit', edit_modules_connection_path(modules_connection), class: "btn btn-primary btn-xs" %></td>
45
- <td><%= link_to 'Destroy', modules_connection, class: "btn btn-primary btn-xs", method: :delete, data: { confirm: 'Are you sure?' } %></td>
46
- </tr>
47
- <% end %>
48
- </tbody>
49
- </table>
50
-
51
- <%= link_to 'New Connection', new_modules_connection_path, class: "btn btn-primary" %>
52
28
 
29
+ <div class="table-responsive">
30
+ <table class="table table-bordered table-striped table-hover">
31
+ <thead>
32
+ <tr>
33
+ <th>Category</th>
34
+ <th>Posts</th>
35
+ <th colspan="3"></th>
36
+ </tr>
37
+ </thead>
38
+
39
+ <tbody>
40
+ <% @modules_connections.each do |modules_connection| %>
41
+ <tr>
42
+ <td><%= modules_connection.category.catname %></td>
43
+ <td><%= modules_connection.post.psttitle %></td>
44
+ <td><%= link_to 'Show', modules_connection, class: "btn btn-primary btn-xs" %></td>
45
+ <td><%= link_to 'Edit', edit_modules_connection_path(modules_connection), class: "btn btn-primary btn-xs" %></td>
46
+ <td><%= link_to 'Destroy', modules_connection, class: "btn btn-primary btn-xs", method: :delete, data: { confirm: 'Are you sure?' } %></td>
47
+ </tr>
48
+ <% end %>
49
+ </tbody>
50
+ </table>
51
+ </div>
52
+ <div class="box-footer clearfix">
53
+ <%= link_to 'New Connection', new_modules_connection_path, class: "btn btn-primary" %>
54
+ </div>
55
+
56
+ </div>
57
+ </div>
53
58
  </div>
54
-
55
59
  </div>
56
- </div>
60
+ </section>
61
+ <!-- Main Content -->
@@ -1,19 +1,19 @@
1
1
  <!-- Title System -->
2
- <% phc_title "Connection Manager" %>
3
- <% phc_title_tagline "Create a New Connection" %>
2
+ <% phc_title "PHCPress Plugin: Connections" %>
3
+ <% phc_title_tagline "Create a New Plugin Connection" %>
4
+ <% phc_breadcrumb_one link_to "Connection Index", phcpresspro.modules_connections_path %>
5
+ <% phc_breadcrumb_two yield(:phc_title_tagline) %>
4
6
  <!-- Title System -->
5
7
 
6
8
  <!-- Page Title Bar -->
7
9
  <section class="content-header">
8
-
9
10
  <!-- Page Title and BreadCrumb -->
10
11
  <h1><%= yield(:phc_title) %> <small><%= yield(:phc_title_tagline) %></small></h1>
11
12
  <ol class="breadcrumb">
12
- <li><%= link_to "Categories Index", modules_categories_path %></li>
13
- <li class="active"><%= yield(:phc_title_tagline) %></li>
13
+ <li><%= yield(:phc_breadcrumb_one) %></li>
14
+ <li class="active"><%= yield(:phc_breadcrumb_two) %></li>
14
15
  </ol>
15
16
  <!-- Page Title and BreadCrumb -->
16
-
17
17
  </section>
18
18
  <!-- Page Title Bar -->
19
19
 
@@ -21,17 +21,17 @@
21
21
  <section class="content">
22
22
  <div class="row">
23
23
  <div class="col-lg-12">
24
-
25
24
  <div class="box">
26
25
  <div class="box-header with-border">
27
26
  <h3 class="box-title"><%= yield(:phc_title) %></h3>
28
27
  </div>
29
28
  <div class="box-body">
29
+
30
30
  <%= render 'form', modules_connection: @modules_connection %>
31
+
31
32
  </div>
32
33
  </div>
33
-
34
34
  </div>
35
35
  </div>
36
36
  </section>
37
- <!-- Main Content -->
37
+ <!-- Main Content -->
@@ -1,14 +1,50 @@
1
- <p id="notice"><%= notice %></p>
1
+ <!-- Title System -->
2
+ <% phc_title "PHCPress Plugin: Connections" %>
3
+ <% phc_title_tagline "Create a New Plugin Connection" %>
4
+ <% phc_breadcrumb_one link_to "Connection Index", phcpresspro.modules_connections_path %>
5
+ <% phc_breadcrumb_two yield(:phc_title_tagline) %>
6
+ <!-- Title System -->
2
7
 
3
- <p>
4
- <strong>Post:</strong>
5
- <%= @modules_connection.post_id %>
6
- </p>
8
+ <!-- Page Title Bar -->
9
+ <section class="content-header">
10
+ <!-- Page Title and BreadCrumb -->
11
+ <h1><%= yield(:phc_title) %> <small><%= yield(:phc_title_tagline) %></small></h1>
12
+ <ol class="breadcrumb">
13
+ <li><%= yield(:phc_breadcrumb_one) %></li>
14
+ <li class="active"><%= yield(:phc_breadcrumb_two) %></li>
15
+ </ol>
16
+ <!-- Page Title and BreadCrumb -->
17
+ </section>
18
+ <!-- Page Title Bar -->
7
19
 
8
- <p>
9
- <strong>Category:</strong>
10
- <%= @modules_connection.category_id %>
11
- </p>
20
+ <!-- Main Content -->
21
+ <section class="content">
22
+ <div class="row">
23
+ <div class="col-lg-12">
24
+ <div class="box">
25
+ <div class="box-header with-border">
26
+ <h3 class="box-title"><%= yield(:phc_title) %></h3>
27
+ </div>
28
+ <div class="box-body">
12
29
 
13
- <%= link_to 'Edit', edit_modules_connection_path(@modules_connection) %> |
14
- <%= link_to 'Back', modules_connections_path %>
30
+ <p id="notice"><%= notice %></p>
31
+
32
+ <p>
33
+ <strong>Post:</strong>
34
+ <%= @modules_connection.post_id %>
35
+ </p>
36
+
37
+ <p>
38
+ <strong>Category:</strong>
39
+ <%= @modules_connection.category_id %>
40
+ </p>
41
+
42
+ <%= link_to 'Edit', edit_modules_connection_path(@modules_connection) %> |
43
+ <%= link_to 'Back', modules_connections_path %>
44
+
45
+ </div>
46
+ </div>
47
+ </div>
48
+ </div>
49
+ </section>
50
+ <!-- Main Content -->
@@ -26,6 +26,13 @@ module Phcpress
26
26
  require 'multi_json'
27
27
  require 'responders'
28
28
 
29
+ # WYSIWYG Editor Dependencies
30
+ require 'tinymce-rails'
31
+
32
+ # Upload & Media Dependencies
33
+ require 'carrierwave'
34
+ require 'cloudinary'
35
+
29
36
  # Isolate Namespace
30
37
  isolate_namespace Phcpress
31
38
 
@@ -1,3 +1,3 @@
1
1
  module Phcpress
2
- VERSION = "6.6.1"
3
- end
2
+ VERSION = "6.6.3"
3
+ end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: phcpress
3
3
  version: !ruby/object:Gem::Version
4
- version: 6.6.1
4
+ version: 6.6.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - BradPotts
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-03-04 00:00:00.000000000 Z
11
+ date: 2017-03-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails