| 1 | <% content_for :meta_head do %> |
| 2 | <title><%= @meta_title %></title> |
| 3 | <meta name="description" content="<%= @meta_description %>"> |
| 4 | <meta property="og:title" content="<%= @meta_title %>" /> |
| 5 | <meta property="og:description" content="<%= @meta_description %>" /> |
| 6 | <meta property="og:url" content="<%= guitar_chord_shapes_url %>" /> |
| 7 | <% end %> |
| 8 | <% content_for :breadcrumb do %> |
| 9 | <script type="application/ld+json"> |
| 10 | { |
| 11 | "@context": "http://schema.org", |
| 12 | "@type": "BreadcrumbList", |
| 13 | "itemListElement": [{ |
| 14 | "@type": "ListItem", |
| 15 | "position": 1, |
| 16 | "item": { |
| 17 | "@id": "<%= root_url %>", |
| 18 | "name": "<%= t("site_name") %>" |
| 19 | } |
| 20 | },{ |
| 21 | "@type": "ListItem", |
| 22 | "position": 2, |
| 23 | "item": { |
| 24 | "@id": "<%= guitar_chord_shapes_url %>", |
| 25 | "name": "<%= t("nav_chords_shapes") %>" |
| 26 | } |
| 27 | }] |
| 28 | } |
| 29 | </script> |
| 30 | <% end %> |
| 31 | <div class="row"> |
| 32 | <div class="col-md-4"> |
| 33 | <aside> |
| 34 | <div class="bluebox-heading"> |
| 35 | <h2><%= t("guitar_chords_shape")%></h2> |
| 36 | </div> |
| 37 | <div class="events-list widget-wrap"> |
| 38 | <% @chords.each_with_index do |chord, index| %> |
| 39 | <section class="event"> |
| 40 | <div class="date"> |
| 41 | <strong><%= index + 1 %>.</strong> |
| 42 | </div> |
| 43 | <div class="details"> |
| 44 | <h1> |
| 45 | <%= link_to t("guitar_chord") + chord.name, |
| 46 | guitar_chord_shape_path(chord.name.downcase.parameterize + "-" + chord.id.to_s) %> |
| 47 | </h1> |
| 48 | <%= link_to t("see_chord_detail"), |
| 49 | guitar_chord_shape_path(chord.name.downcase.parameterize + "-" + chord.id.to_s), |
| 50 | class: "more-link" %> |
| 51 | </div> |
| 52 | </section> |
| 53 | <% end %> |
| 54 | </div> |
| 55 | </aside> |
| 56 | </div> |
| 57 | <div class="col-md-8"> |
| 58 | |
| 59 | <h2><%= @chord.name %></h2> |
| 60 | <div class="lead"> |
| 61 | <%= @chord.name %> |
| 62 | </div> |
| 63 | <% if @chord.image_link.to_s != '' %> |
| 64 | <h2><%= t("guitar_chord_image") + " " + @chord.name %></h2> |
| 65 | <div> |
| 66 | <img src="<%= @chord.image_link %>" /> |
| 67 | </div> |
| 68 | <% end %> |
| 69 | <% if @chord.youtube_link.to_s != '' %> |
| 70 | <h2><%= t("guitar_chord_video") + " " + @chord.name %></h2> |
| 71 | <div> |
| 72 | <iframe width="560" height="315" src="<%= @chord.youtube_link %>" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe> |
| 73 | </div> |
| 74 | <% end %> |
| 75 | |
| 76 | </div> |
| 77 | </div> |
| 78 | |
| 79 | <%= render "shared/partial_breadcrumbs" do %> |
| 80 | <li class="breadcrumb-item"><%= link_to t("nav_chords"), guitar_chords_path %></li> |
| 81 | <% end %> |