phcscriptcdnpro 5.8.4 → 5.8.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (72) hide show
  1. checksums.yaml +4 -4
  2. data/MIT-LICENSE +1 -1
  3. data/README.md +5 -6
  4. data/Rakefile +11 -14
  5. data/app/controllers/phcscriptcdnpro/application_controller.rb +48 -46
  6. data/app/controllers/phcscriptcdnpro/frontend/listings_controller.rb +4 -2
  7. data/app/controllers/phcscriptcdnpro/script/authors_controller.rb +70 -70
  8. data/app/controllers/phcscriptcdnpro/script/extensions_controller.rb +70 -70
  9. data/app/controllers/phcscriptcdnpro/script/licences_controller.rb +70 -70
  10. data/app/controllers/phcscriptcdnpro/script/listings_controller.rb +70 -70
  11. data/app/controllers/phcscriptcdnpro/script/urls_controller.rb +79 -79
  12. data/app/controllers/phcscriptcdnpro/script/versions_controller.rb +71 -69
  13. data/app/helpers/phcscriptcdnpro/application_helper.rb +9 -10
  14. data/app/jobs/phcscriptcdnpro/application_job.rb +2 -3
  15. data/app/mailers/phcscriptcdnpro/application_mailer.rb +4 -4
  16. data/app/models/phcscriptcdnpro/application_record.rb +3 -3
  17. data/app/models/phcscriptcdnpro/frontend.rb +2 -0
  18. data/app/models/phcscriptcdnpro/frontend/listing.rb +1 -2
  19. data/app/models/phcscriptcdnpro/script.rb +5 -5
  20. data/app/models/phcscriptcdnpro/script/author.rb +5 -5
  21. data/app/models/phcscriptcdnpro/script/extension.rb +6 -6
  22. data/app/models/phcscriptcdnpro/script/licence.rb +5 -5
  23. data/app/models/phcscriptcdnpro/script/listing.rb +13 -11
  24. data/app/models/phcscriptcdnpro/script/url.rb +9 -9
  25. data/app/models/phcscriptcdnpro/script/version.rb +7 -7
  26. data/app/views/layouts/phcscriptcdnpro/application.html.erb +6 -7
  27. data/app/views/layouts/phcscriptcdnpro/components/backend/footer/_footer.html.erb +1 -1
  28. data/app/views/layouts/phcscriptcdnpro/components/backend/navigation/_top_bar.html.erb +0 -1
  29. data/app/views/layouts/phcscriptcdnpro/components/backend/sidebars/_left_sidebar.html.erb +1 -2
  30. data/app/views/layouts/phcscriptcdnpro/frontend.html.erb +14 -16
  31. data/app/views/phcscriptcdnpro/frontend/listings/index.html.erb +30 -30
  32. data/app/views/phcscriptcdnpro/frontend/listings/show.html.erb +12 -12
  33. data/app/views/phcscriptcdnpro/script/authors/_form.html.erb +6 -0
  34. data/app/views/phcscriptcdnpro/script/authors/edit.html.erb +6 -7
  35. data/app/views/phcscriptcdnpro/script/authors/index.html.erb +19 -23
  36. data/app/views/phcscriptcdnpro/script/authors/new.html.erb +6 -7
  37. data/app/views/phcscriptcdnpro/script/authors/show.html.erb +6 -6
  38. data/app/views/phcscriptcdnpro/script/extensions/_form.html.erb +6 -0
  39. data/app/views/phcscriptcdnpro/script/extensions/edit.html.erb +8 -9
  40. data/app/views/phcscriptcdnpro/script/extensions/index.html.erb +6 -8
  41. data/app/views/phcscriptcdnpro/script/extensions/new.html.erb +8 -9
  42. data/app/views/phcscriptcdnpro/script/extensions/show.html.erb +7 -9
  43. data/app/views/phcscriptcdnpro/script/licences/_form.html.erb +7 -0
  44. data/app/views/phcscriptcdnpro/script/licences/edit.html.erb +6 -7
  45. data/app/views/phcscriptcdnpro/script/licences/index.html.erb +10 -12
  46. data/app/views/phcscriptcdnpro/script/licences/new.html.erb +6 -7
  47. data/app/views/phcscriptcdnpro/script/licences/show.html.erb +5 -7
  48. data/app/views/phcscriptcdnpro/script/listings/_form.html.erb +7 -1
  49. data/app/views/phcscriptcdnpro/script/listings/edit.html.erb +15 -0
  50. data/app/views/phcscriptcdnpro/script/listings/index.html.erb +14 -4
  51. data/app/views/phcscriptcdnpro/script/listings/new.html.erb +15 -0
  52. data/app/views/phcscriptcdnpro/script/listings/show.html.erb +14 -0
  53. data/app/views/phcscriptcdnpro/script/urls/_form.html.erb +6 -0
  54. data/app/views/phcscriptcdnpro/script/urls/edit.html.erb +17 -6
  55. data/app/views/phcscriptcdnpro/script/urls/index.html.erb +14 -7
  56. data/app/views/phcscriptcdnpro/script/urls/new.html.erb +17 -7
  57. data/app/views/phcscriptcdnpro/script/urls/show.html.erb +14 -10
  58. data/app/views/phcscriptcdnpro/script/versions/_form.html.erb +7 -0
  59. data/app/views/phcscriptcdnpro/script/versions/edit.html.erb +12 -8
  60. data/app/views/phcscriptcdnpro/script/versions/index.html.erb +11 -5
  61. data/app/views/phcscriptcdnpro/script/versions/new.html.erb +12 -8
  62. data/app/views/phcscriptcdnpro/script/versions/show.html.erb +11 -6
  63. data/config/routes.rb +21 -26
  64. data/db/migrate/20160821183652_create_phcscriptcdnpro_script_listings.rb +23 -23
  65. data/db/migrate/20160821183714_create_phcscriptcdnpro_script_authors.rb +17 -17
  66. data/db/migrate/20160821183735_create_phcscriptcdnpro_script_extensions.rb +12 -12
  67. data/db/migrate/20160821183805_create_phcscriptcdnpro_script_licences.rb +18 -18
  68. data/db/migrate/20160821183830_create_phcscriptcdnpro_script_urls.rb +16 -16
  69. data/db/migrate/20160821183946_create_phcscriptcdnpro_script_versions.rb +10 -10
  70. data/lib/phcscriptcdnpro/engine.rb +62 -61
  71. data/lib/phcscriptcdnpro/version.rb +1 -1
  72. metadata +2 -2
