Skip to content

Commit

Permalink
Add back "Tutorials" section in "Community > Eduction"
Browse files Browse the repository at this point in the history
  • Loading branch information
marcoroth committed Oct 25, 2023
1 parent d8d86bb commit 495aa83
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 10 deletions.
6 changes: 0 additions & 6 deletions app/content/data/courses.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
- name: Hotrails.dev
url: https://www.hotrails.dev

- name: Learn Hotwire by Building a Forum
url: https://store.afomera.dev/learn-hotwire

Expand All @@ -10,9 +7,6 @@
- name: "The Pragmatic Studio: Hotwire for Rails Developers"
url: https://pragmaticstudio.com/hotwire-rails

- name: Turbo Laravel Bootcamp
url: https://bootcamp.turbo-laravel.com

- name: Turbo Native Workshop
url: https://masilotti.com/turbo-native-workshop

Expand Down
8 changes: 8 additions & 0 deletions app/content/data/tutorials.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
- name: Hotrails.dev
url: https://www.hotrails.dev

- name: Turbo Laravel Bootcamp
url: https://bootcamp.turbo-laravel.com

- name: Hotwire PowerPlay
url: https://github.com/hotwire-django/PowerPlay
2 changes: 2 additions & 0 deletions app/content/models/tutorial.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
class Tutorial < FrozenRecord::Base
end
14 changes: 10 additions & 4 deletions app/content/pages/community/education.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -6,23 +6,29 @@ additional_credit_paths:
- app/content/data/channels.yml
- app/content/data/courses.yml
- app/content/data/communities.yml
- app/content/data/tutorials.yml
---

<%= render Page::ContainerComponent.new(page: current_page) do |page| %>
<% page.with_title(title: current_page.data.fetch("subtitle")) %>

<h2 class="text-2xl font-bold mt-4 mb-4">Channels publishing Hotwire content</h2>
<h2 class="text-2xl font-bold mt-4 mb-4">Channels</h2>
<% Channel.order(name: :asc).each do |channel| %>
<%= link_to channel.name, channel.url, target: :blank %><br>
<%= link_to channel.name, channel.url, target: :_blank %><br>
<% end %>

<h2 class="text-2xl font-bold mt-4 mb-4">Courses</h2>
<% Course.order(name: :asc).each do |course| %>
<%= link_to course.name, course.url, target: :blank %><br>
<%= link_to course.name, course.url, target: :_blank %><br>
<% end %>

<h2 class="text-2xl font-bold mt-4 mb-4">Tutorials</h2>
<% Tutorial.order(name: :asc).each do |tutorial| %>
<%= link_to tutorial.name, tutorial.url, target: :_blank %><br>
<% end %>

<h2 class="text-2xl font-bold mt-4 mb-4">Online-Communities</h2>
<% Community.order(name: :asc).each do |community| %>
<%= link_to "#{community.name} (#{community.type})", community.url, target: :blank %><br>
<%= link_to "#{community.name} (#{community.type})", community.url, target: :_blank %><br>
<% end %>
<% end %>

0 comments on commit 495aa83

Please sign in to comment.