aboutsummaryrefslogtreecommitdiffstats
path: root/vendor/extensions/gallery_links/app/views/refinery/gallery_links/gallery_links/index.html.erb
blob: c50fbb8e688d2a0c70881e665eb9709e8ea2dd45 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
<% content_for :body do %>
<section id="gallery_links">
  <% @gallery_links.each do |g| %>
  <article class="gallery_link" id="gallery_link_<%= g.id %>">
    <header>
      <div class="gallery_link_meta">
        <time datetime="<%= g.date.xmlschema %>">
          <%= l(g.date) %>
        </time>
      </div>
      <h1>
        <%= link_to g.bands, g.url, target: '_blank', rel: 'noopener noreferrer' %>
      </h1>
      <div class="gallery_link_meta">
        <%= g.venue %>
      </div>
    </header>
    <section class="gallery_link_preview">
      <%= link_to image_tag(g.image.thumbnail(:medium).url), g.url, target: '_blank', rel: 'noopener noreferrer' %>
    </section>
    <section class="gallery_link_description">
      <%=raw g.description %>
    </section>
    <section class="gallery_link_meta">
      <div>
        <span class="gallery_link_label">
          <%= t('.photographer') %>:
        </span>
        <span class="gallery_link_photographer">
          <%= g.photographer %>
        </span>
      </div>
    </section>
  </article>
  <% end %>
</section>
<% end %>

<%= render '/refinery/content_page' %>