phcdevworks_tutorials 6.6.3 → 6.6.4
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_tutorials/command/items_controller.rb +1 -1
- data/app/views/phcdevworks_tutorials/blog/commands/show.html.erb +0 -96
- data/app/views/phcdevworks_tutorials/command/items/_form.html.erb +2 -2
- data/app/views/phcdevworks_tutorials/command/items/index.html.erb +1 -1
- data/app/views/phcdevworks_tutorials/command/items/show.html.erb +1 -1
- data/db/migrate/20200320110553_create_phcdevworks_tutorials_command_items.rb +1 -1
- data/lib/phcdevworks_tutorials/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 37823642dc0e799c9785fab8eb43a9f67c4b281cd8c6f628b6ca957074fc18ec
|
4
|
+
data.tar.gz: d4d25ff8bdb9cc2728bc524664ece4eda4deaa34de7ec4c8b5bb9daac0881a50
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4cfc0cf2812d8f05a2140d0a85ebd21e999122577c03252e9fbc14c1ec61a92805109b61de3c5d580a04fc8f2fd625391338bb7ec75a12385b015ed2f60dbd31
|
7
|
+
data.tar.gz: 72ecc42e6eb51a2cd211206d98db08010693b44a291744c37f2a40068e1c361c029938b22ac480f8b017d2fd4a478936fb95c22a715bcf1e5c6d0dc5b9de5753
|
@@ -88,7 +88,7 @@ module PhcdevworksTutorials
|
|
88
88
|
|
89
89
|
# Whitelist
|
90
90
|
def command_item_params
|
91
|
-
params.require(:command_item).permit(:
|
91
|
+
params.require(:command_item).permit(:item_title, :item_description, :item_copy_command, :item_image, :slug, :user_id, :org_id)
|
92
92
|
end
|
93
93
|
|
94
94
|
end
|
@@ -1,96 +0,0 @@
|
|
1
|
-
<!-- -PHC- Content - SEO -->
|
2
|
-
<% phc_seo_title "Web and App Development Tutorials" %>
|
3
|
-
<% phc_seo_description "Tutorials and lessons on " + @phcdevworks_commands_single.post_title %>
|
4
|
-
<% phc_breadcrumb_one link_to "Home", main_app.root_path %>
|
5
|
-
<% phc_breadcrumb_two link_to "Tutorials", phcdevworks_tutorials.blog_tutorials_path %>
|
6
|
-
<% phc_breadcrumb_three @phcdevworks_commands_single.post_title %>
|
7
|
-
<!-- -PHC- Content - SEO -->
|
8
|
-
|
9
|
-
<!-- PHC- Content - Title and Breadcrumbs - Container -->
|
10
|
-
<section class="bg-theme-color-light p-0">
|
11
|
-
<div class="container py-5">
|
12
|
-
|
13
|
-
<!-- PHC- Content - Title and Breadcrumbs - Container - Title -->
|
14
|
-
<h1 class="h3"><%= yield(:phc_seo_title) %></h1>
|
15
|
-
<!-- PHC- Content - Title and Breadcrumbs - Container - Title -->
|
16
|
-
|
17
|
-
<!-- PHC- Content - Title and Breadcrumbs - Container - Breadcrumbs -->
|
18
|
-
<nav aria-label="breadcrumb">
|
19
|
-
<ol class="breadcrumb fs--14">
|
20
|
-
<li class="breadcrumb-item"><%= yield(:phc_breadcrumb_one) %></li>
|
21
|
-
<li class="breadcrumb-item"><%= yield(:phc_breadcrumb_two) %></li>
|
22
|
-
<li class="breadcrumb-item active" aria-current="page"><%= yield(:phc_breadcrumb_three) %></li>
|
23
|
-
</ol>
|
24
|
-
</nav>
|
25
|
-
<!-- PHC- Content - Title and Breadcrumbs - Container - Breadcrumbs -->
|
26
|
-
|
27
|
-
</div>
|
28
|
-
</section>
|
29
|
-
<!-- PHC- Content - Title and Breadcrumbs - Container -->
|
30
|
-
|
31
|
-
|
32
|
-
<!-- PHC- Content - Tutorial Content - Container -->
|
33
|
-
<section class="position-relative">
|
34
|
-
<div class="container">
|
35
|
-
<div class="timeline-container">
|
36
|
-
|
37
|
-
<!-- PHC- Content - Tutorial Content - Container - Tutorial TItle -->
|
38
|
-
<h2 class="font-weight-normal timeline-title border-primary mb-5 pt-2 pb-2">
|
39
|
-
<%= @phcdevworks_commands_single.post_title %>
|
40
|
-
<nav aria-label="breadcrumb">
|
41
|
-
<ol class="breadcrumb fs--14 mb-2">
|
42
|
-
<% @phcdevworks_commands_single.categories.each do |tutorial_categories| %>
|
43
|
-
<li class="breadcrumb-item"><%= tutorial_categories.category_name %></li>
|
44
|
-
<% end %>
|
45
|
-
</ol>
|
46
|
-
</nav>
|
47
|
-
</h2>
|
48
|
-
<!-- PHC- Content - Tutorial Content - Container - Tutorial TItle -->
|
49
|
-
|
50
|
-
<!-- PHC- Content - Tutorial Content - Container - Tutorial Step -->
|
51
|
-
<% @phcdevworks_commands_single.steps.order("step_number").each do |tutorial_steps| %>
|
52
|
-
<div class="d-flex mb-4" data-aos="fade-in" data-aos-delay="150" data-aos-offset="0">
|
53
|
-
<i class="badge bg-white border-dark rounded-circle mt-2"></i>
|
54
|
-
<div class="w--120 mx-1 flex-none">
|
55
|
-
<p class="w--90 fs--14 text-break">
|
56
|
-
<b class="d-block text-primary">Step <%= tutorial_steps.step_number %></b>
|
57
|
-
<%= tutorial_steps.step_title %>
|
58
|
-
</p>
|
59
|
-
</div>
|
60
|
-
<div class="flex-grow-1 lead bg-light p--15 position-relative transition-hover-end transition-all-ease-250">
|
61
|
-
<i class="arrow arrow-start border-light mt-2"></i>
|
62
|
-
<p class="h3 mb-3"><%= tutorial_steps.step_title %></p>
|
63
|
-
<%= tutorial_steps.step_description.html_safe %>
|
64
|
-
<% if tutorial_steps.step_copy_instruction? %>
|
65
|
-
<div class="input-group input-group-sm my-3">
|
66
|
-
<div class="input-group-prepend">
|
67
|
-
<span class="input-group-text" id="phc_clipboard_copy-<%= tutorial_steps.id %>" data-clipboard-target="#phc_copy_text-<%= tutorial_steps.id %>">
|
68
|
-
<i class="fad fa-cut"></i>
|
69
|
-
</span>
|
70
|
-
</div>
|
71
|
-
<input id="phc_copy_text-<%= tutorial_steps.id %>" type="text" class="form-control" aria-label="Sizing example input" aria-describedby="inputGroup-sizing-sm" value="<%= tutorial_steps.step_copy_instruction %>" readonly>
|
72
|
-
</div>
|
73
|
-
<% end %>
|
74
|
-
<script>
|
75
|
-
var copy_text = document.getElementById("phc_clipboard_copy-<%= tutorial_steps.id %>");
|
76
|
-
var clipboard = new ClipboardJS(copy_text);
|
77
|
-
clipboard.on("success", function(e) {
|
78
|
-
console.log(e);
|
79
|
-
});
|
80
|
-
clipboard.on("error", function(e) {
|
81
|
-
console.log(e);
|
82
|
-
});
|
83
|
-
</script>
|
84
|
-
</div>
|
85
|
-
</div>
|
86
|
-
<% end %>
|
87
|
-
<!-- PHC- Content - Tutorial Content - Container - Tutorial Step -->
|
88
|
-
|
89
|
-
<!-- PHC- Content - Tutorial Content - Container - Tutorial Keywords -->
|
90
|
-
<p class="timeline-content"></p>
|
91
|
-
<!-- PHC- Content - Tutorial Content - Container - Tutorial Keywords -->
|
92
|
-
|
93
|
-
</div>
|
94
|
-
</div>
|
95
|
-
</section>
|
96
|
-
<!-- PHC- Content - Tutorial Content - Container -->
|
@@ -7,8 +7,8 @@
|
|
7
7
|
|
8
8
|
<!-- Form Input Fields -->
|
9
9
|
<div class="form-group">
|
10
|
-
<%= form.label :
|
11
|
-
<%= form.text_field :
|
10
|
+
<%= form.label :item_title, "Command Name" %>
|
11
|
+
<%= form.text_field :item_title, class: "form-control" %>
|
12
12
|
</div>
|
13
13
|
|
14
14
|
<div class="form-group">
|
@@ -2,7 +2,7 @@ class CreatePhcdevworksTutorialsCommandItems < ActiveRecord::Migration[6.0]
|
|
2
2
|
def change
|
3
3
|
create_table :phcdevworks_tutorials_command_items do |t|
|
4
4
|
|
5
|
-
t.string :
|
5
|
+
t.string :item_title
|
6
6
|
t.text :item_description
|
7
7
|
t.string :item_copy_command
|
8
8
|
t.string :item_image
|