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,66 +1,66 @@
1
- <!-- Title System -->
2
- <% phc_title "Plugin: Article Category Manager" %>
3
- <% phc_title_tagline "Category Index" %>
4
- <% phc_breadcrumb_one yield(:phc_title_tagline) %>
5
- <!-- Title System -->
6
-
7
- <!-- Page Title Bar -->
8
- <section class="content-header">
9
- <!-- Page Title and BreadCrumb -->
10
- <h1><%= yield(:phc_title) %> <small><%= yield(:phc_title_tagline) %></small></h1>
11
- <ol class="breadcrumb">
12
- <li><%= yield(:phc_breadcrumb_one) %></li>
13
- <li class="active"><%= yield(:phc_breadcrumb_two) %></li>
14
- </ol>
15
- <!-- Page Title and BreadCrumb -->
16
- </section>
17
- <!-- Page Title Bar -->
18
-
19
- <!-- Main Content -->
20
- <section class="content">
21
- <div class="row">
22
- <div class="col-lg-12">
23
- <div class="box">
24
- <div class="box-header with-border">
25
- <h3 class="box-title"><%= yield(:phc_title) %></h3>
26
- </div>
27
- <div class="box-body">
28
-
29
- <!-- Index Table -->
30
- <div class="table-responsive">
31
- <table class="table table-bordered table-striped table-hover">
32
- <thead>
33
- <tr>
34
- <th>Category Name</th>
35
- <th></th>
36
- </tr>
37
- </thead>
38
-
39
- <tbody>
40
- <% @modules_categories.each do |modules_category| %>
41
- <tr>
42
- <td><%= modules_category.catname %></td>
43
- <td><div class="btn-group" role="group" aria-label="Blog Articles">
44
- <%= link_to 'Edit', edit_modules_category_path(modules_category), class: "btn btn-primary btn-xs" %>
45
- <%= link_to 'Trash', modules_category, class: "btn btn-danger btn-xs", method: :delete, data: { confirm: 'Are you sure?' } %>
46
- </div>
47
- </td>
48
- </tr>
49
- <% end %>
50
- </tbody>
51
- </table>
52
- </div>
53
- <!-- Index Table -->
54
-
55
- <!-- Panel Footer -->
56
- <div class="box-footer clearfix">
57
- <%= link_to 'New Category', new_modules_category_path, class: "btn btn-primary" %>
58
- </div>
59
- <!-- Panel Footer -->
60
-
61
- </div>
62
- </div>
63
- </div>
64
- </div>
65
- </section>
66
- <!-- Main Content -->
1
+ <!-- Title System -->
2
+ <% phc_title "Plugin: Article Category Manager" %>
3
+ <% phc_title_tagline "Category Index" %>
4
+ <% phc_breadcrumb_one yield(:phc_title_tagline) %>
5
+ <!-- Title System -->
6
+
7
+ <!-- Page Title Bar -->
8
+ <section class="content-header">
9
+ <!-- Page Title and BreadCrumb -->
10
+ <h1><%= yield(:phc_title) %> <small><%= yield(:phc_title_tagline) %></small></h1>
11
+ <ol class="breadcrumb">
12
+ <li><%= yield(:phc_breadcrumb_one) %></li>
13
+ <li class="active"><%= yield(:phc_breadcrumb_two) %></li>
14
+ </ol>
15
+ <!-- Page Title and BreadCrumb -->
16
+ </section>
17
+ <!-- Page Title Bar -->
18
+
19
+ <!-- Main Content -->
20
+ <section class="content">
21
+ <div class="row">
22
+ <div class="col-lg-12">
23
+ <div class="box">
24
+ <div class="box-header with-border">
25
+ <h3 class="box-title"><%= yield(:phc_title) %></h3>
26
+ </div>
27
+ <div class="box-body">
28
+
29
+ <!-- Index Table -->
30
+ <div class="table-responsive">
31
+ <table class="table table-bordered table-striped table-hover">
32
+ <thead>
33
+ <tr>
34
+ <th>Category Name</th>
35
+ <th></th>
36
+ </tr>
37
+ </thead>
38
+
39
+ <tbody>
40
+ <% @modules_categories.each do |modules_category| %>
41
+ <tr>
42
+ <td><%= modules_category.catname %></td>
43
+ <td><div class="btn-group" role="group" aria-label="Blog Articles">
44
+ <%= link_to 'Edit', edit_modules_category_path(modules_category), class: "btn btn-primary btn-xs" %>
45
+ <%= link_to 'Trash', modules_category, class: "btn btn-danger btn-xs", method: :delete, data: { confirm: 'Are you sure?' } %>
46
+ </div>
47
+ </td>
48
+ </tr>
49
+ <% end %>
50
+ </tbody>
51
+ </table>
52
+ </div>
53
+ <!-- Index Table -->
54
+
55
+ <!-- Panel Footer -->
56
+ <div class="box-footer clearfix">
57
+ <%= link_to 'New Category', new_modules_category_path, class: "btn btn-primary" %>
58
+ </div>
59
+ <!-- Panel Footer -->
60
+
61
+ </div>
62
+ </div>
63
+ </div>
64
+ </div>
65
+ </section>
66
+ <!-- Main Content -->
@@ -1,39 +1,39 @@
1
- <!-- Title System -->
2
- <% phc_title "Plugin: Article Category Manager" %>
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) %>
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 (New) -->
31
- <%= render 'form', modules_category: @modules_category %>
32
- <!-- Page Form (New) -->
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 "Create a New Category" %>
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 (New) -->
31
+ <%= render 'form', modules_category: @modules_category %>
32
+ <!-- Page Form (New) -->
33
+
34
+ </div>
35
+ </div>
36
+ </div>
37
+ </div>
38
+ </section>
39
+ <!-- Main Content -->
@@ -1,40 +1,40 @@
1
- <!-- Title System -->
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) %>
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_modules_category_path(@modules_category) %> |
32
- <%= link_to 'Back', modules_categories_path %>
33
- <!-- Show Content -->
34
-
35
- </div>
36
- </div>
37
- </div>
38
- </div>
39
- </section>
40
- <!-- Main Content -->
1
+ <!-- Title System -->
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) %>
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_modules_category_path(@modules_category) %> |
32
+ <%= link_to 'Back', modules_categories_path %>
33
+ <!-- Show Content -->
34
+
35
+ </div>
36
+ </div>
37
+ </div>
38
+ </div>
39
+ </section>
40
+ <!-- Main Content -->
@@ -1,24 +1,24 @@
1
- <%= form_for(@modules_connection) do |f| %>
2
-
3
- <!-- PHC-Notifi Render Validation -->
4
- <%= render 'phcnotifi/validations', :object => @articles_post %>
5
- <!-- PHC-Notifi Render Validation -->
6
-
7
- <!-- Form Fields -->
8
- <div class="form-group field_with_errors">
9
- <%= f.label :category_id, "Category ID" %>
10
- <%= f.text_field :category_id, class: "form-control" %>
11
- </div>
12
- <div class="form-group field_with_errors">
13
- <%= f.label :post_id, "Post ID" %>
14
- <%= f.text_field :post_id, class: "form-control" %>
15
- </div>
16
- <!-- Form Fields -->
17
-
18
- <!-- Form Button -->
19
- <div class="actions">
20
- <%= f.submit class: "btn btn-primary" %>
21
- </div>
22
- <!-- Form Button -->
23
-
24
- <% end %>
1
+ <%= form_for(@modules_connection) do |f| %>
2
+
3
+ <!-- PHC-Notifi Render Validation -->
4
+ <%= render 'phcnotifi/validations', :object => @articles_post %>
5
+ <!-- PHC-Notifi Render Validation -->
6
+
7
+ <!-- Form Fields -->
8
+ <div class="form-group field_with_errors">
9
+ <%= f.label :category_id, "Category ID" %>
10
+ <%= f.text_field :category_id, class: "form-control" %>
11
+ </div>
12
+ <div class="form-group field_with_errors">
13
+ <%= f.label :post_id, "Post ID" %>
14
+ <%= f.text_field :post_id, class: "form-control" %>
15
+ </div>
16
+ <!-- Form Fields -->
17
+
18
+ <!-- Form Button -->
19
+ <div class="actions">
20
+ <%= f.submit class: "btn btn-primary" %>
21
+ </div>
22
+ <!-- Form Button -->
23
+
24
+ <% end %>
@@ -1,39 +1,39 @@
1
- <!-- Title System -->
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) %>
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_connection: @modules_connection %>
32
- <!-- Page Form (Edit) -->
33
-
34
- </div>
35
- </div>
36
- </div>
37
- </div>
38
- </section>
39
- <!-- Main Content -->
1
+ <!-- Title System -->
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) %>
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_connection: @modules_connection %>
32
+ <!-- Page Form (Edit) -->
33
+
34
+ </div>
35
+ </div>
36
+ </div>
37
+ </div>
38
+ </section>
39
+ <!-- Main Content -->
@@ -1,66 +1,66 @@
1
- <!-- Title System -->
2
- <% phc_title "PHCPress Plugin: Connections" %>
3
- <% phc_title_tagline "Connections Index" %>
4
- <% phc_breadcrumb_one yield(:phc_title_tagline) %>
5
- <!-- Title System -->
6
-
7
- <!-- Page Title Bar -->
8
- <section class="content-header">
9
- <!-- Page Title and BreadCrumb -->
10
- <h1><%= yield(:phc_title) %> <small><%= yield(:phc_title_tagline) %></small></h1>
11
- <ol class="breadcrumb">
12
- <li><%= yield(:phc_breadcrumb_one) %></li>
13
- <li class="active"><%= yield(:phc_breadcrumb_two) %></li>
14
- </ol>
15
- <!-- Page Title and BreadCrumb -->
16
- </section>
17
- <!-- Page Title Bar -->
18
-
19
- <!-- Main Content -->
20
- <section class="content">
21
- <div class="row">
22
- <div class="col-lg-12">
23
- <div class="box">
24
- <div class="box-header with-border">
25
- <h3 class="box-title"><%= yield(:phc_title) %></h3>
26
- </div>
27
- <div class="box-body">
28
-
29
- <!-- Index Table -->
30
- <div class="table-responsive">
31
- <table class="table table-bordered table-striped table-hover">
32
- <thead>
33
- <tr>
34
- <th>Category</th>
35
- <th>Posts</th>
36
- <th colspan="3"></th>
37
- </tr>
38
- </thead>
39
-
40
- <tbody>
41
- <% @modules_connections.each do |modules_connection| %>
42
- <tr>
43
- <td><%= modules_connection.category.catname %></td>
44
- <td><%= modules_connection.post.psttitle %></td>
45
- <td><%= link_to 'Show', modules_connection, class: "btn btn-primary btn-xs" %></td>
46
- <td><%= link_to 'Edit', edit_modules_connection_path(modules_connection), class: "btn btn-primary btn-xs" %></td>
47
- <td><%= link_to 'Destroy', modules_connection, class: "btn btn-primary btn-xs", method: :delete, data: { confirm: 'Are you sure?' } %></td>
48
- </tr>
49
- <% end %>
50
- </tbody>
51
- </table>
52
- </div>
53
- <!-- Index Table -->
54
-
55
- <!-- Panel Footer -->
56
- <div class="box-footer clearfix">
57
- <%= link_to 'New Connection', new_modules_connection_path, class: "btn btn-primary" %>
58
- </div>
59
- <!-- Panel Footer -->
60
-
61
- </div>
62
- </div>
63
- </div>
64
- </div>
65
- </section>
66
- <!-- Main Content -->
1
+ <!-- Title System -->
2
+ <% phc_title "PHCPress Plugin: Connections" %>
3
+ <% phc_title_tagline "Connections Index" %>
4
+ <% phc_breadcrumb_one yield(:phc_title_tagline) %>
5
+ <!-- Title System -->
6
+
7
+ <!-- Page Title Bar -->
8
+ <section class="content-header">
9
+ <!-- Page Title and BreadCrumb -->
10
+ <h1><%= yield(:phc_title) %> <small><%= yield(:phc_title_tagline) %></small></h1>
11
+ <ol class="breadcrumb">
12
+ <li><%= yield(:phc_breadcrumb_one) %></li>
13
+ <li class="active"><%= yield(:phc_breadcrumb_two) %></li>
14
+ </ol>
15
+ <!-- Page Title and BreadCrumb -->
16
+ </section>
17
+ <!-- Page Title Bar -->
18
+
19
+ <!-- Main Content -->
20
+ <section class="content">
21
+ <div class="row">
22
+ <div class="col-lg-12">
23
+ <div class="box">
24
+ <div class="box-header with-border">
25
+ <h3 class="box-title"><%= yield(:phc_title) %></h3>
26
+ </div>
27
+ <div class="box-body">
28
+
29
+ <!-- Index Table -->
30
+ <div class="table-responsive">
31
+ <table class="table table-bordered table-striped table-hover">
32
+ <thead>
33
+ <tr>
34
+ <th>Category</th>
35
+ <th>Posts</th>
36
+ <th colspan="3"></th>
37
+ </tr>
38
+ </thead>
39
+
40
+ <tbody>
41
+ <% @modules_connections.each do |modules_connection| %>
42
+ <tr>
43
+ <td><%= modules_connection.category.catname %></td>
44
+ <td><%= modules_connection.post.psttitle %></td>
45
+ <td><%= link_to 'Show', modules_connection, class: "btn btn-primary btn-xs" %></td>
46
+ <td><%= link_to 'Edit', edit_modules_connection_path(modules_connection), class: "btn btn-primary btn-xs" %></td>
47
+ <td><%= link_to 'Destroy', modules_connection, class: "btn btn-primary btn-xs", method: :delete, data: { confirm: 'Are you sure?' } %></td>
48
+ </tr>
49
+ <% end %>
50
+ </tbody>
51
+ </table>
52
+ </div>
53
+ <!-- Index Table -->
54
+
55
+ <!-- Panel Footer -->
56
+ <div class="box-footer clearfix">
57
+ <%= link_to 'New Connection', new_modules_connection_path, class: "btn btn-primary" %>
58
+ </div>
59
+ <!-- Panel Footer -->
60
+
61
+ </div>
62
+ </div>
63
+ </div>
64
+ </div>
65
+ </section>
66
+ <!-- Main Content -->