phcdevworks_tutorials 7.0.0 → 8.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (23) hide show
  1. checksums.yaml +4 -4
  2. data/app/controllers/phcdevworks_tutorials/command/items_controller.rb +5 -5
  3. data/app/controllers/phcdevworks_tutorials/command/posts_controller.rb +21 -10
  4. data/app/controllers/phcdevworks_tutorials/tutorial/posts_controller.rb +1 -1
  5. data/app/controllers/phcdevworks_tutorials/tutorial/steps_controller.rb +4 -4
  6. data/app/models/phcdevworks_tutorials/command/item.rb +2 -1
  7. data/app/models/phcdevworks_tutorials/command/post.rb +2 -1
  8. data/app/models/phcdevworks_tutorials/tutorial/post.rb +2 -1
  9. data/app/models/phcdevworks_tutorials/tutorial/step.rb +3 -1
  10. data/app/views/layouts/phcdevworks_tutorials/components/backend/sidebars/_side_menu.html.erb +15 -4
  11. data/app/views/phcdevworks_tutorials/command/items/_form.html.erb +5 -0
  12. data/app/views/phcdevworks_tutorials/command/items/index.html.erb +1 -3
  13. data/app/views/phcdevworks_tutorials/command/posts/_form.html.erb +7 -2
  14. data/app/views/phcdevworks_tutorials/command/posts/index.html.erb +1 -1
  15. data/app/views/phcdevworks_tutorials/command/posts/show.html.erb +71 -11
  16. data/app/views/phcdevworks_tutorials/tutorial/posts/_form.html.erb +6 -1
  17. data/app/views/phcdevworks_tutorials/tutorial/steps/_form.html.erb +5 -1
  18. data/app/views/phcdevworks_tutorials/tutorial/steps/index.html.erb +1 -0
  19. data/config/routes.rb +3 -3
  20. data/db/migrate/20200702121306_remove_images_cols_from_phcdevworks_tutorials.rb +10 -0
  21. data/db/migrate/20200707115652_create_phcdevworks_tutorials_add_seo.rb +10 -0
  22. data/lib/phcdevworks_tutorials/version.rb +1 -1
  23. metadata +8 -6
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e21c674e628b385a018fce63296af1826532834c0632cb1057642c3a1b34ddda
4
- data.tar.gz: 768b4439f963ce9fcd9c8107c3d7163a54aff52b9d12a2a5f5051dbd9213ab80
3
+ metadata.gz: b04ca593dabd57ca5ea293b45a6c806b42c3662f7e0ce305e8c7573be7d498bd
4
+ data.tar.gz: 981889b3faa771d735c211a644bd0fad562f46c1f27601d484bee6da43616bcc
5
5
  SHA512:
6
- metadata.gz: 94108b0fd5cd215ff88b0dcb2ec5f488f4e2d4b7777df2a9571f831eacf861bde7a6e36ee0bf81bd6c2111f9fa40d0dd75413ece7ef8b16dafa96ba65b199ee7
7
- data.tar.gz: 11ce722da6483fb21169c553b564e0f5380be150090b4e9dfdc93e37fdc7ebb5a2125b011e22ae2d6aca8b0f6b0f19c644e18ba17cb447df78b55c43c33fb814
6
+ metadata.gz: 19597f5a86a126c6e98d5f3fc39bf0d3b177a72ea308ef7eaf114a221f4a203e4b7aeea43b2feab3024178a39462ddd4d96f382d80d40a5266951a20aa3066cb
7
+ data.tar.gz: a4e96e860cd211a2e646567ba9e26528b428e854ba419c0b3178bd60af7ddb1bb535cc17a65a2a47da1ece9695b42e31c81b5f8da2fe66c6c0d5274e24881d0c
@@ -12,7 +12,7 @@ module PhcdevworksTutorials
12
12
  # GET /post/items
13
13
  # GET /post/items.json
14
14
  def index
15
- @command_items = command_post.items.all
15
+ @command_items = command_post.items.order('item_title ASC')
16
16
  end
17
17
 
18
18
  # GET /post/items/1
@@ -40,7 +40,7 @@ module PhcdevworksTutorials
40
40
  @command_item.org_id = current_user.org_id
41
41
  respond_to do |format|
42
42
  if @command_item.save