@@ -1,41 +1,40 @@
1
1
  <!DOCTYPE html>
2
2
  <html>
3
-
4
3
  <head>
5
-
4
+
6
5
  <!-- Meta Info (Page Specific) -->
7
6
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
8
7
  <title><%= content_for?(:title) ? yield(:title) : "PHCNetworks - Developer Script CDN" %></title>
9
-
8
+
10
9
  <!-- Meta Info (All) -->
11
10
  <%= render 'layouts/components/frontend/seo/all_metainfo' %>
12
-
11
+
13
12
  <!-- Font -->
14
13
  <link rel="stylesheet" type="text/css" href="https://fonts.googleapis.com/css?family=Open+Sans:300,400%7CRaleway:300,400,500,600,700%7CLato:300,400,400italic,600,700"/>
15
-
14
+
16
15
  <!-- Requried StyleSheets -->
17
16
  <%= stylesheet_link_tag "application", media: "all", 'data-turbolinks-track': 'reload' %>
18
-
17
+
19
18
  <!-- Requried JavaScripts -->
20
19
  <%= javascript_include_tag "application", 'data-turbolinks-track': 'reload' %>
21
-
20
+
22
21
  <!-- Security -->
23
22
  <%= csrf_meta_tags %>
24
-
23
+
25
24
  </head>
26
25
 
27
26
  <body class="enable-animation">
28
-
27
+
29
28
  <div id="slidetop">
30
29
  <%= render 'layouts/components/frontend/header/slideout' %>
31
30
  </div>
