phcscriptcdnpro 8.0.2 → 8.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/MIT-LICENSE +1 -1
- data/README.md +11 -11
- data/Rakefile +1 -1
- data/app/assets/config/phcscriptcdnpro_manifest.js +1 -1
- data/app/assets/javascripts/phcscriptcdnpro/application.js +1 -1
- data/app/assets/stylesheets/phcscriptcdnpro/application.scss +1 -1
- data/app/controllers/phcscriptcdnpro/application_controller.rb +12 -12
- data/app/controllers/phcscriptcdnpro/frontend/listings_controller.rb +3 -3
- data/app/controllers/phcscriptcdnpro/script/authors_controller.rb +12 -12
- data/app/controllers/phcscriptcdnpro/script/extensions_controller.rb +12 -12
- data/app/controllers/phcscriptcdnpro/script/licences_controller.rb +12 -12
- data/app/controllers/phcscriptcdnpro/script/listings_controller.rb +12 -12
- data/app/controllers/phcscriptcdnpro/script/versions_controller.rb +11 -11
- data/app/helpers/phcscriptcdnpro/application_helper.rb +1 -1
- data/app/jobs/phcscriptcdnpro/application_job.rb +1 -1
- data/app/mailers/phcscriptcdnpro/application_mailer.rb +1 -1
- data/app/models/phcscriptcdnpro/application_record.rb +2 -2
- data/app/models/phcscriptcdnpro/script/author.rb +1 -1
- data/app/views/layouts/phcscriptcdnpro/application.html.erb +43 -37
- data/app/views/layouts/phcscriptcdnpro/components/backend/footer/_footer.html.erb +2 -2
- data/app/views/layouts/phcscriptcdnpro/components/backend/navigation/_top_bar.html.erb +2 -3
- data/app/views/layouts/phcscriptcdnpro/components/backend/sidebars/_left_sidebar.html.erb +3 -2
- data/app/views/layouts/phcscriptcdnpro/frontend.html.erb +66 -66
- data/app/views/phcscriptcdnpro/frontend/listings/index.html.erb +5 -5
- data/app/views/phcscriptcdnpro/frontend/listings/show.html.erb +4 -4
- data/app/views/phcscriptcdnpro/script/authors/_form.html.erb +1 -1
- data/app/views/phcscriptcdnpro/script/authors/edit.html.erb +1 -1
- data/app/views/phcscriptcdnpro/script/authors/index.html.erb +1 -1
- data/app/views/phcscriptcdnpro/script/authors/new.html.erb +1 -1
- data/app/views/phcscriptcdnpro/script/authors/show.html.erb +1 -1
- data/app/views/phcscriptcdnpro/script/extensions/_form.html.erb +1 -1
- data/app/views/phcscriptcdnpro/script/extensions/edit.html.erb +1 -1
- data/app/views/phcscriptcdnpro/script/extensions/index.html.erb +1 -1
- data/app/views/phcscriptcdnpro/script/extensions/new.html.erb +1 -1
- data/app/views/phcscriptcdnpro/script/extensions/show.html.erb +1 -1
- data/app/views/phcscriptcdnpro/script/licences/_form.html.erb +1 -1
- data/app/views/phcscriptcdnpro/script/licences/edit.html.erb +1 -1
- data/app/views/phcscriptcdnpro/script/licences/index.html.erb +2 -2
- data/app/views/phcscriptcdnpro/script/licences/new.html.erb +1 -1
- data/app/views/phcscriptcdnpro/script/licences/show.html.erb +1 -1
- data/app/views/phcscriptcdnpro/script/listings/_form.html.erb +1 -1
- data/app/views/phcscriptcdnpro/script/listings/edit.html.erb +1 -1
- data/app/views/phcscriptcdnpro/script/listings/index.html.erb +1 -1
- data/app/views/phcscriptcdnpro/script/listings/new.html.erb +1 -1
- data/app/views/phcscriptcdnpro/script/listings/show.html.erb +1 -1
- data/app/views/phcscriptcdnpro/script/urls/_form.html.erb +1 -1
- data/app/views/phcscriptcdnpro/script/urls/edit.html.erb +1 -1
- data/app/views/phcscriptcdnpro/script/urls/index.html.erb +1 -1
- data/app/views/phcscriptcdnpro/script/urls/new.html.erb +1 -1
- data/app/views/phcscriptcdnpro/script/urls/show.html.erb +1 -1
- data/app/views/phcscriptcdnpro/script/versions/_form.html.erb +1 -1
- data/app/views/phcscriptcdnpro/script/versions/edit.html.erb +1 -1
- data/app/views/phcscriptcdnpro/script/versions/index.html.erb +1 -1
- data/app/views/phcscriptcdnpro/script/versions/new.html.erb +1 -1
- data/app/views/phcscriptcdnpro/script/versions/show.html.erb +1 -1
- data/config/routes.rb +1 -1
- data/lib/phcscriptcdnpro.rb +1 -1
- data/lib/phcscriptcdnpro/version.rb +1 -1
- data/lib/tasks/phcscriptcdnpro_tasks.rake +1 -1
- metadata +2 -2
@@ -7,26 +7,26 @@ module Phcscriptcdnpro
|
|
7
7
|
before_action :require_user
|
8
8
|
before_action :membership_info
|
9
9
|
before_action :set_script_version, only: [:show, :edit, :update, :destroy]
|
10
|
-
|
10
|
+
|
11
11
|
# INDEX - Script Versions
|
12
12
|
def index
|
13
13
|
@script_versions = Script::Version.all
|
14
14
|
end
|
15
|
-
|
15
|
+
|
16
16
|
# DETAILS - Script Versions
|
17
17
|
def show
|
18
18
|
@script_versions = Script::Version.friendly.find(params[:id])
|
19
19
|
end
|
20
|
-
|
20
|
+
|
21
21
|
# NEW - Script Versions
|
22
22
|
def new
|
23
23
|
@script_version = Script::Version.new
|
24
24
|
end
|
25
|
-
|
25
|
+
|
26
26
|
# EDIT - Script Versions
|
27
27
|
def edit
|
28
28
|
end
|
29
|
-
|
29
|
+
|
30
30
|
# POST - Script Versions
|
31
31
|
def create
|
32
32
|
@script_version = Script::Version.new(script_version_params)
|
@@ -40,7 +40,7 @@ module Phcscriptcdnpro
|
|
40
40
|
render :new
|
41
41
|
end
|
42
42
|
end
|
43
|
-
|
43
|
+
|
44
44
|
# PATCH/PUT - Script Versions
|
45
45
|
def update
|
46
46
|
@script_version.user_id = current_user.id
|
@@ -53,24 +53,24 @@ module Phcscriptcdnpro
|
|
53
53
|
render :edit
|
54
54
|
end
|
55
55
|
end
|
56
|
-
|
56
|
+
|
57
57
|
# DELETE - Script Versions
|
58
58
|
def destroy
|
59
59
|
@script_version.destroy
|
60
60
|
redirect_to script_versions_url, notice: 'Version was successfully destroyed.'
|
61
61
|
end
|
62
|
-
|
62
|
+
|
63
63
|
private
|
64
|
-
|
64
|
+
|
65
65
|
# Common Callbacks
|
66
66
|
def set_script_version
|
67
67
|
@script_version = Script::Version.friendly.find(params[:id])
|
68
68
|
end
|
69
|
-
|
69
|
+
|
70
70
|
# Only allow a trusted parameter "white list" through.
|
71
71
|
def script_version_params
|
72
72
|
params.require(:script_version).permit(:scriptversion, :user_id, :user_name, :slug, :membership_id, :oganization_id)
|
73
73
|
end
|
74
|
-
|
74
|
+
|
75
75
|
end
|
76
76
|
end
|
@@ -1,41 +1,47 @@
|
|
1
1
|
<!DOCTYPE html>
|
2
2
|
<html>
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
3
|
+
<head>
|
4
|
+
|
5
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
6
|
+
<title><%= content_for?(:title) ? yield(:title) : "PHCScriptCDN - Script Listing Engine" %></title>
|
7
|
+
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" >
|
8
|
+
<link rel="canonical" href="http://phcnetworks.net">
|
9
|
+
|
10
|
+
<!-- Font -->
|
11
|
+
<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"/>
|
12
|
+
|
13
|
+
<!-- Requried Style Sheets -->
|
14
|
+
<%= stylesheet_link_tag "phcscriptcdnpro/application", media: "all", 'data-turbolinks-track': 'reload' %>
|
15
|
+
|
16
|
+
<!-- Security -->
|
17
|
+
<%= csrf_meta_tags %>
|
18
|
+
|
19
|
+
</head>
|
20
|
+
<body>
|
21
|
+
|
22
|
+
<div id="wrapper" class="<%= params[:controller] %>.<%= params[:action] %>">
|
23
|
+
|
24
|
+
<nav class="navbar-default navbar-static-side" role="navigation">
|
25
|
+
<%= render 'layouts/phcscriptcdnpro/components/backend/sidebars/left_sidebar' %>
|
26
|
+
</nav>
|
27
|
+
|
28
|
+
<div id="page-wrapper" class="gray-bg <%= @extra_class %>">
|
29
|
+
<div class="row border-bottom">
|
30
|
+
<%= render 'layouts/phcscriptcdnpro/components/backend/navigation/top_bar' %>
|
31
|
+
</div>
|
32
|
+
|
33
|
+
<%= yield %>
|
34
|
+
|
35
|
+
<div class="footer">
|
36
|
+
<%= render 'layouts/phcscriptcdnpro/components/backend/footer/footer' %>
|
33
37
|
</div>
|
34
|
-
|
38
|
+
|
35
39
|
</div>
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
40
|
+
<%= render 'layouts/phcscriptcdnpro/components/backend/sidebars/right_sidebar' %>
|
41
|
+
</div>
|
42
|
+
|
43
|
+
<!-- Requried JavaScripts -->
|
44
|
+
<%= javascript_include_tag "phcscriptcdnpro/application", 'data-turbolinks-track': 'reload' %>
|
45
|
+
|
46
|
+
</body>
|
47
|
+
</html>
|
@@ -1,5 +1,6 @@
|
|
1
1
|
<div class="sidebar-collapse">
|
2
2
|
<ul class="nav metismenu" id="side-menu">
|
3
|
+
|
3
4
|
<li class="nav-header">
|
4
5
|
<div class="dropdown profile-element">
|
5
6
|
<a data-toggle="dropdown" class="dropdown-toggle" href="#">
|
@@ -41,7 +42,7 @@
|
|
41
42
|
</ul>
|
42
43
|
</li>
|
43
44
|
<li class="<%= is_active_controller('phcmemberspro/directory/categories') %>">
|
44
|
-
|
45
|
+
<a href=""><i class="fa fa-sitemap"></i> <span class="nav-label">Directories & Listings</span> <span class="fa arrow"></span></a>
|
45
46
|
<ul class="nav nav-second-level collapse">
|
46
47
|
<li class="<%= is_active_controller('phcmemberspro/directory/categories') %>"><%= link_to "Category List", phcmemberspro.directory_categories_path %></li>
|
47
48
|
<li class="<%= is_active_controller('phcmemberspro/directory/categories#new') %>"><%= link_to "Add a Category", phcmemberspro.new_directory_category_path %></li>
|
@@ -69,4 +70,4 @@
|
|
69
70
|
<% end %>
|
70
71
|
|
71
72
|
</ul>
|
72
|
-
</div>
|
73
|
+
</div>
|
@@ -1,71 +1,71 @@
|
|
1
1
|
<!DOCTYPE html>
|
2
2
|
<html>
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
3
|
+
<head>
|
4
|
+
|
5
|
+
<!-- Meta Info (Page Specific) -->
|
6
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
7
|
+
<title><%= content_for?(:title) ? yield(:title) : "PHCNetworks - Developer Script CDN" %></title>
|
8
|
+
|
9
|
+
<!-- Meta Info (All) -->
|
10
|
+
<%= render 'layouts/components/frontend/seo/all_metainfo' %>
|
11
|
+
|
12
|
+
<!-- Font -->
|
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"/>
|
14
|
+
|
15
|
+
<!-- Requried StyleSheets -->
|
16
|
+
<%= stylesheet_link_tag "application", media: "all", 'data-turbolinks-track': 'reload' %>
|
17
|
+
|
18
|
+
<!-- Requried JavaScripts -->
|
19
|
+
<%= javascript_include_tag "application", 'data-turbolinks-track': 'reload' %>
|
20
|
+
|
21
|
+
<!-- Security -->
|
22
|
+
<%= csrf_meta_tags %>
|
23
|
+
|
24
|
+
</head>
|
25
|
+
<body class="enable-animation">
|
26
|
+
|
27
|
+
<div id="slidetop">
|
28
|
+
<%= render 'layouts/components/frontend/header/slideout' %>
|
29
|
+
</div>
|
30
|
+
|
31
|
+
<div id="wrapper">
|
32
|
+
|
33
|
+
<div id="topBar">
|
34
|
+
<%= render 'layouts/components/frontend/header/topbar' %>
|
29
35
|
</div>
|
30
|
-
|
31
|
-
<div id="
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
</div>
|
53
|
-
<div class="col-md-3">
|
54
|
-
<%= render 'layouts/components/frontend/footer/footer_quicklinks' %>
|
55
|
-
</div>
|
56
|
-
<div class="col-md-3">
|
57
|
-
<%= render 'layouts/components/frontend/footer/footer_socialconnect' %>
|
58
|
-
</div>
|
36
|
+
|
37
|
+
<div id="header" class="sticky clearfix">
|
38
|
+
<%= render 'layouts/components/frontend/navigation/navigation' %>
|
39
|
+
</div>
|
40
|
+
|
41
|
+
<%= yield %>
|
42
|
+
|
43
|
+
<footer id="footer">
|
44
|
+
|
45
|
+
<div class="container">
|
46
|
+
<div class="row">
|
47
|
+
<div class="col-md-3">
|
48
|
+
<%= render 'layouts/components/frontend/footer/footer_address' %>
|
49
|
+
</div>
|
50
|
+
<div class="col-md-3">
|
51
|
+
<%= render 'layouts/components/frontend/footer/footer_newspost' %>
|
52
|
+
</div>
|
53
|
+
<div class="col-md-3">
|
54
|
+
<%= render 'layouts/components/frontend/footer/footer_quicklinks' %>
|
55
|
+
</div>
|
56
|
+
<div class="col-md-3">
|
57
|
+
<%= render 'layouts/components/frontend/footer/footer_socialconnect' %>
|
59
58
|
</div>
|
60
59
|
</div>
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
</
|
60
|
+
</div>
|
61
|
+
|
62
|
+
<div class="copyright">
|
63
|
+
<%= render 'layouts/components/frontend/footer/footer_copyright' %>
|
64
|
+
</div>
|
65
|
+
|
66
|
+
</footer>
|
67
|
+
|
68
|
+
</div>
|
69
|
+
|
70
|
+
</body>
|
71
|
+
</html>
|
@@ -21,20 +21,20 @@
|
|
21
21
|
|
22
22
|
<!-- Script CDN List -->
|
23
23
|
<div class="col-md-9 col-sm-9">
|
24
|
-
|
24
|
+
|
25
25
|
<% @script_listings_index.each do |script_listings_index| %>
|
26
26
|
<div class="blog-post-item">
|
27
27
|
<h2><%= link_to script_listings_index.scripttitle, phcscriptcdnpro.frontend_listing_path(script_listings_index) %> <small>v. <%= script_listings_index.version.scriptversion %></small></h2>
|
28
28
|
<ul class="blog-post-info list-inline">
|
29
29
|
<li>
|
30
30
|
<%= link_to "#" do %>
|
31
|
-
<i class="fa fa-clock-o"></i>
|
31
|
+
<i class="fa fa-clock-o"></i>
|
32
32
|
<span class="font-lato"><%= script_listings_index.created_at %></span>
|
33
33
|
<% end %>
|
34
34
|
</li>
|
35
35
|
<li>
|
36
36
|
<%= link_to "#" do %>
|
37
|
-
<i class="fa fa-user"></i>
|
37
|
+
<i class="fa fa-user"></i>
|
38
38
|
<span class="font-lato">Posted By - <%= script_listings_index.user_name %></span>
|
39
39
|
<% end %>
|
40
40
|
</li>
|
@@ -42,11 +42,11 @@
|
|
42
42
|
<div></div>
|
43
43
|
</div>
|
44
44
|
<% end %>
|
45
|
-
|
45
|
+
|
46
46
|
</div>
|
47
47
|
<!-- Script CDN List -->
|
48
48
|
|
49
49
|
</div>
|
50
50
|
</div>
|
51
51
|
</section>
|
52
|
-
<!-- Page Content -->
|
52
|
+
<!-- Page Content -->
|
@@ -20,7 +20,7 @@
|
|
20
20
|
<ul class="blog-post-info list-inline">
|
21
21
|
<li>
|
22
22
|
<%= link_to "#" do %>
|
23
|
-
<i class="fa fa-clock-o"></i>
|
23
|
+
<i class="fa fa-clock-o"></i>
|
24
24
|
<span class="font-lato"><%= @script_listings_single.created_at %></span>
|
25
25
|
<% end %>
|
26
26
|
</li>
|
@@ -34,14 +34,14 @@
|
|
34
34
|
</li>
|
35
35
|
<li>
|
36
36
|
<%= link_to "#" do %>
|
37
|
-
<i class="fa fa-user"></i>
|
37
|
+
<i class="fa fa-user"></i>
|
38
38
|
<span class="font-lato">Posted By - <%= @script_listings_single.user_name %></span>
|
39
39
|
<% end %>
|
40
40
|
</li>
|
41
41
|
</ul>
|
42
42
|
<div>
|
43
43
|
<%= @script_listings_single.scriptdescription.html_safe %>
|
44
|
-
<p><small>Source: <i><%= @script_listings_single.descriptionsource %></i></small></p>
|
44
|
+
<p><small>Source: <i><%= @script_listings_single.descriptionsource %></i></small></p>
|
45
45
|
</div>
|
46
46
|
<br/>
|
47
47
|
<div>
|
@@ -62,4 +62,4 @@
|
|
62
62
|
</div>
|
63
63
|
</div>
|
64
64
|
</section>
|
65
|
-
<!-- Page Content -->
|
65
|
+
<!-- Page Content -->
|