aboutsummaryrefslogtreecommitdiffstats
path: root/vendor/extensions/gallery_links/app
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/extensions/gallery_links/app')
-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' %>