32
-
31
+
33
32
  <div id="wrapper">
34
-
33
+
35
34
  <div id="topBar">
36
35
  <%= render 'layouts/components/frontend/header/topbar' %>
37
36
  </div>
38
-
37
+
39
38
  <div id="header" class="sticky clearfix">
40
39
  <%= render 'layouts/components/frontend/navigation/navigation' %>
41
40
  </div>
@@ -57,7 +56,7 @@
57
56
  </div>
58
57
  <div class="col-md-3">
59
58
  <%= render 'layouts/components/frontend/footer/footer_socialconnect' %>
60
- </div>
59
+ </div>
61
60
  </div>
62
61
  </div>
63
62
 
@@ -66,9 +65,8 @@
66
65
  </div>
67
66
 
68
67
  </footer>
69
-
68
+
70
69
  </div>
71
-
70
+
72
71
  </body>
73
-
74
72
  </html>
@@ -14,37 +14,37 @@
14
14
  <div class="container">
15
15
  <div class="row">
16
16
 
17
- <!-- Left Sidebar -->
18
- <div class="col-md-3 col-sm-3">
19
- </div>
20
- <!-- Left Sidebar -->
21
-
22
- <!-- Script CDN List -->
23
- <div class="col-md-9 col-sm-9">
24
-
25
- <% @script_listings_index.each do |script_listings_index| %>
26
- <div class="blog-post-item">
27
- <h2><%= link_to script_listings_index.scripttitle, phcscriptcdnpro.frontend_listing_path(script_listings_index) %></h2>
28
- <ul class="blog-post-info list-inline">
29
- <li>
30
- <%= link_to "#" do %>
31
- <i class="fa fa-clock-o"></i>
32
- <span class="font-lato"><%= script_listings_index.created_at %></span>
33
- <% end %>
34
- </li>
35
- <li>
36
- <%= link_to "#" do %>
37
- <i class="fa fa-user"></i>
38
- <span class="font-lato">Posted By - <%= script_listings_index.user_name %></span>
39
- <% end %>
40
- </li>
41
- </ul>
42
- <div></div>
43
- </div>
44
- <% end %>
17
+ <!-- Left Sidebar -->
18
+ <div class="col-md-3 col-sm-3">
19
+ </div>
20
+ <!-- Left Sidebar -->
45
21
 
46
- </div>
47
- <!-- Script CDN List -->
22
+ <!-- Script CDN List -->
23
+ <div class="col-md-9 col-sm-9">
24
+
25
+ <% @script_listings_index.each do |script_listings_index| %>
26
+ <div class="blog-post-item">
27
+ <h2><%= link_to script_listings_index.scripttitle, phcscriptcdnpro.frontend_listing_path(script_listings_index) %></h2>
28
+ <ul class="blog-post-info list-inline">
29
+ <li>
30
+ <%= link_to "#" do %>
31
+ <i class="fa fa-clock-o"></i>
32
+ <span class="font-lato"><%= script_listings_index.created_at %></span>
33
+ <% end %>
34
+ </li>
35
+ <li>
36
+ <%= link_to "#" do %>
37
+ <i class="fa fa-user"></i>
38
+ <span class="font-lato">Posted By - <%= script_listings_index.user_name %></span>
39
+ <% end %>
40
+ </li>
41
+ </ul>
42
+ <div></div>
43
+ </div>
44
+ <% end %>
45
+
46
+ </div>
47
+ <!-- Script CDN List -->
48
48
 
49
49
  </div>
50
50
  </div>
@@ -41,21 +41,21 @@
41
41
  </ul>
42
42
  <div>
43
43
  <%= @script_listings_single.scriptdescription.html_safe %>
44
- <small>Source: <i><%= @script_listings_single.descriptionsource %></i></small>
44
+ <p><small>Source: <i><%= @script_listings_single.descriptionsource %></i></small></p>
45
45
  </div>
46
+ <br/>
47
+ <br/>
48
+ <br/>
46
49
  <div>
