phcpress 9.0.1 → 9.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (64) hide show
  1. checksums.yaml +4 -4
  2. data/MIT-LICENSE +20 -20
  3. data/README.md +46 -46
  4. data/Rakefile +33 -33
  5. data/app/assets/config/phcpress_manifest.js +2 -2
  6. data/app/assets/javascripts/phcpress/application.js +2 -2
  7. data/app/assets/stylesheets/phcpress/application.scss +2 -2
  8. data/app/controllers/phcpress/api/v1/categories_controller.rb +15 -15
  9. data/app/controllers/phcpress/api/v1/posts_controller.rb +15 -15
  10. data/app/controllers/phcpress/application_controller.rb +12 -12
  11. data/app/controllers/phcpress/articles/posts_controller.rb +67 -67
  12. data/app/controllers/phcpress/frontend/articles_controller.rb +20 -20
  13. data/app/controllers/phcpress/modules/categories_controller.rb +65 -65
  14. data/app/controllers/phcpress/modules/connections_controller.rb +65 -65
  15. data/app/helpers/phcpress/application_helper.rb +14 -14
  16. data/app/jobs/phcpress/application_job.rb +4 -4
  17. data/app/mailers/phcpress/application_mailer.rb +6 -6
  18. data/app/models/phcpress/api/v1/category.rb +4 -4
  19. data/app/models/phcpress/api/v1/post.rb +4 -4
  20. data/app/models/phcpress/application_record.rb +5 -5
  21. data/app/models/phcpress/articles.rb +7 -7
  22. data/app/models/phcpress/articles/post.rb +30 -30
  23. data/app/models/phcpress/frontend.rb +7 -7
  24. data/app/models/phcpress/frontend/article.rb +4 -4
  25. data/app/models/phcpress/modules.rb +7 -7
  26. data/app/models/phcpress/modules/category.rb +20 -20
  27. data/app/models/phcpress/modules/connection.rb +15 -15
  28. data/app/uploaders/phcpress/pstimage_uploader.rb +30 -30
  29. data/app/views/layouts/components/backend/footer/_footer.html.erb +4 -4
  30. data/app/views/layouts/components/backend/navigation/_navigation.html.erb +48 -48
  31. data/app/views/layouts/components/backend/topbar/_topbar.html.erb +5 -5
  32. data/app/views/layouts/phcpress/application.html.erb +57 -57
  33. data/app/views/layouts/phcpress/frontend.html.erb +24 -24
  34. data/app/views/phcpress/api/v1/categories/index.json.rabl +2 -2
  35. data/app/views/phcpress/api/v1/posts/index.json.rabl +2 -2
  36. data/app/views/phcpress/articles/posts/_form.html.erb +84 -84
  37. data/app/views/phcpress/articles/posts/edit.html.erb +32 -32
  38. data/app/views/phcpress/articles/posts/index.html.erb +69 -69
  39. data/app/views/phcpress/articles/posts/new.html.erb +32 -32
  40. data/app/views/phcpress/articles/posts/show.html.erb +40 -40
  41. data/app/views/phcpress/frontend/articles/index.html.erb +76 -76
  42. data/app/views/phcpress/frontend/articles/show.html.erb +72 -72
  43. data/app/views/phcpress/modules/categories/_form.html.erb +20 -20
  44. data/app/views/phcpress/modules/categories/edit.html.erb +39 -39
  45. data/app/views/phcpress/modules/categories/index.html.erb +66 -66
  46. data/app/views/phcpress/modules/categories/new.html.erb +39 -39
  47. data/app/views/phcpress/modules/categories/show.html.erb +40 -40
  48. data/app/views/phcpress/modules/connections/_form.html.erb +24 -24
  49. data/app/views/phcpress/modules/connections/edit.html.erb +39 -39
  50. data/app/views/phcpress/modules/connections/index.html.erb +66 -66
  51. data/app/views/phcpress/modules/connections/new.html.erb +39 -39
  52. data/app/views/phcpress/modules/connections/show.html.erb +50 -50
  53. data/config/initializers/friendly_id.rb +92 -92
  54. data/config/routes.rb +27 -27
  55. data/config/tinymce.yml +5 -5
  56. data/db/migrate/20160716182848_create_phcpress_modules_categories.rb +18 -18
  57. data/db/migrate/20160720181307_create_phcpress_articles_posts.rb +21 -21
  58. data/db/migrate/20160720235314_create_phcpress_modules_connections.rb +19 -19
  59. data/db/migrate/20170509180858_create_friendly_id_slugs.rb +15 -15
  60. data/lib/phcpress.rb +4 -4
  61. data/lib/phcpress/engine.rb +68 -68
  62. data/lib/phcpress/version.rb +3 -3
  63. data/lib/tasks/phcpress_tasks.rake +4 -4
  64. metadata +23 -53