43
- format.html { redirect_to command_post_items_path, :flash => { :success => 'Command Item has been Added' }}
43
+ format.html { redirect_to command_post_items_url, :flash => { :success => 'Command Item has been Added' }}
44
44
  format.json { render :show, status: :created, location: @command_item }
45
45
  else
46
46
  format.html { render :new }
@@ -55,7 +55,7 @@ module PhcdevworksTutorials
55
55
  @command_post = Command::Post.friendly.find(params[:post_id])
56
56
  respond_to do |format|
57
57
  if @command_item.update(command_item_params)
58
- format.html { redirect_to command_post_items_path, :flash => { :notice => 'Command Item has been Updated.' }}
58
+ format.html { redirect_to command_post_items_url, :flash => { :notice => 'Command Item has been Updated.' }}
59
59
  format.json { render :show, status: :ok, location: @command_item }
60
60
  else
61
61
  format.html { render :edit }
@@ -70,7 +70,7 @@ module PhcdevworksTutorials
70
70
  @command_item = command_post.items.find(params[:id])
71
71
  @command_item.destroy
72
72
  respond_to do |format|
73
- format.html { redirect_to command_post_items_path, :flash => { :error => 'Command Item has been Removed' }}
73
+ format.html { redirect_to command_post_items_url, :flash => { :error => 'Command Item has been Removed' }}
74
74
  format.json { head :no_content }
75
75
  end
76
76
  end
@@ -88,7 +88,7 @@ module PhcdevworksTutorials
88
88
 
89
89
  # Whitelist
90
90
  def command_item_params
91
- params.require(:command_item).permit(:item_title, :item_description, :item_copy_command, :item_image, :slug, :user_id, :org_id)
91
+ params.require(:command_item).permit(:item_title, :item_description, :item_copy_command, :item_image, :slug, :optimization_id, :user_id, :org_id)
92
92
  end
93
93
 
94
94
  end
@@ -32,26 +32,37 @@ module PhcdevworksTutorials
32
32
  @command_post = Command::Post.new(command_post_params)
33
33
  @command_post.user_id = current_user.id
34
34
  @command_post.org_id = current_user.org_id
35
- if @command_post.save
36
- redirect_to @command_post, notice: 'Post was successfully created.'
37
- else
38
- render :new
35
+ respond_to do |format|
36
+ if @command_post.save
37
+ format.html { redirect_to command_posts_path, :flash => { :success => 'Command Post has been Added.' }}
38
+ format.json { render :show, status: :created, location: @command_post }
39
+ else
40
+ format.html { render :new }
41
+ format.json { render json: @command_post.errors, status: :unprocessable_entity }
42
+ end
39
43
  end
40
44
  end
41
45
 
42
46
  # PATCH/PUT /command/posts/1
43
47
  def update
44
- if @command_post.update(command_post_params)
45
- redirect_to @command_post, notice: 'Post was successfully updated.'
46
- else
47
- render :edit
48
+ respond_to do |format|
49
+ if @command_post.update(command_post_params)
50
+ format.html { redirect_to command_posts_path, :flash => { :notice => 'Command Post has been Updated.' }}
51
+ format.json { render :show, status: :ok, location: @command_post }
52
+ else
53
+ format.html { render :edit }
54
+ format.json { render json: @command_post.errors, status: :unprocessable_entity }
55
+ end
48
56
  end
49
57
  end
50
58
 
51
59
  # DELETE /command/posts/1
52
60
  def destroy
53
61
  @command_post.destroy
54
- redirect_to command_posts_url, notice: 'Post was successfully destroyed.'
62
+ respond_to do |format|
63
+ format.html { redirect_to command_posts_path, :flash => { :error => 'Command Post has been Removed.' }}
64
+ format.json { head :no_content }
65
+ end
55
66
  end
56
67
 
57
68
  private
@@ -63,7 +74,7 @@ module PhcdevworksTutorials
63
74
 
64
75
  # Whitelist
65
76
  def command_post_params
66
- params.require(:command_post).permit(:post_title, :post_description, :post_status, :post_image, :slug, :user_id, :org_id)
77
+ params.require(:command_post).permit(:post_title, :post_description, :post_status, :post_image, :slug, :optimization_id, :user_id, :org_id, category_ids: [])
67
78
  end