47
- <ul class="list-group">
48
- <!-- Script Urls -->
49
- <% @script_listings_single.urls.each do |script_listing_urls| %>
50
- <li class="list-group-item">
51
- <input id="cdn_copy_trgt" type="text" class="form-control" value="<%= script_listing_urls.scripturl %>">
52
- </li>
53
- <% end %>
54
- <!-- Script Urls -->
55
- </ul>
50
+ <!-- Script Urls -->
51
+ <% @script_listings_single.urls.each do |script_listing_urls| %>
52
+ <li class="list-group-item">
53
+ <input id="cdn_copy_trgt" type="text" class="form-control" value="<%= script_listing_urls.scripturl %>">
54
+ </li>
55
+ <% end %>
56
+ <!-- Script Urls -->
56
57
  </div>
57
-
58
- </div>
58
+ </div>
59
59
  <!-- Script Listing -->
60
60
 
61
61
  <!-- Right Sidebar -->
@@ -1,7 +1,10 @@
1
1
  <%= form_for(script_author) do |f| %>
2
2
 
3
+ <!-- For Validation by PHCNotifi -->
3
4
  <%= render 'phcnotifi/validations', :object => @script_author %>
5
+ <!-- For Validation by PHCNotifi -->
4
6
 
7
+ <!-- Form Fields -->
5
8
  <div class="form-group field_with_error">
6
9
  <%= f.label :authorfirstname, "Author First Name" %>
7
10
  <%= f.text_field :authorfirstname, placeholder: "Author First Name", class: "form-control" %>
@@ -22,9 +25,12 @@
22
25
  <%= f.label :authortwitter, "Author Twitter Addresss" %>
23
26
  <%= f.text_field :authortwitter, placeholder: "Author Twitter Addresss", class: "form-control" %>
24
27
  </div>
28
+ <!-- Form Fields -->
25
29
 
30
+ <!-- Form Button -->
26
31
  <div class="actions">
27
32
  <%= f.submit class: "btn btn-primary" %>
28
33
  </div>
34
+ <!-- Form Button -->
29
35
 
30
36
  <% end %>
@@ -11,23 +11,23 @@
11
11
  <h2><%= yield(:phc_title) %></h2>
12
12
  <!-- Page Title -->
13
13
 
14
- <!-- Bread Crumbs -->
14
+ <!-- Bread Crumb -->
15
15
  <ol class="breadcrumb">
16
16
  <li><%= link_to "Author Index", phcscriptcdnpro.script_authors_path %></li>
17
17
  <li class="active"><%= yield(:phc_title_tagline) %></li>
18
18
  </ol>
19
- <!-- Bread Crumbs -->
19
+ <!-- Bread Crumb -->
20
20
 
21
21
  </div>
22
22
  <div class="col-sm-8">
23
-
24
- <!-- Back to Author Index Button -->
23
+
24
+ <!-- Back to Licence Index Button -->
25
25
  <div class="title-action">
26
26
  <%= link_to phcscriptcdnpro.script_authors_path, class: "btn btn-primary" do %>
27
27
  <i class="fa fa-plus"></i> Back to Author Index
28
28
  <% end %>
29
29
  </div>
30
- <!-- Back to Author Index Button -->
30
+ <!-- Back to Licence Index Button -->
31
31
 
32
32
  </div>
33
33
  </div>
@@ -38,7 +38,6 @@
38
38
  <div class="row">
39
39
  <div class="col-lg-12">
40
40
 
41
- <!-- Content Box -->
42
41
  <div class="ibox float-e-margins">
43
42
  <div class="ibox-title">
44
43
  <h5><%= yield(:phc_title_tagline) %></h5>
@@ -58,9 +57,9 @@
58
57
 
59
58
  </div>
60
59
  </div>
61
- <!-- Content Box -->
62
60
 
63
61
  </div>
64
62
  </div>
65
63
  </div>
66
64
  <!-- Page Content -->
65
+
@@ -11,23 +11,22 @@
11
11
  <h2><%= yield(:phc_title) %></h2>
12
12
  <!-- Page Title -->
13
13
 
