feature/share-libs
erb 85 lines 2.31 KB
Raw
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="<%= @meta_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": "<%= request.base_url %>",
18 "name": "Musik 88"
19 }
20 },{
21 "@type": "ListItem",
22 "position": 2,
23 "item": {
24 "@id": "<%= artist_url %>",
25 "name": "<%= t("nav_artists") %>"
26 }
27 },{
28 "@type": "ListItem",
29 "position": 3,
30 "item": {
31 "@id": "<%= artist_detail_url %>",
32 "name": "<%= @artist.name %>"
33 }
34 }]
35 }
36 </script>
37 <% end %>
38 <main>
39 <div class="row g-5">
40 <div class="col-md-12 text-center">
41 <h1><%= @page_title %></h1>
42 <%= render('shared/flash_message', object: flash) %>
43 </div>
44 </div>
45 <div class="row g-5">
46 <div class="col-12">
47 <div class="text-center mt-4 mb-4">
48 <%= image_pack_tag(
49 "image-placeholder-#{rand(0...3)}.jpg",
50 alt:"#{@artist.name} image",
51 class: "img-thumbnail rounded-circle"
52 ) %>
53 </div>
54 </div>
55 </div>
56 <div class="row mb-4">
57 <div class="col-md-12 text-center mb-3">
58 <%= link_to(
59 "<i class='bi bi-#{@artist.provider_type.to_s}' style='font-size: 3rem; color: blue;'></i>".html_safe,
60 @artist.provider_url,
61 style: 'padding: 0px',
62 target: '__blank'
63 ) %>
64 </div>
65 </div>
66 <div class="row mb-3">
67 <div class="col-md-12 text-center">
68 This is the bridge page of this artist.
69 </div>
70 </div>
71 <%= render 'shared/partial_breadcrumbs' do %>
72 <li class="breadcrumb-item">
73 <%= link_to(
74 t("nav_artists"),
75 artist_path
76 ) %>
77 </li>
78 <li class="breadcrumb-item">
79 <%= link_to(
80 @artist.name,
81 artist_detail_path(artist_friendly_url(@artist))
82 ) %>
83 </li>
84 <% end %>
85 </main>