phcdevworks_tutorials 6.6.1 → 6.6.2

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: 3c9ffdb0d4ca81822bbbbc410e43fb4b4b803ef7b051790ae1b779e0ccc691d6
4
- data.tar.gz: e62380c3340f2121756982e1fd902fb8f1de6cb30bcc35d8f2623b614b750fcc
3
+ metadata.gz: 1229c9b880195055adac7240f9063ab3343d0187a202d50e2bf8fd4a33e99745
4
+ data.tar.gz: 60938e2ac51b08315f1e73edc3aaf130ebc87e45c7f9a356009834f845ac2bdc
5
5
  SHA512:
6
- metadata.gz: df9bb10d82f0c81ddef421d3f4a653053450be5d6e25f69ab5a6739dc1ada98a5d2dc18bd71d3ded3da05435c722fdd048460d5652b72d6f179f308063797a0d
7
- data.tar.gz: b7a06a0eda1012a9497a31e74462dbebab27cb3ea80d3c73adac72edb6c29a824b259cc698d382a368adf73a9d3b6373d3e008b0446316a65789af819cd22b7b
6
+ metadata.gz: b43a9753f7fedf8ffc983a36ac02d2f084709d21efdaca2b2fd4bdd10622014d3a07bf007c7fc013a00091b0215c37cb838f70db9281600f4ee1ca7a0c47cd18
7
+ data.tar.gz: 17371d9a056f583247fb3a9272cf6ebfb2452b63cb872b48a4e3e9348619d36672f8a75ca6560088b8752e4a5f5f7b19b0b7050ed163f3aa444c3d24391d0214
@@ -11,7 +11,7 @@ module PhcdevworksTutorials
11
11
  has_one_attached :post_image
12
12
 
13
13
  # Relationships
14
- has_and_belongs_to_many :categories, class_name: "Command::Category", :join_table => "phcdevworks_tutorials_categories_posts", :dependent => :destroy
14
+ has_and_belongs_to_many :categories, class_name: "Tutorial::Category", :join_table => "phcdevworks_tutorials_categories_posts", :dependent => :destroy
15
15
  has_many :items, class_name: "Command::Item"
16
16
  belongs_to :user, class_name: "PhcdevworksAccounts::User"
17
17
 
@@ -0,0 +1,96 @@
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 -->
@@ -1,3 +1,3 @@
1
1
  module PhcdevworksTutorials
2
- VERSION = "6.6.1"
2
+ VERSION = "6.6.2"
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: 6.6.1
4
+ version: 6.6.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - PHCDevworks
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-03-26 00:00:00.000000000 Z
11
+ date: 2020-03-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -317,6 +317,8 @@ files:
317
317
  - app/views/layouts/phcdevworks_tutorials/components/backend/navigation/_top_menu.html.erb
318
318
  - app/views/layouts/phcdevworks_tutorials/components/backend/sidebars/_side_menu.html.erb
319
319
  - app/views/layouts/phcdevworks_tutorials/frontend.html.erb
320
+ - app/views/phcdevworks_tutorials/blog/commands/index.html.erb
321
+ - app/views/phcdevworks_tutorials/blog/commands/show.html.erb
320
322
  - app/views/phcdevworks_tutorials/blog/tutorials/index.html.erb
321
323
  - app/views/phcdevworks_tutorials/blog/tutorials/show.html.erb
322
324
  - app/views/phcdevworks_tutorials/command/items/_form.html.erb