aboutsummaryrefslogtreecommitdiffstats
path: root/vendor/extensions/gallery_links/app/views/refinery/gallery_links/gallery_links/index.html.erb
diff options
context:
space:
mode:
authorHarald Eilertsen <haraldei@anduin.net>2017-12-17 14:36:47 +0100
committerHarald Eilertsen <haraldei@anduin.net>2017-12-17 14:36:47 +0100
commitc9c1d27ae1de01e4fcf07f2c72042b471784260a (patch)
treeb8c655ece32f3621b70bb91fcbfad537a12f8101 /vendor/extensions/gallery_links/app/views/refinery/gallery_links/gallery_links/index.html.erb
parentcd056817733076d7430c0c85ce2ff767d627aa6a (diff)
downloadhmnoweb-c9c1d27ae1de01e4fcf07f2c72042b471784260a.tar.gz
hmnoweb-c9c1d27ae1de01e4fcf07f2c72042b471784260a.tar.bz2
hmnoweb-c9c1d27ae1de01e4fcf07f2c72042b471784260a.zip
GalleryLinks: Update index view.
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.erb38
1 files changed, 32 insertions, 6 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
index 684af05..e9121d6 100644
--- 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
@@ -1,11 +1,37 @@
<% content_for :body do %>
- <ul id="gallery_links">
- <% @gallery_links.each do |gallery_link| %>
- <li>
- <%= link_to gallery_link.title, refinery.gallery_links_gallery_link_path(gallery_link) %>
- </li>
+ <section id="gallery_links">
+ <% @gallery_links.each do |g| %>
+ <article class="gallery_link" id="gallery_link_<%= g.id %>">
+ <header>
+ <h1>
+ <%= link_to g.title, g.url %>
+ </h1>
+ <%= link_to image_tag(g.image.thumbnail(:medium).url), g.url %>
+ </header>
+ <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 %>
- </ul>
+ </section>
<% end %>
<%= render '/refinery/content_page' %>