phcpress 53.0.0 → 53.1.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2e314ebf9bcd8a289d55ab874d7da4b3f5592280deac48c85439ccf25a536741
4
- data.tar.gz: 621175ae3cb40b705735f0cf73a58e39f4eb9a9eb0da1eee86f2bce43093541a
3
+ metadata.gz: 17241937742639f830c660051c1b7ab7585cb62290cab05f7e1d2aff68f5a630
4
+ data.tar.gz: 45f8293d2239a569548f21dc1cbc708ad50691544f08666fbe8357ca29f05bb0
5
5
  SHA512:
6
- metadata.gz: 5dc846ad9e469f3d16bc46fdae296fa963b1bc2e2ad2fc3682034d3c5392036d6b746b860c6f9de3d5755ac04871a74ec97ff0b19b5a8cb78dea03b8fe4d4800
7
- data.tar.gz: 620ea7953ab7e0db2a5dd54970d5c0958070c76b6e4bacc0955526a559191a6261afa7331c7e6d6f473a0f21d687d01d8e075b9384577a8df29ab5ce3dea8104
6
+ metadata.gz: a9f0bd71eadea242d80bd50385e3b14f5e51d3a4d65ccd42516dcd79004e3946bc7141380a70170c3d4cfb4c992c7804c8537e769aac8e05bc56f1c0eae30529
7
+ data.tar.gz: 953735fc3785b911a65041af95ff52f52bbe0fbcde7935ca3a9a2997c88c12558f7a924eac6010e2b2f1bfd153e7b3f35beee9a8404fef73af55babe73254f25
@@ -34,7 +34,7 @@ module Phcpress
34
34
  @article_category = Phcpress::Article::Category.new(article_category_params)
35
35
  @article_category.user_id = current_user.id
36
36
  if @article_category.save
37
- redirect_to article_categories_url, notice: 'Category was successfully created.'
37
+ redirect_to article_categories_url, :flash => { :success => 'Category was successfully created.' }
38
38
  else
39
39
  render :new
40
40
  end
@@ -43,7 +43,7 @@ module Phcpress
43
43
  # PATCH/PUT
44
44
  def update
45
45
  if @article_category.update(article_category_params)
46
- redirect_to article_categories_url, notice: 'Category was successfully updated.'
46
+ redirect_to article_categories_url, :flash => { :success => 'Category was successfully updated.' }
47
47
  else
48
48
  render :edit
49
49
  end
@@ -52,7 +52,7 @@ module Phcpress
52
52
  # DELETE
53
53
  def destroy
54
54
  @article_category.destroy
55
- redirect_to article_categories_url, notice: 'Category was successfully destroyed.'
55
+ redirect_to article_categories_url, :flash => { :success => 'Category was successfully destroyed.' }
56
56
  end
57
57
 
58
58
  private
@@ -34,7 +34,7 @@ module Phcpress
34
34
  @article_post = Phcpress::Article::Post.new(article_post_params)
35
35
  @article_post.user_id = current_user.id
36
36
  if @article_post.save
37
- redirect_to article_posts_url, notice: 'Post was successfully created.'
37
+ redirect_to article_posts_url, :flash => { :success => 'Post was successfully created.' }
38
38
  else
39
39
  render :new
40
40
  end
@@ -43,7 +43,7 @@ module Phcpress
43
43
  # PATCH/PUT
44
44
  def update
45
45
  if @article_post.update(article_post_params)
46
- redirect_to article_posts_url, notice: 'Post was successfully updated.'
46
+ redirect_to article_posts_url, :flash => { :success => 'Post was successfully updated.' }
47
47
  else
48
48
  render :edit
49
49
  end
@@ -52,7 +52,7 @@ module Phcpress
52
52
  # DELETE
53
53
  def destroy
54
54
  @article_post.destroy
55
- redirect_to article_posts_url, notice: 'Post was successfully destroyed.'
55
+ redirect_to article_posts_url, :flash => { :error => 'Post was successfully destroyed.' }
56
56
  end
57
57
 
58
58
  private
@@ -48,8 +48,9 @@
48
48
  <div class="sidebar-bg"></div>
49
49
  <!-- Page Sidebar -->
50
50
 
51
- <!-- Page Content -->
51
+ <!-- Page Content -->
52
52
  <div id="content" class="content">
53
+ <%= render 'phcnotifi/default/notifications' %>
53
54
  <%= yield %>
54
55
  </div>
55
56
  <!-- Page Content -->
