-
Notifications
You must be signed in to change notification settings - Fork 28
/
show.html.ep
51 lines (44 loc) · 1.48 KB
/
show.html.ep
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
40
41
42
43
44
45
46
47
48
49
50
51
% layout 'default';
% my $title = $photo->set->decoded_title . '-' . $photo->idx . ' of ' . $photo->set->photos->count;
% title $title;
<div id="<%= $photo->id %>" class="photo wide slide">
<span class="pagetitle hidden"><%= $title %></span>
<h1><a
class="title"
href="/photos/<%= $photo->set->url_title %>"
title="<%= $photo->set->id %>">
%= $photo->set->decoded_title
</a>
</h1>
<div class="nav">
% if ($photo->previous) {
<a class="previous" href="/photos/<%= $photo->previous->id %>">
Previous</a>
% }
% if ($photo->next) {
<a class="previous" href="/photos/<%= $photo->next->id %>">
Next</a>
% }
</div>
<ul class="horizontal-list">
<li><span class="location">
<%= $photo->location %></span></li>
<li><span class="time">
<%= $photo->taken->month_name %>, <%= $photo->taken->year %></span></li>
<li><span class="time_since">
<%= $photo->time_since %></span></li>
<li><span class="count">
<%= $photo->idx %> of <%= $photo->set->photos->count %></span></li>
</ul>
<br />
<div class="photos">
% if ($photo->next) {
<a class="photo next" href="/photos/<%= $photo->next->id %>">
<img src="<%= $photo->medium %>" alt="<%= $photo->description %>" /></a>
% }
% else {
<a class="photo previous" href="/photos/<%= $photo->set->url_title %>">
<img src="<%= $photo->medium %>" alt="<%= $photo->description %>" /></a>
% }
</div>
</div>