phcdevworks_scripts 5.5.0 → 7.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/controllers/phcdevworks_scripts/script/authors_controller.rb +2 -2
- data/app/controllers/phcdevworks_scripts/script/extensions_controller.rb +2 -2
- data/app/controllers/phcdevworks_scripts/script/listings_controller.rb +2 -2
- data/app/controllers/phcdevworks_scripts/script/urls_controller.rb +1 -1
- data/app/controllers/phcdevworks_scripts/script/versions_controller.rb +2 -2
- data/app/controllers/phcdevworks_scripts/snippet/posts_controller.rb +1 -1
- data/app/controllers/phcdevworks_scripts/snippet/urls_controller.rb +1 -1
- data/app/models/phcdevworks_scripts/script/author.rb +7 -9
- data/app/models/phcdevworks_scripts/script/extension.rb +7 -7
- data/app/models/phcdevworks_scripts/script/listing.rb +8 -8
- data/app/models/phcdevworks_scripts/script/url.rb +3 -3
- data/app/models/phcdevworks_scripts/script/version.rb +2 -2
- data/app/models/phcdevworks_scripts/script_author_versions.rb +1 -1
- data/app/models/phcdevworks_scripts/script_extension_versions.rb +1 -1
- data/app/models/phcdevworks_scripts/script_listing_versions.rb +1 -1
- data/app/models/phcdevworks_scripts/script_url_versions.rb +1 -1
- data/app/models/phcdevworks_scripts/snippet/post.rb +5 -5
- data/app/models/phcdevworks_scripts/snippet/url.rb +1 -1
- data/app/views/layouts/phcdevworks_scripts/application.html.erb +65 -0
- data/app/views/layouts/phcdevworks_scripts/components/backend/sidebars/_side_menu.html.erb +75 -58
- data/app/views/phcdevworks_scripts/script/authors/_form.html.erb +8 -8
- data/app/views/phcdevworks_scripts/script/authors/index.html.erb +4 -4
- data/app/views/phcdevworks_scripts/script/extensions/_form.html.erb +6 -6
- data/app/views/phcdevworks_scripts/script/extensions/index.html.erb +2 -2
- data/app/views/phcdevworks_scripts/script/listings/_form.html.erb +22 -21
- data/app/views/phcdevworks_scripts/script/listings/index.html.erb +4 -4
- data/app/views/phcdevworks_scripts/script/urls/_form.html.erb +8 -8
- data/app/views/phcdevworks_scripts/snippet/posts/_form.html.erb +5 -4
- data/app/views/phcdevworks_scripts/snippet/posts/index.html.erb +2 -2
- data/app/views/phcdevworks_scripts/snippet/posts/show.html.erb +2 -2
- data/app/views/phcdevworks_scripts/snippet/urls/_form.html.erb +2 -2
- data/config/routes.rb +3 -2
- data/db/migrate/20170517064030_create_phcdevworks_scripts_script_extension_versions.rb +18 -0
- data/db/migrate/{20170517064049_create_phcdevworks_scripts_listing_versions.rb → 20170517064049_create_phcdevworks_scripts_script_listing_versions.rb} +4 -3
- data/db/migrate/20170517064114_create_phcdevworks_scripts_script_version_versions.rb +2 -1
- data/db/migrate/{20170517064030_create_phcdevworks_scripts_extension_versions.rb → 20170517064150_create_phcdevworks_scripts_script_url_versions.rb} +4 -3
- data/db/migrate/{20170517064150_create_phcdevworks_scripts_url_versions.rb → 20170517064208_create_phcdevworks_scripts_script_author_versions.rb} +18 -17
- data/db/migrate/20190818022002_create_phcdevworks_scripts_snippet_posts.rb +4 -2
- data/db/migrate/20190818022024_create_phcdevworks_scripts_snippet_urls.rb +3 -3
- data/db/migrate/20190818022939_create_phcdevworks_scripts_script_authors.rb +5 -5
- data/db/migrate/20190818023353_create_phcdevworks_scripts_script_listings.rb +13 -11
- data/db/migrate/20190818023709_create_phcdevworks_scripts_script_extensions.rb +3 -3
- data/db/migrate/20190818023911_create_phcdevworks_scripts_script_urls.rb +7 -7
- data/db/migrate/20191102092649_create_phcdevworks_scripts_snippet_url_versions.rb +0 -1
- data/db/migrate/20191102092711_create_phcdevworks_scripts_snippet_post_versions.rb +0 -1
- data/lib/phcdevworks_scripts/engine.rb +1 -0
- data/lib/phcdevworks_scripts/version.rb +1 -1
- metadata +37 -24
- data/db/migrate/20170517064208_create_phcdevworks_scripts_author_versions.rb +0 -17
- data/db/migrate/20170517064427_create_phcdevworks_scripts_licence_versions.rb +0 -17
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 38d96669617aa4be5429bcf9caab77d68e5313973b402ba61978792a7430d02d
|
4
|
+
data.tar.gz: 1191137bea52ba899b811089ae71ff03067f3083f065de45b06a2c0db32ce2ef
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 051c29936d0ce230b8616a625a0061b828096783f4e347f82e9d31b5167be93c924d6b7132972594c7a4a2ac02fe71ae5c06fbf6b342679e841aa6aa94a0f773
|
7
|
+
data.tar.gz: 46e1f8761160437392ea2a4e2d12e4973a87f58b290b7a8e5ca747dad43b6bdbdf0e637dcb2f9ad4e64b8b257515ef380961a8e60c21782c809d4ab73e82da8c
|
@@ -17,7 +17,7 @@ module PhcdevworksScripts
|
|
17
17
|
# GET /script/authors/1
|
18
18
|
def show
|
19
19
|
@script_authors = Script::Author.friendly.find(params[:id])
|
20
|
-
@versions = PhcdevworksScripts::
|
20
|
+
@versions = PhcdevworksScripts::ScriptAuthorVersions.where(item_id: params[:id], item_type: 'PhcdevworksScripts::Script::Author')
|
21
21
|
end
|
22
22
|
|
23
23
|
# GET /script/authors/new
|
@@ -76,7 +76,7 @@ module PhcdevworksScripts
|
|
76
76
|
|
77
77
|
# Whitelist
|
78
78
|
def script_author_params
|
79
|
-
params.require(:script_author).permit(:
|
79
|
+
params.require(:script_author).permit(:script_author_first_name, :script_author_last_name, :script_author_website, :script_author_github, :slug, :user_id, :org_id)
|
80
80
|
end
|
81
81
|
|
82
82
|
end
|
@@ -17,7 +17,7 @@ module PhcdevworksScripts
|
|
17
17
|
# GET /script/extensions/1
|
18
18
|
def show
|
19
19
|
@script_extensions = Script::Extension.friendly.find(params[:id])
|
20
|
-
@versions = PhcdevworksScripts::
|
20
|
+
@versions = PhcdevworksScripts::ScriptExtensionVersions.where(item_id: params[:id], item_type: 'PhcdevworksScripts::Script::Extension')
|
21
21
|
end
|
22
22
|
|
23
23
|
# GET /script/extensions/new
|
@@ -76,7 +76,7 @@ module PhcdevworksScripts
|
|
76
76
|
|
77
77
|
# Whitelist
|
78
78
|
def script_extension_params
|
79
|
-
params.require(:script_extension).permit(:
|
79
|
+
params.require(:script_extension).permit(:script_extension_name, :script_extension_description, :script_extension, :slug, :user_id, :org_id)
|
80
80
|
end
|
81
81
|
|
82
82
|
end
|
@@ -17,7 +17,7 @@ module PhcdevworksScripts
|
|
17
17
|
# GET /script/listings/1
|
18
18
|
def show
|
19
19
|
@script_listings = Script::Listing.friendly.find(params[:id])
|
20
|
-
@versions = PhcdevworksScripts::
|
20
|
+
@versions = PhcdevworksScripts::ScriptListingVersions.where(item_id: params[:id], item_type: 'PhcdevworksScripts::Script::Listing')
|
21
21
|
end
|
22
22
|
|
23
23
|
# GET /script/listings/new
|
@@ -76,7 +76,7 @@ module PhcdevworksScripts
|
|
76
76
|
|
77
77
|
# Whitelist
|
78
78
|
def script_listing_params
|
79
|
-
params.require(:script_listing).permit(:
|
79
|
+
params.require(:script_listing).permit(:script_listing_title, :script_listing_description, :script_listing_script_source, :script_listing_script_website, :script_listing_script_repo, :script_listing_script_initial_release, :listing_script_lastest_release, :script_listing_script_beta_release, :script_listing_script_lastest_release, :script_listing_script_lastest_release_cdn, :author_id, :slug, :user_id, :org_id)
|
80
80
|
end
|
81
81
|
|
82
82
|
end
|
@@ -71,7 +71,7 @@ module PhcdevworksScripts
|
|
71
71
|
|
72
72
|
# Whitelist
|
73
73
|
def script_url_params
|
74
|
-
params.require(:script_url).permit(:
|
74
|
+
params.require(:script_url).permit(:script_cdn_url, :script_cdn_url_release, :script_cdn_url_cdn_update, :version_id, :extension_id, :slug, :user_id, :org_id)
|
75
75
|
end
|
76
76
|
|
77
77
|
end
|
@@ -17,7 +17,7 @@ module PhcdevworksScripts
|
|
17
17
|
# GET /script/versions/1
|
18
18
|
def show
|
19
19
|
@script_versions = Script::Version.friendly.find(params[:id])
|
20
|
-
@versions = PhcdevworksScripts::
|
20
|
+
@versions = PhcdevworksScripts::ScriptVersionVersions.where(item_id: params[:id], item_type: 'PhcdevworksScripts::Script::Version')
|
21
21
|
end
|
22
22
|
|
23
23
|
# GET /script/versions/new
|
@@ -76,7 +76,7 @@ module PhcdevworksScripts
|
|
76
76
|
|
77
77
|
# Whitelist
|
78
78
|
def script_version_params
|
79
|
-
params.require(:script_version).permit(:script_version_number)
|
79
|
+
params.require(:script_version).permit(:script_version_number, :slug, :user_id, :org_id)
|
80
80
|
end
|
81
81
|
|
82
82
|
end
|
@@ -75,7 +75,7 @@ module PhcdevworksScripts
|
|
75
75
|
|
76
76
|
# Whitelist
|
77
77
|
def snippet_post_params
|
78
|
-
params.require(:snippet_post).permit(:
|
78
|
+
params.require(:snippet_post).permit(:snippet_post_title, :snippet_post_code, :slug, :user_id, :org_id)
|
79
79
|
end
|
80
80
|
|
81
81
|
end
|
@@ -70,7 +70,7 @@ module PhcdevworksScripts
|
|
70
70
|
|
71
71
|
# Whitelist
|
72
72
|
def snippet_url_params
|
73
|
-
params.require(:snippet_url).permit(:
|
73
|
+
params.require(:snippet_url).permit(:snippet_post_url, :post_id, :slug, :user_id, :org_id)
|
74
74
|
end
|
75
75
|
|
76
76
|
end
|
@@ -11,24 +11,22 @@ module PhcdevworksScripts
|
|
11
11
|
has_many :listings, class_name: 'PhcdevworksScripts::Script::Listing'
|
12
12
|
|
13
13
|
# Form Fields Validation
|
14
|
-
validates :
|
15
|
-
|
14
|
+
validates :script_author_first_name,
|
15
|
+
presence: true
|
16
16
|
|
17
|
-
validates :
|
17
|
+
validates :script_author_website,
|
18
18
|
presence: true,
|
19
19
|
format: { with: URI::regexp(%w(http https)), message: "Please follow this URL format http or https://www.**********.com" }
|
20
20
|
|
21
|
-
validates :
|
21
|
+
validates :script_author_github,
|
22
22
|
presence: true,
|
23
23
|
format: { with: URI::regexp(%w(http https)), message: "Please follow this URL format http or https://www.**********.com" }
|
24
24
|
|
25
25
|
# Clean URL Define
|
26
|
-
friendly_id :
|
26
|
+
friendly_id :script_author_nice_urls, use: [:slugged, :finders]
|
27
27
|
|
28
|
-
def
|
29
|
-
[
|
30
|
-
[:author_first_name, :author_last_name]
|
31
|
-
]
|
28
|
+
def script_author_nice_urls
|
29
|
+
[:script_author_first_name, :script_author_last_name]
|
32
30
|
end
|
33
31
|
|
34
32
|
end
|
@@ -12,20 +12,20 @@ module PhcdevworksScripts
|
|
12
12
|
has_many :urls, class_name: 'PhcdevworksScripts::Script::Url'
|
13
13
|
|
14
14
|
# Form Fields Validation
|
15
|
-
validates :
|
15
|
+
validates :script_extension_name,
|
16
16
|
presence: true
|
17
17
|
|
18
|
-
validates :
|
18
|
+
validates :script_extension_description,
|
19
19
|
presence: true
|
20
20
|
|
21
|
-
validates :
|
21
|
+
validates :script_extension,
|
22
22
|
presence: true
|
23
|
-
|
23
|
+
|
24
24
|
# Clean URL Define
|
25
|
-
friendly_id :
|
25
|
+
friendly_id :script_extension_nice_urls, use: [:slugged, :finders]
|
26
26
|
|
27
|
-
def
|
28
|
-
[:
|
27
|
+
def script_extension_nice_urls
|
28
|
+
[:script_extension]
|
29
29
|
end
|
30
30
|
|
31
31
|
end
|
@@ -12,26 +12,26 @@ module PhcdevworksScripts
|
|
12
12
|
belongs_to :author, class_name: 'PhcdevworksScripts::Script::Author'
|
13
13
|
|
14
14
|
# Form Fields Validation
|
15
|
-
validates :
|
15
|
+
validates :script_listing_title,
|
16
16
|
presence: true
|
17
17
|
|
18
|
-
validates :
|
18
|
+
validates :script_listing_description,
|
19
19
|
presence: true
|
20
20
|
|
21
|
-
validates :
|
21
|
+
validates :script_listing_script_source,
|
22
22
|
format: { with: URI::regexp(%w(http https)), message: "Please follow this URL format http or https://www.**********.com" }
|
23
23
|
|
24
|
-
validates :
|
24
|
+
validates :script_listing_script_website,
|
25
25
|
format: { with: URI::regexp(%w(http https)), message: "Please follow this URL format http or https://www.**********.com" }
|
26
26
|
|
27
|
-
validates :
|
27
|
+
validates :script_listing_script_repo,
|
28
28
|
format: { with: URI::regexp(%w(http https)), message: "Please follow this URL format http or https://www.**********.com" }
|
29
29
|
|
30
30
|
# Clean URL Define
|
31
|
-
friendly_id :
|
31
|
+
friendly_id :script_listing_nice_urls, use: [:slugged, :finders]
|
32
32
|
|
33
|
-
def
|
34
|
-
[:
|
33
|
+
def script_listing_nice_urls
|
34
|
+
[:script_listing_title]
|
35
35
|
end
|
36
36
|
|
37
37
|
end
|
@@ -10,14 +10,14 @@ module PhcdevworksScripts
|
|
10
10
|
belongs_to :version, class_name: 'PhcdevworksScripts::Script::Version', optional: true
|
11
11
|
|
12
12
|
# Form Fields Validation
|
13
|
-
validates :
|
13
|
+
validates :script_cdn_url,
|
14
14
|
presence: true,
|
15
15
|
format: { with: URI::regexp(%w(http https)), message: "Please follow this URL format http or https://www.**********.com" }
|
16
16
|
|
17
|
-
validates :
|
17
|
+
validates :script_cdn_url_release,
|
18
18
|
presence: true
|
19
19
|
|
20
|
-
validates :
|
20
|
+
validates :script_cdn_url_cdn_update,
|
21
21
|
presence: true
|
22
22
|
|
23
23
|
end
|
@@ -16,9 +16,9 @@ module PhcdevworksScripts
|
|
16
16
|
presence: true
|
17
17
|
|
18
18
|
# Clean URL Define
|
19
|
-
friendly_id :
|
19
|
+
friendly_id :script_version_nice_urls, use: [:slugged, :finders]
|
20
20
|
|
21
|
-
def
|
21
|
+
def script_version_nice_urls
|
22
22
|
[:script_version_number]
|
23
23
|
end
|
24
24
|
|
@@ -11,17 +11,17 @@ module PhcdevworksScripts
|
|
11
11
|
has_many :urls, class_name: 'PhcdevworksScripts::Snippet::Url'
|
12
12
|
|
13
13
|
# Form Fields Validation
|
14
|
-
validates :
|
14
|
+
validates :snippet_post_title,
|
15
15
|
presence: true
|
16
16
|
|
17
|
-
validates :
|
17
|
+
validates :snippet_post_code,
|
18
18
|
presence: true
|
19
19
|
|
20
20
|
# Clean URL Define
|
21
|
-
friendly_id :
|
21
|
+
friendly_id :snippet_post_nice_urls, use: [:slugged, :finders]
|
22
22
|
|
23
|
-
def
|
24
|
-
[:
|
23
|
+
def snippet_post_nice_urls
|
24
|
+
[:snippet_post_title]
|
25
25
|
end
|
26
26
|
|
27
27
|
end
|
@@ -11,7 +11,7 @@ module PhcdevworksScripts
|
|
11
11
|
belongs_to :post, class_name: 'PhcdevworksScripts::Snippet::Post'
|
12
12
|
|
13
13
|
# Form Fields Validation
|
14
|
-
validates :
|
14
|
+
validates :snippet_post_url,
|
15
15
|
presence: true,
|
16
16
|
format: { :with => phc_domain_regx, message: "Please follow this URL format http or https://www.**********.com" }
|
17
17
|
|
@@ -67,5 +67,70 @@
|
|
67
67
|
<%= javascript_include_tag "phcdevworks_scripts/application", "data-turbolinks-track": "reload" %>
|
68
68
|
<!-- JavaScript -->
|
69
69
|
|
70
|
+
<!-- JavaScript CKEditor -->
|
71
|
+
<script>ClassicEditor
|
72
|
+
.create( document.querySelector( '.editor' ), {
|
73
|
+
toolbar: {
|
74
|
+
items: [
|
75
|
+
'heading',
|
76
|
+
'|',
|
77
|
+
'fontBackgroundColor',
|
78
|
+
'fontColor',
|
79
|
+
'horizontalLine',
|
80
|
+
'fontSize',
|
81
|
+
'fontFamily',
|
82
|
+
'highlight',
|
83
|
+
'|',
|
84
|
+
'bold',
|
85
|
+
'underline',
|
86
|
+
'italic',
|
87
|
+
'strikethrough',
|
88
|
+
'link',
|
89
|
+
'removeFormat',
|
90
|
+
'|',
|
91
|
+
'alignment',
|
92
|
+
'indent',
|
93
|
+
'outdent',
|
94
|
+
'|',
|
95
|
+
'blockQuote',
|
96
|
+
'insertTable',
|
97
|
+
'undo',
|
98
|
+
'redo',
|
99
|
+
'|',
|
100
|
+
'subscript',
|
101
|
+
'superscript',
|
102
|
+
'|',
|
103
|
+
'codeBlock',
|
104
|
+
'code',
|
105
|
+
'|',
|
106
|
+
'MathType',
|
107
|
+
'ChemType',
|
108
|
+
'specialCharacters'
|
109
|
+
]
|
110
|
+
},
|
111
|
+
language: 'en',
|
112
|
+
table: {
|
113
|
+
contentToolbar: [
|
114
|
+
'tableColumn',
|
115
|
+
'tableRow',
|
116
|
+
'mergeTableCells',
|
117
|
+
'tableCellProperties',
|
118
|
+
'tableProperties'
|
119
|
+
]
|
120
|
+
},
|
121
|
+
licenseKey: '',
|
122
|
+
} )
|
123
|
+
.then( editor => {
|
124
|
+
window.editor = editor;
|
125
|
+
} )
|
126
|
+
.catch( error => {
|
127
|
+
console.error( 'Oops, something gone wrong!' );
|
128
|
+
console.error( 'Please, report the following error in the https://github.com/ckeditor/ckeditor5 with the build id and the error stack trace:' );
|
129
|
+
console.warn( 'Build id: ulhl6ym1zxhr-qh8kt6relt0l' );
|
130
|
+
console.error( error );
|
131
|
+
} );
|
132
|
+
</script>
|
133
|
+
<!-- JavaScript CKEditor -->
|
134
|
+
|
70
135
|
</body>
|
71
136
|
</html>
|
@@ -38,37 +38,47 @@
|
|
38
38
|
<!-- -PHC- Sidebar - Sidebar Navigation -->
|
39
39
|
<ul class="nav">
|
40
40
|
|
41
|
-
<% if defined?
|
42
|
-
<!-- -PHC- Sidebar - Sidebar Navigation - PHCDevworks
|
43
|
-
<li class="nav-header">
|
41
|
+
<% if defined?phcdevworks_press %>
|
42
|
+
<!-- -PHC- Sidebar - Sidebar Navigation - PHCDevworks Press -->
|
43
|
+
<li class="nav-header">Articles & Blogging</li>
|
44
44
|
<li class="has-sub">
|
45
45
|
<a href="javascript:;">
|
46
46
|
<b class="caret"></b>
|
47
|
-
<i class="fad fa-
|
48
|
-
<span>
|
47
|
+
<i class="fad fa-newspaper"></i>
|
48
|
+
<span>Blog Articles</span>
|
49
49
|
</a>
|
50
50
|
<ul class="sub-menu">
|
51
|
-
<li class="<%= phc_menu_active_controller("
|
52
|
-
<li class="<%= phc_menu_active_controller("
|
51
|
+
<li class="<%= phc_menu_active_controller("phcdevworks_press/article/posts") %>"><%= link_to("Article Index", phcdevworks_press.article_posts_path) %></li>
|
52
|
+
<li class="<%= phc_menu_active_controller("phcdevworks_press/article/posts#new") %>"><%= link_to("Add a New Aritcle", phcdevworks_press.new_article_post_path) %></li>
|
53
53
|
</ul>
|
54
54
|
</li>
|
55
|
-
<li class="nav-header">Member"s Directory</li>
|
56
55
|
<li class="has-sub">
|
57
56
|
<a href="javascript:;">
|
58
57
|
<b class="caret"></b>
|
59
|
-
<i class="fad fa-
|
60
|
-
<span>
|
58
|
+
<i class="fad fa-star-half"></i>
|
59
|
+
<span>Review Articles</span>
|
61
60
|
</a>
|
62
61
|
<ul class="sub-menu">
|
63
|
-
<li class="<%= phc_menu_active_controller("
|
64
|
-
<li class="<%= phc_menu_active_controller("
|
62
|
+
<li class="<%= phc_menu_active_controller("phcdevworks_press/review/posts") %>"><%= link_to("Reviews Index", phcdevworks_press.review_posts_path) %></li>
|
63
|
+
<li class="<%= phc_menu_active_controller("phcdevworks_press/review/posts#new") %>"><%= link_to("Add a New Review", phcdevworks_press.new_review_post_path) %></li>
|
65
64
|
</ul>
|
66
65
|
</li>
|
67
|
-
|
66
|
+
<li class="has-sub">
|
67
|
+
<a href="javascript:;">
|
68
|
+
<b class="caret"></b>
|
69
|
+
<i class="fad fa-th-list"></i>
|
70
|
+
<span>List Articles</span>
|
71
|
+
</a>
|
72
|
+
<ul class="sub-menu">
|
73
|
+
<li class="<%= phc_menu_active_controller("phcdevworks_press/list/posts") %>"><%= link_to("Lists Index", phcdevworks_press.list_posts_path) %></li>
|
74
|
+
<li class="<%= phc_menu_active_controller("phcdevworks_press/list/posts#new") %>"><%= link_to("Add a New List", phcdevworks_press.new_list_post_path) %></li>
|
75
|
+
</ul>
|
76
|
+
</li>
|
77
|
+
<!-- -PHC- Sidebar - Sidebar Navigation - PHCDevworks Press -->
|
68
78
|
<% end %>
|
69
79
|
|
70
80
|
<% if defined?phcdevworks_portfolio %>
|
71
|
-
<!-- -PHC- Sidebar - Sidebar Navigation - PHCDevworks
|
81
|
+
<!-- -PHC- Sidebar - Sidebar Navigation - PHCDevworks Portfolio -->
|
72
82
|
<li class="nav-header">Portfolio</li>
|
73
83
|
<li class="has-sub">
|
74
84
|
<a href="javascript:;">
|
@@ -84,54 +94,73 @@
|
|
84
94
|
<li class="has-sub">
|
85
95
|
<a href="javascript:;">
|
86
96
|
<b class="caret"></b>
|
87
|
-
<i class="fad fa-
|
88
|
-
<span>Project
|
97
|
+
<i class="fad fa-folders"></i>
|
98
|
+
<span>Project Types</span>
|
89
99
|
</a>
|
90
100
|
<ul class="sub-menu">
|
91
|
-
<li class="<%= phc_menu_active_controller("phcdevworks_portfolio/project/posts") %>"><%= link_to("Project
|
92
|
-
<li class="<%= phc_menu_active_controller("phcdevworks_portfolio/project/posts#new") %>"><%= link_to("New
|
101
|
+
<li class="<%= phc_menu_active_controller("phcdevworks_portfolio/project/posts") %>"><%= link_to("Project Type", phcdevworks_portfolio.project_types_path) %></li>
|
102
|
+
<li class="<%= phc_menu_active_controller("phcdevworks_portfolio/project/posts#new") %>"><%= link_to("New Types", phcdevworks_portfolio.new_project_type_path) %></li>
|
93
103
|
</ul>
|
94
104
|
</li>
|
105
|
+
<!-- -PHC- Sidebar - Sidebar Navigation - PHCDevworks Portfolio -->
|
106
|
+
<% end %>
|
107
|
+
|
108
|
+
<% if defined?phcdevworks_tutorials %>
|
109
|
+
<!-- -PHC- Sidebar - Sidebar Navigation - PHCDevworks Tutorials -->
|
110
|
+
<li class="nav-header">Tutorial Posts</li>
|
95
111
|
<li class="has-sub">
|
96
112
|
<a href="javascript:;">
|
97
113
|
<b class="caret"></b>
|
98
|
-
<i class="fad fa-
|
99
|
-
<span>
|
114
|
+
<i class="fad fa-chalkboard-teacher"></i>
|
115
|
+
<span>Tutorial Posts</span>
|
100
116
|
</a>
|
101
117
|
<ul class="sub-menu">
|
102
|
-
<li class="<%= phc_menu_active_controller("
|
103
|
-
<li class="<%= phc_menu_active_controller("
|
118
|
+
<li class="<%= phc_menu_active_controller("phcdevworks_tutorials/tutorials/posts") %>"><%= link_to "Tutorial Index", phcdevworks_tutorials.tutorial_posts_path %></li>
|
119
|
+
<li class="<%= phc_menu_active_controller("phcdevworks_tutorials/tutorials/posts#new") %>"><%= link_to "New Tutorial", phcdevworks_tutorials.new_tutorial_post_path %></li>
|
104
120
|
</ul>
|
105
121
|
</li>
|
106
|
-
|
122
|
+
<li class="nav-header">Command Lists & Items</li>
|
123
|
+
<li class="has-sub">
|
124
|
+
<a href="javascript:;">
|
125
|
+
<b class="caret"></b>
|
126
|
+
<i class="fad fa-terminal"></i>
|
127
|
+
<span>Command Lists</span>
|
128
|
+
</a>
|
129
|
+
<ul class="sub-menu">
|
130
|
+
<li class="<%= phc_menu_active_controller("phcdevworks_tutorials/command/posts") %>"><%= link_to "List Index", phcdevworks_tutorials.command_posts_path %></li>
|
131
|
+
<li class="<%= phc_menu_active_controller("phcdevworks_tutorials/command/posts#new") %>"><%= link_to "New List", phcdevworks_tutorials.new_command_post_path %></li>
|
132
|
+
</ul>
|
133
|
+
</li>
|
134
|
+
<!-- -PHC- Sidebar - Sidebar Navigation - PHCDevworks Tutorials -->
|
107
135
|
<% end %>
|
108
136
|
|
109
|
-
<% if defined?
|
110
|
-
<!-- -PHC- Sidebar - Sidebar Navigation - PHCDevworks
|
111
|
-
<li class="nav-header">
|
137
|
+
<% if defined?phcdevworks_members %>
|
138
|
+
<!-- -PHC- Sidebar - Sidebar Navigation - PHCDevworks Members -->
|
139
|
+
<li class="nav-header">Membership Manager</li>
|
112
140
|
<li class="has-sub">
|
113
141
|
<a href="javascript:;">
|
114
142
|
<b class="caret"></b>
|
115
|
-
<i class="fad fa-
|
116
|
-
<span>
|
143
|
+
<i class="fad fa-users"></i>
|
144
|
+
<span>Member"s Data</span>
|
117
145
|
</a>
|
118
146
|
<ul class="sub-menu">
|
119
|
-
<li class="<%= phc_menu_active_controller("
|
120
|
-
<li class="<%= phc_menu_active_controller("
|
147
|
+
<li class="<%= phc_menu_active_controller("phcdevworks_members/member/profiles") %>"><%= link_to("Profile Index", phcdevworks_members.member_profiles_path) %></li>
|
148
|
+
<li class="<%= phc_menu_active_controller("phcdevworks_members/member/profiles#new") %>"><%= link_to("New Member Profile", phcdevworks_members.new_member_profile_path) %></li>
|
121
149
|
</ul>
|
122
150
|
</li>
|
151
|
+
<li class="nav-header">Member"s Directory</li>
|
123
152
|
<li class="has-sub">
|
124
153
|
<a href="javascript:;">
|
125
154
|
<b class="caret"></b>
|
126
|
-
<i class="fad fa-
|
127
|
-
<span>
|
155
|
+
<i class="fad fa-list-alt"></i>
|
156
|
+
<span>Member"s Directory</span>
|
128
157
|
</a>
|
129
158
|
<ul class="sub-menu">
|
130
|
-
<li class="<%= phc_menu_active_controller("
|
131
|
-
<li class="<%= phc_menu_active_controller("
|
159
|
+
<li class="<%= phc_menu_active_controller("phcdevworks_members/modules/categories") %>"><%= link_to("Directory Index", phcdevworks_members.directory_categories_path) %></li>
|
160
|
+
<li class="<%= phc_menu_active_controller("phcdevworks_members/modules/categories#new") %>"><%= link_to("New Directory Listing", phcdevworks_members.new_directory_category_path) %></li>
|
132
161
|
</ul>
|
133
162
|
</li>
|
134
|
-
<!-- -PHC- Sidebar - Sidebar Navigation - PHCDevworks
|
163
|
+
<!-- -PHC- Sidebar - Sidebar Navigation - PHCDevworks Members -->
|
135
164
|
<% end %>
|
136
165
|
|
137
166
|
<% if defined?phcdevworks_scripts %>
|
@@ -203,44 +232,32 @@
|
|
203
232
|
<!-- -PHC- Sidebar - Sidebar Navigation - PHCDevworks RealEstate -->
|
204
233
|
<% end %>
|
205
234
|
|
206
|
-
<% if defined?
|
207
|
-
<!-- -PHC- Sidebar - Sidebar Navigation - PHCDevworks
|
208
|
-
<li class="nav-header">
|
209
|
-
<li class="has-sub">
|
210
|
-
<a href="javascript:;">
|
211
|
-
<b class="caret"></b>
|
212
|
-
<i class="fad fa-chalkboard-teacher"></i>
|
213
|
-
<span>Tutorial Posts</span>
|
214
|
-
</a>
|
215
|
-
<ul class="sub-menu">
|
216
|
-
<li class="<%= phc_menu_active_controller("phcdevworks_tutorials/tutorials/posts") %>"><%= link_to "Tutorial Index", phcdevworks_tutorials.tutorial_posts_path %></li>
|
217
|
-
<li class="<%= phc_menu_active_controller("phcdevworks_tutorials/tutorials/posts#new") %>"><%= link_to "New Tutorial", phcdevworks_tutorials.new_tutorial_post_path %></li>
|
218
|
-
</ul>
|
219
|
-
</li>
|
235
|
+
<% if defined?phcdevworks_core_modules %>
|
236
|
+
<!-- -PHC- Sidebar - Sidebar Navigation - PHCDevworks Core Modules -->
|
237
|
+
<li class="nav-header">Core Modules</li>
|
220
238
|
<li class="has-sub">
|
221
239
|
<a href="javascript:;">
|
222
240
|
<b class="caret"></b>
|
223
241
|
<i class="fad fa-sitemap"></i>
|
224
|
-
<span>
|
242
|
+
<span>Categories</span>
|
225
243
|
</a>
|
226
244
|
<ul class="sub-menu">
|
227
|
-
<li class="<%= phc_menu_active_controller("
|
228
|
-
<li class="<%= phc_menu_active_controller("
|
245
|
+
<li class="<%= phc_menu_active_controller("phcdevworks_core_modules/post/categories") %>"><%= link_to("Category Index", phcdevworks_core_modules.post_categories_path) %></li>
|
246
|
+
<li class="<%= phc_menu_active_controller("phcdevworks_core_modules/post/categories#new") %>"><%= link_to("New Category", phcdevworks_core_modules.new_post_category_path) %></li>
|
229
247
|
</ul>
|
230
248
|
</li>
|
231
|
-
<li class="nav-header">Command Lists & Items</li>
|
232
249
|
<li class="has-sub">
|
233
250
|
<a href="javascript:;">
|
234
251
|
<b class="caret"></b>
|
235
|
-
<i class="fad fa-
|
236
|
-
<span>
|
252
|
+
<i class="fad fa-analytics"></i>
|
253
|
+
<span>Marketing</span>
|
237
254
|
</a>
|
238
255
|
<ul class="sub-menu">
|
239
|
-
<li class="<%= phc_menu_active_controller("
|
240
|
-
<li class="<%= phc_menu_active_controller("
|
256
|
+
<li class="<%= phc_menu_active_controller("phcdevworks_core_modules/marketing/optimizations") %>"><%= link_to("SEO Data Index", phcdevworks_core_modules.marketing_optimizations_path) %></li>
|
257
|
+
<li class="<%= phc_menu_active_controller("phcdevworks_core_modules/marketing/optimizations#new") %>"><%= link_to("Add SEO Data", phcdevworks_core_modules.new_marketing_optimization_path) %></li>
|
241
258
|
</ul>
|
242
259
|
</li>
|
243
|
-
<!-- -PHC- Sidebar - Sidebar Navigation - PHCDevworks
|
260
|
+
<!-- -PHC- Sidebar - Sidebar Navigation - PHCDevworks Core Modules -->
|
244
261
|
<% end %>
|
245
262
|
|
246
263
|
<% if current_user && current_user.admin? %>
|