68
79
 
69
80
  end
@@ -74,7 +74,7 @@ module PhcdevworksTutorials
74
74
 
75
75
  # Whitelist
76
76
  def tutorial_post_params
77
- params.require(:tutorial_post).permit(:post_title, :post_description, :post_status, :post_image, :slug, :user_id, :org_id, category_ids: [])
77
+ params.require(:tutorial_post).permit(:post_title, :post_description, :post_status, :post_image, :slug, :optimization_id, :user_id, :org_id, category_ids: [])
78
78
  end
79
79
 
80
80
  end
@@ -36,7 +36,7 @@ module PhcdevworksTutorials
36
36
  @tutorial_step.org_id = current_user.org_id
37
37
  respond_to do |format|
38
38
  if @tutorial_step.save
39
- format.html { redirect_to tutorial_post_steps_url, :flash => { :success => 'Member Listing has been Added' }}
39
+ format.html { redirect_to tutorial_post_steps_url, :flash => { :success => 'Tutorial Step has been Added' }}
40
40
  format.json { render :show, status: :created, location: @tutorial_step }
41
41
  else
42
42
  format.html { render :new }
@@ -50,7 +50,7 @@ module PhcdevworksTutorials
50
50
  @tutorial_post = Tutorial::Post.friendly.find(params[:post_id])
51
51
  respond_to do |format|
52
52
  if @tutorial_step.update(tutorial_step_params)
53
- format.html { redirect_to tutorial_post_steps_url, :flash => { :notice => 'Member Listing has been Updated.' }}
53
+ format.html { redirect_to tutorial_post_steps_url, :flash => { :notice => 'Tutorial Step has been Updated.' }}
54
54
  format.json { render :show, status: :ok, location: @tutorial_step }
55
55
  else
56
56
  format.html { render :edit }
@@ -64,7 +64,7 @@ module PhcdevworksTutorials
64
64
  @tutorial_step = tutorial_post.steps.find(params[:id])
65
65
  @tutorial_step.destroy
66
66
  respond_to do |format|
67
- format.html { redirect_to tutorial_post_steps_url, :flash => { :error => 'Member Listing has been Removed' }}
67
+ format.html { redirect_to tutorial_post_steps_url, :flash => { :error => 'Tutorial Step has been Removed' }}
68
68
  format.json { head :no_content }
69
69
  end
70
70
  end
@@ -82,7 +82,7 @@ module PhcdevworksTutorials
82
82
 
83
83
  # Whitelist
84
84
  def tutorial_step_params
85
- params.require(:tutorial_step).permit(:step_number, :step_title, :step_description, :step_copy_instruction, :step_image, :post_id, :slug, :user_id, :org_id)
85
+ params.require(:tutorial_step).permit(:step_number, :step_title, :step_description, :step_copy_instruction, :step_image, :optimization_id, :post_id, :slug, :user_id, :org_id)
86
86
  end
87
87
 
88
88
  end
@@ -8,9 +8,10 @@ module PhcdevworksTutorials
8
8
  has_one_attached :item_image
9
9
 
10
10
  # Relationships
11
+ belongs_to :user, class_name: "PhcdevworksAccounts::User"
11
12
  belongs_to :post, class_name: "Command::Post"
12
13
  has_many :categories, class_name: "Tutorial::Category", :through => :post
13
- belongs_to :user, class_name: "PhcdevworksAccounts::User"
14
+ belongs_to :optimization, class_name: "PhcdevworksCoreModules::Marketing::Optimization", optional: true
14
15
 
15
16
  end
16
17
  end
@@ -12,7 +12,8 @@ module PhcdevworksTutorials
12
12
 
13
13
  # Relationships
14
14
  belongs_to :user, class_name: "PhcdevworksAccounts::User"
15
- has_and_belongs_to_many :categories, class_name: "PhcdevworksCoreModules::Modules::Category", :join_table => "phcdevworks_tutorials_categories_commands"
15
+ belongs_to :optimization, class_name: "PhcdevworksCoreModules::Marketing::Optimization", optional: true
16
+ has_and_belongs_to_many :categories, class_name: "PhcdevworksCoreModules::Post::Category", :join_table => "phcdevworks_tutorials_categories_commands"
16
17
  has_many :items, class_name: "Command::Item"