14
- <!-- Bread Crumbs -->
14
+ <!-- Bread Crumb -->
15
15
  <ol class="breadcrumb">
16
- <li><%= link_to "Author Index", phcscriptcdnpro.script_authors_path %></li>
17
16
  <li class="active"><%= yield(:phc_title_tagline) %></li>
18
17
  </ol>
19
- <!-- Bread Crumbs -->
18
+ <!-- Bread Crumb -->
20
19
 
21
20
  </div>
22
21
  <div class="col-sm-8">
23
-
24
- <!-- Back to Author Index Button -->
22
+
23
+ <!-- New Licence Button -->
25
24
  <div class="title-action">
26
25
  <%= link_to phcscriptcdnpro.new_script_author_path, class: "btn btn-primary" do %>
27
26
  <i class="fa fa-plus"></i> Add a New Author
28
27
  <% end %>
29
28
  </div>
30
- <!-- Back to Author Index Button -->
29
+ <!-- New Licence Button -->
31
30
 
32
31
  </div>
33
32
  </div>
@@ -38,7 +37,6 @@
38
37
  <div class="row">
39
38
  <div class="col-lg-12">
40
39
 
41
- <!-- Content Box -->
42
40
  <div class="ibox float-e-margins">
43
41
  <div class="ibox-title">
44
42
  <h5><%= yield(:phc_title_tagline) %></h5>
@@ -52,9 +50,8 @@
52
50
  </div>
53
51
  </div>
54
52
  <div class="ibox-content">
55
- <div class="table-responsive">
56
53
 
57
- <!-- Index Tables -->
54
+ <div class="table-responsive">
58
55
  <table class="table table-striped table-bordered table-hover dataTables-example">
59
56
  <thead>
60
57
  <tr>
@@ -64,27 +61,26 @@
64
61
  <th>Github</th>
65
62
  <th>Twitter</th>
66
63
  </tr>
67
- </thead>
68
- <tbody>
69
- <% @script_authors.each do |script_author| %>
70
- <tr>
71
- <td><%= link_to script_author.authorfirstname, script_author %></td>
72
- <td><%= link_to script_author.authorlastname, script_author %></td>
73
- <td><%= link_to script_author.authorwebsite, script_author %></td>
74
- <td><%= link_to script_author.authorgithub, script_author %></td>
75
- <td><%= link_to script_author.authortwitter, script_author %></td>
76
- </tr>
77
- <% end %>
64
+ </thead>
65
+ <tbody>
66
+ <% @script_authors.each do |script_author| %>
67
+ <tr>
68
+ <td><%= link_to script_author.authorfirstname, script_author %></td>
69
+ <td><%= link_to script_author.authorlastname, script_author %></td>
70
+ <td><%= link_to script_author.authorwebsite, script_author %></td>
71
+ <td><%= link_to script_author.authorgithub, script_author %></td>
72
+ <td><%= link_to script_author.authortwitter, script_author %></td>
73
+ </tr>
74
+ <% end %>
78
75
  </tbody>
79
76
  </table>
80
- <!-- Index Tables -->
81
-
82
77
  </div>
78
+
83
79
  </div>
84
80
  </div>
85
- <!-- Content Box -->
86
81
 
87
82
  </div>
88
83
  </div>
89
84
  </div>
90
85
  <!-- Page Content -->
86
+
@@ -11,23 +11,23 @@
11
11
  <h2><%= yield(:phc_title) %></h2>
12
12
  <!-- Page Title -->
13
13
 
14
- <!-- Bread Crumbs -->
14
+ <!-- Bread Crumb -->
15
15
  <ol class="breadcrumb">
16
16
  <li><%= link_to "Author Index", phcscriptcdnpro.script_authors_path %></li>
17
17
  <li class="active"><%= yield(:phc_title_tagline) %></li>
18
18
  </ol>
19
- <!-- Bread Crumbs -->
19
+ <!-- Bread Crumb -->
20
20
 
21
21
  </div>
22
22
  <div class="col-sm-8">