@@ -65,6 +66,7 @@
65
66
 
66
67
  <!-- JavaScript -->
67
68
  <%= javascript_include_tag "phcpress/application", 'data-turbolinks-track': 'reload' %>
69
+ <script src="https://cdn.ckeditor.com/4.10.0/full/ckeditor.js"></script>
68
70
  <!-- JavaScript -->
69
71
 
70
72
  <!-- JavaScript Loader -->
@@ -1,4 +1,4 @@
1
- <!-- Sidebar for Users and Admin -->
1
+ <!-- Sidebar for PHCDevworks Engines -->
2
2
  <div data-scrollbar="true" data-height="100%">
3
3
 
4
4
  <!-- Sidebar - User Profile Menu -->
@@ -34,11 +34,29 @@
34
34
  <% end %>
35
35
  </ul>
36
36
  <!-- Sidebar - User Profile Menu -->
37
+
37
38
  <!-- Sidebar - Sidebar Navigation -->
38
39
  <ul class="nav">
39
-
40
+
41
+ <% if defined?phccodesnipper %>
42
+ <!-- Sidebar - Sidebar Navigation - PHCCodeSnipper -->
43
+ <li class="nav-header">Code Snippets</li>
44
+ <li class="has-sub">
45
+ <a href="javascript:;">
46
+ <b class="caret"></b>
47
+ <i class="fas fa-newspaper"></i>
48
+ <span>Code Snippets</span>
49
+ </a>
50
+ <ul class="sub-menu">
51
+ <li class="<%= phc_menus_active_controller('phccodesnipper/script/posts') %>"><%= link_to 'Snippet Index', phccodesnipper.script_snippets_path %></li>
52
+ <li class="<%= phc_menus_active_controller('phccodesnipper/script/posts#new') %>"><%= link_to 'New Snippet', phccodesnipper.new_script_snippet_path %></li>
53
+ </ul>
54
+ </li>
55
+ <!-- Sidebar - Sidebar Navigation - PHCCodeSnipper -->
56
+ <% end %>
57
+
40
58
  <% if defined?phcpress %>
41
- <!-- Sidebar - Sidebar Navigation - PHCPress(Pro) -->
59
+ <!-- Sidebar - Sidebar Navigation - PHCPress -->
42
60
  <li class="nav-header">Article Management</li>
43
61
  <li class="has-sub">
44
62
  <a href="javascript:;">
@@ -62,11 +80,11 @@
62
80
  <li class="<%= phc_menus_active_controller('phcpress/article/categories#new') %>"><%= link_to('New Category', phcpress.new_article_category_path) %></li>
63
81
  </ul>
64
82
  </li>
65
- <!-- Sidebar - Sidebar Navigation - PHCPress(Pro) -->
83
+ <!-- Sidebar - Sidebar Navigation - PHCPress -->
66
84
  <% end %>
67
85
 
68
86
  <% if defined?phcmembers %>
69
- <!-- Sidebar - Sidebar Navigation - PHCPress(Pro) -->
87
+ <!-- Sidebar - Sidebar Navigation - PHCMembers -->
70
88
  <li class="nav-header">Membership Manager</li>
71
89
  <li class="has-sub">
72
90
  <a href="javascript:;">
@@ -90,11 +108,11 @@
90
108
  <li class="<%= phc_menus_active_controller('phcmembers/directory/categories#new') %>"><%= link_to('New Directory Listing', phcmembers.new_directory_category_path) %></li>
91
109
  </ul>
92
110
  </li>
93
- <!-- Sidebar - Sidebar Navigation - PHCPress(Pro) -->
111
+ <!-- Sidebar - Sidebar Navigation - PHCMembers -->
94
112
  <% end %>
95
113
 
96
114
  <% if defined?phcscriptcdn %>
97
- <!-- Sidebar - Sidebar Navigation - PHCScriptCDN(Pro) -->
115
+ <!-- Sidebar - Sidebar Navigation - PHCScriptCDN -->
98
116
  <li class="nav-header">Script Management</li>
99
117
  <li class="has-sub">
100
118
  <a href="javascript:;">
@@ -104,7 +122,7 @@
104
122
  </a>
105
123
  <ul class="sub-menu">
106
124
  <li class="<%= phc_menus_active_controller('phcscriptcdn/script/listings') %>"><%= link_to "All Script Listings", phcscriptcdn.script_listings_path %></li>