17
18
 
18
19
  # Form Fields Validation
@@ -12,8 +12,9 @@ module PhcdevworksTutorials
12
12
 
13
13
  # Relationships
14
14
  belongs_to :user, class_name: "PhcdevworksAccounts::User"
15
+ belongs_to :optimization, class_name: "PhcdevworksCoreModules::Marketing::Optimization", optional: true
15
16
  has_many :steps, class_name: "Tutorial::Step"
16
- has_and_belongs_to_many :categories, class_name: "PhcdevworksCoreModules::Modules::Category", :join_table => "phcdevworks_tutorials_categories_posts"
17
+ has_and_belongs_to_many :categories, class_name: "PhcdevworksCoreModules::Post::Category", :join_table => "phcdevworks_tutorials_categories_posts"
17
18
 
18
19
  # Form Fields Validation
19
20
  validates :post_title,
@@ -8,9 +8,11 @@ module PhcdevworksTutorials
8
8
  has_one_attached :step_image
9
9
 
10
10
  # Relationships
11
+ belongs_to :user, class_name: "PhcdevworksAccounts::User"
11
12
  belongs_to :post, class_name: "Tutorial::Post"
13
+ belongs_to :optimization, class_name: "PhcdevworksCoreModules::Marketing::Optimization", optional: true
12
14
  has_many :categories, class_name: "Tutorial::Category", :through => :post
13
- belongs_to :user, class_name: "PhcdevworksAccounts::User"
15
+
14
16
 
15
17
  end
16
18
  end
@@ -113,7 +113,7 @@
113
113
  <% end %>
114
114
 
115
115
  <% if defined?phcdevworks_core_modules %>
116
- <!-- -PHC- Sidebar - Sidebar Navigation - PHCDevworks Press -->
116
+ <!-- -PHC- Sidebar - Sidebar Navigation - PHCDevworks Core Modules -->
117
117
  <li class="nav-header">Core Modules</li>
118
118
  <li class="has-sub">
119
119
  <a href="javascript:;">
@@ -122,11 +122,22 @@
122
122
  <span>Categories</span>
123
123
  </a>
124
124
  <ul class="sub-menu">
125
- <li class="<%= phc_menu_active_controller("phcdevworks_core_modules/modules/categories") %>"><%= link_to("Category Index", phcdevworks_core_modules.modules_categories_path) %></li>
126
- <li class="<%= phc_menu_active_controller("phcdevworks_core_modules/modules/categories#new") %>"><%= link_to("New Category", phcdevworks_core_modules.new_modules_category_path) %></li>
125
+ <li class="<%= phc_menu_active_controller("phcdevworks_core_modules/post/categories") %>"><%= link_to("Category Index", phcdevworks_core_modules.post_categories_path) %></li>
126
+ <li class="<%= phc_menu_active_controller("phcdevworks_core_modules/post/categories#new") %>"><%= link_to("New Category", phcdevworks_core_modules.new_post_category_path) %></li>
127
127
  </ul>
128
128
  </li>
129
- <!-- -PHC- Sidebar - Sidebar Navigation - PHCDevworks Press -->
129
+ <li class="has-sub">
130
+ <a href="javascript:;">
131
+ <b class="caret"></b>
132
+ <i class="fad fa-analytics"></i>
133
+ <span>Marketing</span>
134
+ </a>
135
+ <ul class="sub-menu">
136
+ <li class="<%= phc_menu_active_controller("phcdevworks_core_modules/marketing/optimizations") %>"><%= link_to("SEO Data Index", phcdevworks_core_modules.marketing_optimizations_path) %></li>
137
+ <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>
138
+ </ul>
139
+ </li>
140
+ <!-- -PHC- Sidebar - Sidebar Navigation - PHCDevworks Core Modules -->
130
141
  <% end %>
131
142
 
132
143
  <% if defined?phcdevworks_members %>
@@ -29,6 +29,11 @@
29
29
  <% if form.object.item_image.attached? %>
30
30
  <%= image_tag main_app.url_for(form.object.item_image), class: "img-responsive img-thumbnail" %>
31
31
  <% end %>
