aboutsummaryrefslogtreecommitdiffstats
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
parentcd056817733076d7430c0c85ce2ff767d627aa6a (diff)
downloadhmnoweb-c9c1d27ae1de01e4fcf07f2c72042b471784260a.tar.gz
hmnoweb-c9c1d27ae1de01e4fcf07f2c72042b471784260a.tar.bz2
hmnoweb-c9c1d27ae1de01e4fcf07f2c72042b471784260a.zip
GalleryLinks: Update index view.
-rw-r--r--vendor/extensions/gallery_links/app/views/refinery/gallery_links/gallery_links/index.html.erb38
-rw-r--r--vendor/extensions/gallery_links/config/locales/cs.yml3
-rw-r--r--vendor/extensions/gallery_links/config/locales/en.yml3
-rw-r--r--vendor/extensions/gallery_links/config/locales/es.yml3
-rw-r--r--vendor/extensions/gallery_links/config/locales/fr.yml3
-rw-r--r--vendor/extensions/gallery_links/config/locales/it.yml3
-rw-r--r--vendor/extensions/gallery_links/config/locales/nb.yml3
-rw-r--r--vendor/extensions/gallery_links/config/locales/nl.yml3
-rw-r--r--vendor/extensions/gallery_links/config/locales/sk.yml3
-rw-r--r--vendor/extensions/gallery_links/config/locales/tr.yml3
-rw-r--r--vendor/extensions/gallery_links/config/locales/zh-CN.yml3
11 files changed, 62 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' %>
diff --git a/vendor/extensions/gallery_links/config/locales/cs.yml b/vendor/extensions/gallery_links/config/locales/cs.yml
index 0227010..880b973 100644
--- a/vendor/extensions/gallery_links/config/locales/cs.yml
+++ b/vendor/extensions/gallery_links/config/locales/cs.yml
@@ -21,6 +21,9 @@ cs:
gallery_links:
show:
other: Další Gallery Links
+ index:
+ photographer: Photographer
+ created: Created
activerecord:
attributes:
'refinery/gallery_links/gallery_link':
diff --git a/vendor/extensions/gallery_links/config/locales/en.yml b/vendor/extensions/gallery_links/config/locales/en.yml
index 6fc5882..8715d2d 100644
--- a/vendor/extensions/gallery_links/config/locales/en.yml
+++ b/vendor/extensions/gallery_links/config/locales/en.yml
@@ -21,6 +21,9 @@ en:
gallery_links:
show:
other: Other Gallery Links
+ index:
+ photographer: Photographer
+ created: Created
activerecord:
attributes:
'refinery/gallery_links/gallery_link':
diff --git a/vendor/extensions/gallery_links/config/locales/es.yml b/vendor/extensions/gallery_links/config/locales/es.yml
index 34b7554..4f8ca9d 100644
--- a/vendor/extensions/gallery_links/config/locales/es.yml
+++ b/vendor/extensions/gallery_links/config/locales/es.yml
@@ -22,6 +22,9 @@ es:
gallery_links:
show:
other: Otros gallery links
+ index:
+ photographer: Photographer
+ created: Created
activerecord:
attributes:
'refinery/gallery_links/gallery_link':
diff --git a/vendor/extensions/gallery_links/config/locales/fr.yml b/vendor/extensions/gallery_links/config/locales/fr.yml
index 6cca0de..cc8e329 100644
--- a/vendor/extensions/gallery_links/config/locales/fr.yml
+++ b/vendor/extensions/gallery_links/config/locales/fr.yml
@@ -21,6 +21,9 @@ fr:
gallery_links:
show:
other: Autres Gallery Links
+ index:
+ photographer: Photographer
+ created: Created
activerecord:
attributes:
'refinery/gallery_links/gallery_link':
diff --git a/vendor/extensions/gallery_links/config/locales/it.yml b/vendor/extensions/gallery_links/config/locales/it.yml
index ea0f3d7..a08c218 100644
--- a/vendor/extensions/gallery_links/config/locales/it.yml
+++ b/vendor/extensions/gallery_links/config/locales/it.yml
@@ -21,6 +21,9 @@ it:
gallery_links:
show:
other: Altri Gallery Links
+ index:
+ photographer: Photographer
+ created: Created
activerecord:
attributes:
'refinery/gallery_links/gallery_link':
diff --git a/vendor/extensions/gallery_links/config/locales/nb.yml b/vendor/extensions/gallery_links/config/locales/nb.yml
index 971e333..cb1dd6b 100644
--- a/vendor/extensions/gallery_links/config/locales/nb.yml
+++ b/vendor/extensions/gallery_links/config/locales/nb.yml
@@ -21,6 +21,9 @@ nb:
gallery_links:
show:
other: Andre gallerier
+ index:
+ photographer: Fotograf
+ created: Lastet opp
activerecord:
attributes:
'refinery/gallery_links/gallery_link':
diff --git a/vendor/extensions/gallery_links/config/locales/nl.yml b/vendor/extensions/gallery_links/config/locales/nl.yml
index e8a6ec6..3b81530 100644
--- a/vendor/extensions/gallery_links/config/locales/nl.yml
+++ b/vendor/extensions/gallery_links/config/locales/nl.yml
@@ -21,6 +21,9 @@ nl:
gallery_links:
show:
other: Andere Gallery Links
+ index:
+ photographer: Photographer
+ created: Created
activerecord:
attributes:
'refinery/gallery_links/gallery_link':
diff --git a/vendor/extensions/gallery_links/config/locales/sk.yml b/vendor/extensions/gallery_links/config/locales/sk.yml
index 17153ee..b875c91 100644
--- a/vendor/extensions/gallery_links/config/locales/sk.yml
+++ b/vendor/extensions/gallery_links/config/locales/sk.yml
@@ -21,6 +21,9 @@ sk:
gallery_links:
show:
other: Daľšie Gallery Links
+ index:
+ photographer: Photographer
+ created: Created
activerecord:
attributes:
'refinery/gallery_links/gallery_link':
diff --git a/vendor/extensions/gallery_links/config/locales/tr.yml b/vendor/extensions/gallery_links/config/locales/tr.yml
index 6162dc6..62a0ab4 100644
--- a/vendor/extensions/gallery_links/config/locales/tr.yml
+++ b/vendor/extensions/gallery_links/config/locales/tr.yml
@@ -21,6 +21,9 @@ tr:
gallery_links:
show:
other: Diger Gallery Links
+ index:
+ photographer: Photographer
+ created: Created
activerecord:
attributes:
'refinery/gallery_links/gallery_link':
diff --git a/vendor/extensions/gallery_links/config/locales/zh-CN.yml b/vendor/extensions/gallery_links/config/locales/zh-CN.yml
index 186173c..7d21989 100644
--- a/vendor/extensions/gallery_links/config/locales/zh-CN.yml
+++ b/vendor/extensions/gallery_links/config/locales/zh-CN.yml
@@ -23,6 +23,9 @@ zh-CN:
gallery_links:
show:
other: 其他 Gallery Links
+ index:
+ photographer: Photographer
+ created: Created
activerecord:
attributes:
'refinery/gallery_links/gallery_link':