23
-
24
- <!-- Back to Author Index Button -->
23
+
24
+ <!-- Back to Licence Index Button -->
25
25
  <div class="title-action">
26
26
  <%= link_to phcscriptcdnpro.script_authors_path, class: "btn btn-primary" do %>
27
27
  <i class="fa fa-plus"></i> Back to Author Index
28
28
  <% end %>
29
29
  </div>
30
- <!-- Back to Author Index Button -->
30
+ <!-- Back to Licence Index Button -->
31
31
 
32
32
  </div>
33
33
  </div>
@@ -38,7 +38,6 @@
38
38
  <div class="row">
39
39
  <div class="col-lg-12">
40
40
 
41
- <!-- Content Box -->
42
41
  <div class="ibox float-e-margins">
43
42
  <div class="ibox-title">
44
43
  <h5><%= yield(:phc_title_tagline) %></h5>
@@ -58,9 +57,9 @@
58
57
 
59
58
  </div>
60
59
  </div>
61
- <!-- Content Box -->
62
60
 
63
61
  </div>
64
62
  </div>
65
63
  </div>
66
64
  <!-- Page Content -->
65
+
@@ -11,23 +11,23 @@
11
11
  <h2><%= yield(:phc_title) %></h2>
12
12
  <!-- Page Title -->
13
13
 
14
- <!-- Bread Crumbs -->
14
+ <!-- Bread Crumb -->
15
15
  <ol class="breadcrumb">
16
16
  <li><%= link_to "Author Index", phcscriptcdnpro.script_authors_path %></li>
17
17
  <li class="active"><%= yield(:phc_title_tagline) %></li>
18
18
  </ol>
19
- <!-- Bread Crumbs -->
19
+ <!-- Bread Crumb -->
20
20
 
21
21
  </div>
22
22
  <div class="col-sm-8">
23
-
24
- <!-- Back to Author Index Button -->
23
+
24
+ <!-- Back to Licence Index Button -->
25
25
  <div class="title-action">
26
26
  <%= link_to phcscriptcdnpro.script_authors_path, class: "btn btn-primary" do %>
27
27
  <i class="fa fa-plus"></i> Back to Author Index
28
28
  <% end %>
29
29
  </div>
30
- <!-- Back to Author Index Button -->
30
+ <!-- Back to Licence Index Button -->
31
31
 
32
32
  </div>
33
33
  </div>
@@ -37,6 +37,7 @@
37
37
  <div class="wrapper wrapper-content animated fadeInRight">
38
38
  <div class="row">
39
39
  <div class="col-lg-12">
40
+
40
41
  <div class="ibox float-e-margins">
41
42
  <div class="ibox-title">
42
43
  <h5><%= yield(:phc_title_tagline) %></h5>
@@ -58,7 +59,6 @@
58
59
 
59
60
  </div>
60
61
  </div>
61
- <!-- Content Box -->
62
62
 
63
63
  </div>
64
64
  </div>
@@ -1,7 +1,10 @@
1
1
  <%= form_for(script_extension) do |f| %>
2
2
 
3
+ <!-- For Validation by PHCNotifi -->
3
4
  <%= render 'phcnotifi/validations', :object => @script_extension %>
5
+ <!-- For Validation by PHCNotifi -->
4
6
 
7
+ <!-- Form Fields -->
5
8
  <div class="form-group field_with_error">
6
9
  <%= f.label :scriptextensionname, "Extension Name" %>
7
10
  <%= f.text_field :scriptextensionname, placeholder: "Extension Name", class: "form-control" %>
@@ -14,9 +17,12 @@
14
17
  <%= f.label :scriptextension, "Script Extension" %>
15
18
  <%= f.text_field :scriptextension, placeholder: "Script Extension (.js/.css)", class: "form-control" %>
16
19
  </div>
20
+ <!-- Form Fields -->
17
21
 
22
+ <!-- Form Button -->
18
23
  <div class="actions">
19
24
  <%= f.submit class: "btn btn-primary" %>
20
25
  </div>
26
+ <!-- Form Button -->
21
27
 
22
28
  <% end %>