32
+
33
+ <div class="form-group">
34
+ <label>Attach SEO Data</label>
35
+ <%= collection_select(:command_item, :optimization_id, PhcdevworksCoreModules::Marketing::Optimization.order("seo_title"), :id, :seo_title, {}, {class: "form-control"}) %>
36
+ </div>
32
37
  <!-- Form Input Fields -->
33
38
 
34
39
  <!-- Form Submition Button -->
@@ -40,7 +40,6 @@
40
40
  <tr>
41
41
  <th>Item Name</th>
42
42
  <th>Description</th>
43
- <th>Command</th>
44
43
  <th></th>
45
44
  </tr>
46
45
  </thead>
@@ -49,8 +48,7 @@
49
48
  <% @command_items.each do |command_item| %>
50
49
  <tr>
51
50
  <td><%= command_item.item_title %></td>
52
- <td><%= command_item.item_description %></td>
53
- <td><%= command_item.item_copy_command %></td>
51
+ <td><%= truncate(command_item.item_description, :length => 80, :escape => false) %></td>
54
52
  <td>
55
53
  <div class="btn-group d-flex" role="group">
56
54
  <%= link_to "Update Item", edit_command_post_item_path(command_item.post, command_item), class: "btn btn-primary btn-xs" %>
@@ -13,7 +13,7 @@
13
13
 
14
14
  <div class="form-group">
15
15
  <%= form.label :post_description, "Command List Description" %>
16
- <%= form.text_area :post_description, class: "form-control" %>
16
+ <%= form.text_area :post_description, class: "form-control editor" %>
17
17
  </div>
18
18
 
19
19
  <div class="form-group">
@@ -33,12 +33,17 @@
33
33
  <div class="form-group">
34
34
  <label>Select a Category</label>
35
35
  <div class="panel-body">
36
- <%= form.collection_check_boxes :category_ids, PhcdevworksCoreModules::Modules::Category.all, :id, :category_name do |post_category| %>
36
+ <%= form.collection_check_boxes :category_ids, PhcdevworksCoreModules::Post::Category.all, :id, :category_name do |post_category| %>
37
37
  <%= post_category.check_box %>
38
38
  <%= post_category.label %><br>
39
39
  <% end %>
40
40
  </div>
41
41
  </div>
42
+
43
+ <div class="form-group">
44
+ <label>Attach SEO Data</label>
45
+ <%= collection_select(:command_post, :optimization_id, PhcdevworksCoreModules::Marketing::Optimization.order("seo_title"), :id, :seo_title, {}, {class: "form-control"}) %>
46
+ </div>
42
47
  <!-- Form Input Fields -->
43
48
 
44
49
  <!-- Form Submition Button -->
@@ -48,7 +48,7 @@
48
48
  <% @command_posts.each do |command_post| %>
49
49
  <tr>
50
50
  <td><%= command_post.post_title %></td>
51
- <td><%= command_post.post_description %></td>
51
+ <td><%= truncate(command_post.post_description, :length => 80, :escape => false) %></td>
52
52
  <td>
53
53
  <div class="btn-group d-flex" role="group">
54
54
  <%= link_to "List Details", command_post, class: "btn btn-purple btn-xs" %>
@@ -1,14 +1,74 @@
1
- <p id="notice"><%= notice %></p>
1
+ <!-- PHCTitleSEO Title Variables -->
2
+ <% phc_title "Command Lists Manager" %>
3
+ <% phc_title_tagline "Command List Details" %>
4
+ <% phc_breadcrumb_one "Home" %>
5
+ <% phc_breadcrumb_two link_to "Command List Index", phcdevworks_tutorials.command_posts_path %>
6
+ <!-- PHCTitleSEO Title Variables -->
2
7
 
3
- <p>
4
- <strong>Post title:</strong>
5
- <%= @command_post.post_title %>
6
- </p>
8
+ <!-- Page Bradcrumbs -->
9
+ <ol class="breadcrumb pull-right">
10
+ <li class="breadcrumb-item"><%= yield(:phc_breadcrumb_one) %></li>
11
+ <li class="breadcrumb-item active"><%= yield(:phc_breadcrumb_two) %></li>
12
+ </ol>
13
+ <!-- Page Bradcrumbs -->
7
14
 
8
- <p>
9
- <strong>Post description:</strong>
10
- <%= @command_post.post_description %>
11
- </p>
15
+ <!-- Page Header -->
16
+ <h2 class="page-header"><%= yield(:phc_title) %></h2>
17
+ <!-- Page Header -->
12
18
 