107
- <li class="<%= phc_menus_active_controller('phcscriptcdn/script/listings#new') %>"><%= link_to "Add a New Listing", phcscriptcdn.new_script_listing_path %></li>
125
+ <li class="<%= phc_menus_active_controller('phcscriptcdn/script/listings#new') %>"><%= link_to "Add a New Listing", phcscriptcdn.new_script_listing_path %></li>
108
126
  </ul>
109
127
  </li>
110
128
  <li class="has-sub">
@@ -114,41 +132,58 @@
114
132
  <span>Script Extras</span>
115
133
  </a>
116
134
  <ul class="sub-menu">
117
- <li class="<%= phc_menus_active_controller('phcscriptcdn/script/authors') %>"><%= link_to "Script Authors", phcscriptcdn.script_authors_path %></li>
118
- <li class="<%= phc_menus_active_controller('phcscriptcdn/script/licences') %>"><%= link_to "Script Licences", phcscriptcdn.script_licences_path %></li>
119
- <li class="<%= phc_menus_active_controller('phcscriptcdn/script/extensions') %>"><%= link_to "Script Extensions", phcscriptcdn.script_extensions_path %></li>
135
+ <li class="<%= phc_menus_active_controller('phcscriptcdn/script/authors') %>"><%= link_to "Script Authors", phcscriptcdn.script_authors_path %></li>
136
+ <li class="<%= phc_menus_active_controller('phcscriptcdn/script/licences') %>"><%= link_to "Script Licences", phcscriptcdn.script_licences_path %></li>
137
+ <li class="<%= phc_menus_active_controller('phcscriptcdn/script/extensions') %>"><%= link_to "Script Extensions", phcscriptcdn.script_extensions_path %></li>
120
138
  <li class="<%= phc_menus_active_controller('phcscriptcdn/script/versions') %>"><%= link_to "Script Versions", phcscriptcdn.script_versions_path %></li>
121
139
  </ul>
122
140
  </li>
123
- <!-- Sidebar - Sidebar Navigation - PHCScriptCDN(Pro) -->
141
+ <!-- Sidebar - Sidebar Navigation - PHCScriptCDN -->
142
+ <% end %>
143
+
144
+ <% if current_user && current_user.admin? %>
145
+ <!-- Sidebar - Sidebar Navigation - PHCAccounts Admin Options -->
146
+ <li class="nav-header">User Administration</li>
147
+ <li class="has-sub">
148
+ <a href="javascript:;">
149
+ <b class="caret"></b>
150
+ <i class="fas fa-user"></i>
151
+ <span>Admin</span>
152
+ </a>
153
+ <ul class="sub-menu">
154
+ <li class="<%= phc_menus_active_controller('phcaccounts/admin/users') %>"><%= link_to 'User List', phcaccounts.admin_users_path %></li>
155
+ </ul>
156
+ </li>
157
+ <!-- Sidebar - Sidebar Navigation - PHCAccounts Admin Options -->
124
158
  <% end %>
125
159
 
126
160
  <% if current_user %>
127
- <!-- Sidebar - Sidebar Navigation - PHCAccounts -->
128
- <li class="nav-header">Account Settings</li>
161
+ <!-- Sidebar - Sidebar Navigation - PHCAccounts User Options -->
162
+ <li class="nav-header">Your Account</li>
129
163
  <li class="has-sub">
130
164
  <a href="javascript:;">
131
165
  <b class="caret"></b>
132
166
  <i class="fas fa-user"></i>
133
- <span>Accounts Dashboard</span>
167
+ <span>Accounts Settings</span>
134
168
  </a>
135
169
  <ul class="sub-menu">
136
- <li class="<%= phc_menus_active_controller('phcaccounts/admin/edit') %>"><%= link_to('Settings', phcaccounts.edit_user_registration_path) %></li>
137
- <li class="<%= phc_menus_active_controller('phcaccounts/admin/new') %>"><%= link_to('Logout', phcaccounts.destroy_user_session_path, method: :delete) %></li>
170
+ <li class="<%= phc_menus_active_controller('phcaccounts/user/edit') %>"><%= link_to 'Settings', phcaccounts.edit_user_registration_path %></li>
171
+ <li class="<%= phc_menus_active_controller('phcaccounts/user/new') %>"><%= link_to 'Logout', phcaccounts.destroy_user_session_path, method: :delete %></li>
138
172
  </ul>
139
173
  </li>
