diff options
author | Harald Eilertsen <haraldei@anduin.net> | 2018-01-13 16:47:29 +0100 |
---|---|---|
committer | Harald Eilertsen <haraldei@anduin.net> | 2018-01-13 16:47:29 +0100 |
commit | 6c5aaabe8bb0ae1b8025953f6a9c462846bbb873 (patch) | |
tree | 93f68b2d3307b8f64187444a769a92cebf135caa /vendor/extensions/gallery_links/app/views/refinery/gallery_links/gallery_links/index.html.erb | |
parent | 97130af8dd3f761bbc4cc085def3cd39b80b876e (diff) | |
parent | 00e2586a42931567d2ac18350d41dd882e7fcd92 (diff) | |
download | hmnoweb-6c5aaabe8bb0ae1b8025953f6a9c462846bbb873.tar.gz hmnoweb-6c5aaabe8bb0ae1b8025953f6a9c462846bbb873.tar.bz2 hmnoweb-6c5aaabe8bb0ae1b8025953f6a9c462846bbb873.zip |
Merge branch 'gallery-links'
Diffstat (limited to 'vendor/extensions/gallery_links/app/views/refinery/gallery_links/gallery_links/index.html.erb')
-rw-r--r-- | vendor/extensions/gallery_links/app/views/refinery/gallery_links/gallery_links/index.html.erb | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/vendor/extensions/gallery_links/app/views/refinery/gallery_links/gallery_links/index.html.erb b/vendor/extensions/gallery_links/app/views/refinery/gallery_links/gallery_links/index.html.erb new file mode 100644 index 0000000..baad049 --- /dev/null +++ b/vendor/extensions/gallery_links/app/views/refinery/gallery_links/gallery_links/index.html.erb @@ -0,0 +1,47 @@ +<% 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 %> + </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 %> + </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> + <div> + <span class="gallery_link_label"> + <%= t('.created') %>: + </span> + <time datetime="<%= g.created_at %>"> + <%= l(g.created_at) %> + </time> + </div> + </section> + </article> + <% end %> + </section> +<% end %> + +<%= render '/refinery/content_page' %> |