13
- <%= link_to 'Edit', edit_command_post_path(@command_post) %> |
14
- <%= link_to 'Back', command_posts_path %>
19
+ <!-- Page Content -->
20
+ <div class="row">
21
+ <div class="col-lg-12">
22
+
23
+ <!-- Panel -->
24
+ <div class="panel panel-inverse">
25
+
26
+ <!-- Panel - Heading -->
27
+ <div class="panel-heading">
28
+ <h4 class="panel-title"><%= yield(:phc_title) %></h4>
29
+ </div>
30
+ <!-- Panel - Heading -->
31
+
32
+ <!-- Panel - Body -->
33
+ <div class="panel-body">
34
+
35
+ <!-- Index - Table -->
36
+ <div class="table-responsive">
37
+ <table class="table table-striped table-bordered">
38
+
39
+ <thead>
40
+ <tr>
41
+ <th>Command Item Title</th>
42
+ <th>Command Item Description</th>
43
+ </tr>
44
+ </thead>
45
+
46
+ <tbody>
47
+ <% @command_post.items.order('item_title ASC').each do |command_item| %>
48
+ <tr>
49
+ <td><%= command_item.item_title %></td>
50
+ <td><%= command_item.item_description %></td>
51
+ </tr>
52
+ <% end %>
53
+ </tbody>
54
+
55
+ </table>
56
+ </div>
57
+ <!-- Index - Table -->
58
+
59
+ <!-- New Button -->
60
+ <%= link_to phcdevworks_tutorials.command_post_items_path(@command_post), class: "btn btn-primary btn-sm" do %>
61
+ <i class="fad fa-plus-circle"></i>
62
+ Add or Update Command Items
63
+ <% end %>
64
+ <!-- New Button -->
65
+
66
+ </div>
67
+ <!-- Panel - Body -->
68
+
69
+ </div>
70
+ <!-- Panel -->
71
+
72
+ </div>
73
+ </div>
74
+ <!-- Page Content -->
@@ -33,12 +33,17 @@
33
33
  <div class="form-group">
34
34
  <label>Select a Category</label>
35
35
  <div class="panel-body">
36
- <%= form.collection_check_boxes :category_ids, PhcdevworksCoreModules::Modules::Category.all, :id, :category_name do |post_category| %>
36
+ <%= form.collection_check_boxes :category_ids, PhcdevworksCoreModules::Post::Category.all, :id, :category_name do |post_category| %>
37
37
  <%= post_category.check_box %>
38
38
  <%= post_category.label %><br>
39
39
  <% end %>
40
40
  </div>
41
41
  </div>
42
+
43
+ <div class="form-group">
44
+ <label>Attach SEO Data</label>
45
+ <%= collection_select(:tutorial_post, :optimization_id, PhcdevworksCoreModules::Marketing::Optimization.order("seo_title"), :id, :seo_title, {}, {class: "form-control"}) %>
46
+ </div>
42
47
  <!-- Form Input Fields -->
43
48
 
44
49
  <!-- Form Submition Button -->
@@ -31,7 +31,11 @@
31
31
  <%= form.label :step_image, "Step Image" %>
32
32
  <%= form.file_field :step_image, class: "form-control" %>
33
33
  </div>
34
-
34
+
35
+ <div class="form-group">
36
+ <label>Attach SEO Data</label>
37
+ <%= collection_select(:tutorial_step, :optimization_id, PhcdevworksCoreModules::Marketing::Optimization.order("seo_title"), :id, :seo_title, {}, {class: "form-control"}) %>
38
+ </div>
35
39
  <!-- Form Input Fields -->
36
40
 
37
41
  <!-- Form Submition Button -->
@@ -49,6 +49,7 @@
49
49
  <tr>
50
50
  <td><%= tutorial_step.step_number %></td>
51
51
  <td><%= tutorial_step.step_title %></td>
52
+ <td><%= truncate(tutorial_step.step_description, :length => 80, :escape => false) %></td>
52
53
  <td>
53
54
  <div class="btn-group d-flex" role="group">
54
55
  <%= link_to "Update Step", edit_tutorial_post_step_path(tutorial_step.post, tutorial_step), class: "btn btn-primary btn-xs" %>