@@ -1,40 +1,40 @@
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 -->
19
-
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">
29
-
30
- <!-- Show Content -->
31
- <%= link_to 'Edit', edit_articles_post_path(@articles_post) %> |
32
- <%= link_to 'Back', articles_posts_path %>
33
- <!-- Show Content -->
34
-
35
- </div>
36
- </div>
37
- </div>
38
- </div>
39
- </section>
40
- <!-- Main Content -->
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 -->
19
+
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">
29
+
30
+ <!-- Show Content -->
31
+ <%= link_to 'Edit', edit_articles_post_path(@articles_post) %> |
32
+ <%= link_to 'Back', articles_posts_path %>
33
+ <!-- Show Content -->
34
+
35
+ </div>
36
+ </div>
37
+ </div>
38
+ </div>
39
+ </section>
40
+ <!-- Main Content -->
@@ -1,76 +1,76 @@
1
- <!-- Title System -->
2
- <% phc_title "PHCNetworks Blog" %>
3
- <% phc_title_tagline "News & Information" %>
4
- <!-- Title System -->
5
-
6
- <!-- Page Header -->
7
- <section class="page-header dark page-header-xs">
8
- <div class="container">
9
- <h1><%= yield(:phc_title) %> <small><%= yield(:phc_title_tagline) %></small></h1>
10
- </div>
11
- </section>
12
- <!-- Page Header -->
13
-
14
- <!-- Page Content -->
15
- <section>
16
- <div class="container">
17
- <div class="row">
18
-
19
- <!-- Left Sidebar -->
20
- <div class="col-md-3 col-sm-3">
21
- </div>
22
- <!-- Left Sidebar -->
23
-
24
- <!-- Blog List -->
25
- <div class="col-md-9 col-sm-9">
26
-
27
- <% @articles_index.each do |frontend_article| %>
28
- <div class="blog-post-item">
29
- <% if frontend_article.pstimage? %>
30
- <figure class="margin-bottom-20">
31
- <%= link_to phcpress.frontend_article_path(frontend_article) do %>
32
- <%= image_tag frontend_article.pstimage_url, class: "img-responsive" %>
33
- <% end %>
34
- </figure>
35
- <% end %>
36
- <h2><%= link_to frontend_article.psttitle, phcpress.frontend_article_path(frontend_article) %></h2>
37
- <ul class="blog-post-info list-inline">
38
- <li>
39
- <%= link_to "#" do %>
40
- <i class="fa fa-clock-o"></i>
41
- <span class="font-lato"><%= frontend_article.created_at %></span>
42
- <% end %>
43
- </li>
44
- <li>
45
- <%= link_to "#" do %>
46
- <i class="fa fa-comment-o"></i>
47
- <span class="font-lato">0 Comments</span>
48
- <% end %>
49
- </li>
50
- <li>
51
- <i class="fa fa-folder-open-o"></i>
52
- <%= link_to "#" do %>
53
- <span class="font-lato">Design</span>
54
- <% end %>
55
- <%= link_to "#" do %>
56
- <span class="font-lato">Photography</span>
57
- <% end %>
58
- </li>
59
- <li>
60
- <%= link_to "#" do %>
61
- <i class="fa fa-user"></i>
62
- <span class="font-lato"><%= frontend_article.user_name %></span>
63
- <% end %>
64
- </li>
65
- </ul>
66
- <div><%= truncate(frontend_article.psttext, :length => 420, :escape => false) %></div>
67
- </div>
68
- <% end %>
69
-
70
- </div>
71
- <!-- Blog List -->
72
-
73
- </div>
74
- </div>
75
- <section>
76
- <!-- Page Content -->
1
+ <!-- Title System -->
2
+ <% phc_title "PHCNetworks Blog" %>
3
+ <% phc_title_tagline "News & Information" %>
4
+ <!-- Title System -->
5
+
6
+ <!-- Page Header -->
7
+ <section class="page-header dark page-header-xs">
8
+ <div class="container">
9
+ <h1><%= yield(:phc_title) %> <small><%= yield(:phc_title_tagline) %></small></h1>
10
+ </div>
11
+ </section>
12
+ <!-- Page Header -->
13
+
14
+ <!-- Page Content -->
15
+ <section>
16
+ <div class="container">
17
+ <div class="row">
18
+
19
+ <!-- Left Sidebar -->
20
+ <div class="col-md-3 col-sm-3">
21
+ </div>
22
+ <!-- Left Sidebar -->
23
+
24
+ <!-- Blog List -->
25
+ <div class="col-md-9 col-sm-9">
26
+
27
+ <% @articles_index.each do |frontend_article| %>
28
+ <div class="blog-post-item">
29
+ <% if frontend_article.pstimage? %>
30
+ <figure class="margin-bottom-20">
31
+ <%= link_to phcpress.frontend_article_path(frontend_article) do %>
32
+ <%= image_tag frontend_article.pstimage_url, class: "img-responsive" %>
33
+ <% end %>
34
+ </figure>
35
+ <% end %>
36
+ <h2><%= link_to frontend_article.psttitle, phcpress.frontend_article_path(frontend_article) %></h2>
37
+ <ul class="blog-post-info list-inline">
38
+ <li>
39
+ <%= link_to "#" do %>
40
+ <i class="fa fa-clock-o"></i>
41
+ <span class="font-lato"><%= frontend_article.created_at %></span>
42
+ <% end %>
43
+ </li>
44
+ <li>
45
+ <%= link_to "#" do %>
46
+ <i class="fa fa-comment-o"></i>
47
+ <span class="font-lato">0 Comments</span>
48
+ <% end %>
49
+ </li>
50
+ <li>
51
+ <i class="fa fa-folder-open-o"></i>
52
+ <%= link_to "#" do %>
53
+ <span class="font-lato">Design</span>
54
+ <% end %>
55
+ <%= link_to "#" do %>
56
+ <span class="font-lato">Photography</span>
57
+ <% end %>
58
+ </li>
59
+ <li>
60
+ <%= link_to "#" do %>
61
+ <i class="fa fa-user"></i>
62
+ <span class="font-lato"><%= frontend_article.user_name %></span>
63
+ <% end %>
64
+ </li>
65
+ </ul>
66
+ <div><%= truncate(frontend_article.psttext, :length => 420, :escape => false) %></div>
67
+ </div>
68
+ <% end %>
69
+
70
+ </div>
71
+ <!-- Blog List -->
72
+
73
+ </div>
74
+ </div>
75
+ <section>
76
+ <!-- Page Content -->
@@ -1,72 +1,72 @@
1
- <!-- Title System -->
2
- <% phc_title "Blog" %>
3
- <% phc_title_tagline "PHCNetworks News & Information" %>
4
- <!-- Title System -->
5
-
6
- <!-- Page Header -->
7
- <section class="page-header dark page-header-xs">
8
- <div class="container">
9
- <h1><%= yield(:phc_title) %> <small><%= yield(:phc_title_tagline) %></small></h1>
10
- <ol class="breadcrumb">
11
- <li><a href="#">Home</a></li>
12
- <li><a href="#">Blog</a></li>
13
- <li class="active"><%= yield(:phc_title_tagline) %></li>
14
- </ol>
15
- </div>
16
- </section>
17
- <!-- Page Header -->
18
-
19
- <section>
20
- <div class="container">
21
- <div class="row">
22
-
23
- <!-- Blog List -->
24
- <div class="col-md-9 col-sm-9">
25
- <h1 class="blog-post-title"><%= @articles_single.psttitle %></h1>
26
- <ul class="blog-post-info list-inline">
27
- <li>
28
- <%= link_to "#" do %>
29
- <i class="fa fa-clock-o"></i>
30
- <span class="font-lato"><%= @articles_single.created_at %></span>
31
- <% end %>
32
- </li>
33
- <li>
34
- <%= link_to "#" do %>
35
- <i class="fa fa-comment-o"></i>
36
- <span class="font-lato">0 Comments</span>
37
- <% end %>
38
- </li>
39
- <li>
40
- <i class="fa fa-folder-open-o"></i>
41
- <%= link_to "#" do %>
42
- <span class="font-lato">Design</span>
43
- <% end %>
44
- <%= link_to "#" do %>
45
- <span class="font-lato">Photography</span>
46
- <% end %>
47
- </li>
48
- <li>
49
- <%= link_to "#" do %>
50
- <i class="fa fa-user"></i>
51
- <span class="font-lato"><%= @articles_single.user_name %></span>
52
- <% end %>
53
- </li>
54
- </ul>
55
- <% if @articles_single.pstimage? %>
56
- <figure class="margin-bottom-20">
57
- <%= image_tag @articles_single.pstimage_url, class: "img-responsive" %>
58
- </figure>
59
- <% end %>
60
- <div><%= @articles_single.psttext.html_safe %></div>
61
- </div>
62
- <!-- Blog List -->
63
-
64
- <!-- Right Sidebar -->
65
- <div class="col-md-3 col-sm-3">
66
- </div>
67
- <!-- Right Sidebar -->
68
-
69
- </div>
70
- </div>
71
- <section>
72
- <!-- Page Content -->
1
+ <!-- Title System -->
2
+ <% phc_title "Blog" %>
3
+ <% phc_title_tagline "PHCNetworks News & Information" %>
4
+ <!-- Title System -->
5
+
6
+ <!-- Page Header -->
7
+ <section class="page-header dark page-header-xs">
8
+ <div class="container">
9
+ <h1><%= yield(:phc_title) %> <small><%= yield(:phc_title_tagline) %></small></h1>
10
+ <ol class="breadcrumb">
11
+ <li><a href="#">Home</a></li>
12
+ <li><a href="#">Blog</a></li>
13
+ <li class="active"><%= yield(:phc_title_tagline) %></li>
14
+ </ol>
15
+ </div>
16
+ </section>
17
+ <!-- Page Header -->
18
+
19
+ <section>
20
+ <div class="container">
21
+ <div class="row">
22
+
23
+ <!-- Blog List -->
24
+ <div class="col-md-9 col-sm-9">
25
+ <h1 class="blog-post-title"><%= @articles_single.psttitle %></h1>
26
+ <ul class="blog-post-info list-inline">
27
+ <li>
28
+ <%= link_to "#" do %>
29
+ <i class="fa fa-clock-o"></i>
30
+ <span class="font-lato"><%= @articles_single.created_at %></span>
31
+ <% end %>
32
+ </li>
33
+ <li>
34
+ <%= link_to "#" do %>
35
+ <i class="fa fa-comment-o"></i>
36
+ <span class="font-lato">0 Comments</span>
37
+ <% end %>
38
+ </li>
39
+ <li>
40
+ <i class="fa fa-folder-open-o"></i>
41
+ <%= link_to "#" do %>
42
+ <span class="font-lato">Design</span>
43
+ <% end %>
44
+ <%= link_to "#" do %>
45
+ <span class="font-lato">Photography</span>
46
+ <% end %>
47
+ </li>
48
+ <li>
49
+ <%= link_to "#" do %>
50
+ <i class="fa fa-user"></i>
51
+ <span class="font-lato"><%= @articles_single.user_name %></span>
52
+ <% end %>
53
+ </li>
54
+ </ul>
55
+ <% if @articles_single.pstimage? %>
56
+ <figure class="margin-bottom-20">
57
+ <%= image_tag @articles_single.pstimage_url, class: "img-responsive" %>
58
+ </figure>
59
+ <% end %>
60
+ <div><%= @articles_single.psttext.html_safe %></div>
61
+ </div>
62
+ <!-- Blog List -->
63
+
64
+ <!-- Right Sidebar -->
65
+ <div class="col-md-3 col-sm-3">
66
+ </div>
67
+ <!-- Right Sidebar -->
68
+
69
+ </div>
70
+ </div>
71
+ <section>
72
+ <!-- Page Content -->
@@ -1,20 +1,20 @@
1
- <%= form_for(@modules_category) do |f| %>
2
-
3
- <!-- PHC-Notifi Render Validation -->
4
- <%= render 'phcnotifi/validations', :object => @modules_category %>
5
- <!-- PHC-Notifi Render Validation -->
6
-
7
- <!-- Form Fields -->
8
- <div class="form-group field_with_errors">
9
- <label><%= f.label :catname, "Category Name" %></label>
10
- <%= f.text_field :catname, class: "form-control" %>
11
- </div>
12
- <!-- Form Fields -->
13
-
14
- <!-- Form Button -->
15
- <div class="actions">
16
- <%= f.submit class: "btn btn-primary" %>
17
- </div>
18
- <!-- Form Button -->
19
-
20
- <% end %>
1
+ <%= form_for(@modules_category) do |f| %>
2
+
3
+ <!-- PHC-Notifi Render Validation -->
4
+ <%= render 'phcnotifi/validations', :object => @modules_category %>
5
+ <!-- PHC-Notifi Render Validation -->
6
+
7
+ <!-- Form Fields -->
8
+ <div class="form-group field_with_errors">
9
+ <label><%= f.label :catname, "Category Name" %></label>
10
+ <%= f.text_field :catname, class: "form-control" %>
11
+ </div>
12
+ <!-- Form Fields -->
13
+
14
+ <!-- Form Button -->
15
+ <div class="actions">
16
+ <%= f.submit class: "btn btn-primary" %>
17
+ </div>
18
+ <!-- Form Button -->
19
+
20
+ <% end %>
@@ -1,39 +1,39 @@
1
- <!-- Title System -->
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) %>
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 -->
19
-
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">
29
-
30
- <!-- Page Form (Edit) -->
31
- <%= render 'form', modules_category: @modules_category %>
32
- <!-- Page Form (Edit) -->
33
-
34
- </div>
35
- </div>
36
- </div>
37
- </div>
38
- </section>
39
- <!-- Main Content -->
1
+ <!-- Title System -->
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) %>
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 -->
19
+
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">
29
+
30
+ <!-- Page Form (Edit) -->
31
+ <%= render 'form', modules_category: @modules_category %>
32
+ <!-- Page Form (Edit) -->
33
+
34
+ </div>
35
+ </div>
36
+ </div>
37
+ </div>
38
+ </section>
39
+ <!-- Main Content -->