140
- <!-- Sidebar - Sidebar Navigation - PHCAccounts -->
141
- <!-- Sidebar - Sidebar Minifier -->
142
- <li>
143
- <a href="javascript:;" class="sidebar-minify-btn" data-click="sidebar-minify">
144
- <i class="fa fa-angle-double-left"></i>
145
- </a>
146
- </li>
147
- <!-- Sidebar - Sidebar Minifier -->
174
+ <!-- Sidebar - Sidebar Navigation - PHCAccounts User Options -->
148
175
  <% end %>
176
+
177
+ <!-- Sidebar - Sidebar Minifier -->
178
+ <li>
179
+ <a href="javascript:;" class="sidebar-minify-btn" data-click="sidebar-minify">
180
+ <i class="fa fa-angle-double-left"></i>
181
+ </a>
182
+ </li>
183
+ <!-- Sidebar - Sidebar Minifier -->
149
184
 
150
185
  </ul>
151
186
  <!-- Sidebar - Sidebar Navigation -->
152
187
 
153
188
  </div>
154
- <!-- Sidebar for Users and Admin -->
189
+ <!-- Sidebar for PHCDevworks Engines -->
@@ -1,10 +1,15 @@
1
1
  <%= form_with(model: article_category, local: true) do |form| %>
2
2
 
3
+ <!-- PHCNotifi Render Validation -->
4
+ <%= render 'phcnotifi/default/validations', :object => @article_category %>
5
+ <!-- PHCNotifi Render Validation -->
6
+
3
7
  <!-- PHCPress - Category Form -->
4
8
  <div class="form-group">
5
9
  <%= form.label :category_name, "Category Name" %>
6
10
  <%= form.text_field :category_name, class: "form-control" %>
7
11
  </div>
12
+
8
13
  <div class="actions">
9
14
  <%= form.submit class: "btn btn-primary" %>
10
15
  </div>
@@ -50,7 +50,7 @@
50
50
  <div class="col-md-9 ">
51
51
 
52
52
  <!-- PHCNotifi Render Validation -->
53
- <%= render 'phcnotifi/validations', :object => @article_post %>
53
+ <%= render 'phcnotifi/default/validations', :object => @article_post %>
54
54
  <!-- PHCNotifi Render Validation -->
55
55
 
56
56
  <div class="panel panel-inverse">
@@ -1,3 +1,3 @@
1
1
  module Phcpress
2
- VERSION = '53.0.0'
2
+ VERSION = '53.1.0'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: phcpress
3
3
  version: !ruby/object:Gem::Version
4
- version: 53.0.0
4
+ version: 53.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - BradPotts
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-05-10 00:00:00.000000000 Z
11
+ date: 2019-05-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -232,14 +232,14 @@ dependencies:
232
232
  requirements:
233
233
  - - "~>"
234
234
  - !ruby/object:Gem::Version
235
- version: '4.0'
235
+ version: '5.0'
236
236
  type: :runtime
237
237
  prerelease: false
238
238
  version_requirements: !ruby/object:Gem::Requirement
239
239
  requirements:
240
240
  - - "~>"
241
241
  - !ruby/object:Gem::Version
242
- version: '4.0'
242
+ version: '5.0'
243
243
  - !ruby/object:Gem::Dependency
244
244
  name: phcmenus
245
245
  requirement: !ruby/object:Gem::Requirement
@@ -260,14 +260,14 @@ dependencies:
260
260
  requirements:
261
261
  - - "~>"
262
262
  - !ruby/object:Gem::Version
263
- version: '45.0'
263
+ version: '47.2'
264
264
  type: :runtime
265
265
  prerelease: false
266
266
  version_requirements: !ruby/object:Gem::Requirement
267
267
  requirements:
268
268
  - - "~>"
269
269
  - !ruby/object:Gem::Version
270
- version: '45.0'
270
+ version: '47.2'
271
271
  - !ruby/object:Gem::Dependency
272
272
  name: phctitleseo
273
273
  requirement: !ruby/object:Gem::Requirement
@@ -456,14 +456,14 @@ dependencies:
456
456
  requirements:
457
457
  - - "~>"
458
458
  - !ruby/object:Gem::Version
459
- version: '37.0'
459
+ version: '38.2'
460
460
  type: :runtime
461
461
  prerelease: false
462
462
  version_requirements: !ruby/object:Gem::Requirement
463
463
  requirements:
464
464
  - - "~>"
465
465
  - !ruby/object:Gem::Version
466
- version: '37.0'
466
+ version: '38.2'
467
467
  - !ruby/object:Gem::Dependency
468
468
  name: sqlite3
469
469
  requirement: !ruby/object:Gem::Requirement