@@ -28,8 +28,8 @@ PhcdevworksTutorials::Engine.routes.draw do
28
28
  end
29
29
  end
30
30
 
31
- # Mount Routes
32
- mount PhcdevworksAccounts::Engine, :at => '/'
33
- mount PhcdevworksCoreModules::Engine, :at => '/'
31
+ # Mount Routes
32
+ mount PhcdevworksAccounts::Engine, :at => '/'
33
+ mount PhcdevworksCoreModules::Engine, :at => '/'
34
34
 
35
35
  end
@@ -0,0 +1,10 @@
1
+ class RemoveImagesColsFromPhcdevworksTutorials < ActiveRecord::Migration[6.0]
2
+ def change
3
+
4
+ remove_column :phcdevworks_tutorials_tutorial_posts, :post_image, :string
5
+ remove_column :phcdevworks_tutorials_tutorial_steps, :step_image, :string
6
+ remove_column :phcdevworks_tutorials_command_posts, :post_image, :string
7
+ remove_column :phcdevworks_tutorials_command_items, :item_image, :string
8
+
9
+ end
10
+ end
@@ -0,0 +1,10 @@
1
+ class CreatePhcdevworksTutorialsAddSeo < ActiveRecord::Migration[6.0]
2
+ def change
3
+
4
+ add_column :phcdevworks_tutorials_tutorial_posts, :optimization_id, :string
5
+ add_column :phcdevworks_tutorials_tutorial_steps, :optimization_id, :string
6
+ add_column :phcdevworks_tutorials_command_posts, :optimization_id, :string
7
+ add_column :phcdevworks_tutorials_command_items, :optimization_id, :string
8
+
9
+ end
10
+ end
@@ -1,3 +1,3 @@
1
1
  module PhcdevworksTutorials
2
- VERSION = "7.0.0"
2
+ VERSION = "8.0.0"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: phcdevworks_tutorials
3
3
  version: !ruby/object:Gem::Version
4
- version: 7.0.0
4
+ version: 8.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - PHCDevworks
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-06-30 00:00:00.000000000 Z
11
+ date: 2020-07-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -120,14 +120,14 @@ dependencies:
120
120
  requirements:
121
121
  - - "~>"
122
122
  - !ruby/object:Gem::Version
123
- version: '1.0'
123
+ version: '3.0'
124
124
  type: :runtime
125
125
  prerelease: false
126
126
  version_requirements: !ruby/object:Gem::Requirement
127
127
  requirements:
128
128
  - - "~>"
129
129
  - !ruby/object:Gem::Version
130
- version: '1.0'
130
+ version: '3.0'
131
131
  - !ruby/object:Gem::Dependency
132
132
  name: phcdevworks_notifications
133
133
  requirement: !ruby/object:Gem::Requirement
@@ -246,14 +246,14 @@ dependencies:
246
246
  requirements:
247
247
  - - "~>"
248
248
  - !ruby/object:Gem::Version
249
- version: '1.12'
249
+ version: '1.13'
250
250
  type: :runtime
251
251
  prerelease: false
252
252
  version_requirements: !ruby/object:Gem::Requirement
253
253
  requirements:
254
254
  - - "~>"
255
255
  - !ruby/object:Gem::Version
256
- version: '1.12'
256
+ version: '1.13'
257
257
  - !ruby/object:Gem::Dependency
258
258
  name: sqlite3
259
259
  requirement: !ruby/object:Gem::Requirement
@@ -359,6 +359,8 @@ files:
359
359
  - db/migrate/20200321122525_create_phcdevworks_tutorials_command_items_versions.rb
360
360
  - db/migrate/20200321122606_create_phcdevworks_tutorials_command_posts_versions.rb
361
361
  - db/migrate/20200328012248_phcdevworks_tutorials_categories_commands.rb
362
+ - db/migrate/20200702121306_remove_images_cols_from_phcdevworks_tutorials.rb
363
+ - db/migrate/20200707115652_create_phcdevworks_tutorials_add_seo.rb
362
364
  - lib/phcdevworks_tutorials.rb
363
365
  - lib/phcdevworks_tutorials/engine.rb
364
366
  - lib/phcdevworks_tutorials/version.rb