<%first><h2><%= Page.ImageBrowser.Header.Albums|l10n|html></h2><%/first>
<%if loop.count|mod divisor=3><div class="image-row"><%/if>
<div class="album image">
- <a href="imageBrowser.html?album=<% album.id|html>" title="<% album.title|html>">
- <%ifnull album.albumImage>
- <img src="images/unknown-image-0.png" width="200" height="150" alt="<% album.title|html>" title="<% album.title|html>" />
- <%else><!-- TODO -->
- <% album.albumImage|image-link max-width=200 max-height=150 title==album.title>
- <%/if>
- <br/>
- <% album.title|html>
- </a>
+ <div class="image-container">
+ <a href="imageBrowser.html?album=<% album.id|html>" title="<% album.title|html>">
+ <%ifnull album.albumImage>
+ <img src="images/unknown-image-0.png" width="266" height="200" alt="<% album.title|html>" title="<% album.title|html>" style="position: relative; top: 0px; left: -33px;" />
+ <%else><!-- TODO -->
+ <% album.albumImage|image-link max-width=200 max-height=200 mode=enlarge title==album.title>
+ <%/if>
+ </a>
+ </div>
+ <% album.title|html>
</div>
<%= false|store key=endRow>
<%if loop.count|mod divisor=3 offset=1><%= true|store key=endRow><%/if>
<%foreach album.images image>
<%first><h2><%= Page.ImageBrowser.Header.Images|l10n|html></h2><%/first>
<%if loop.count|mod divisor=3><div class="image-row"><%/if>
- <div class="image">
- <a href="imageBrowser.html?image=<%image.id|html>"><% image|image-link max-width=200 max-height=150></a>
+ <div id="image-<% image.id|html>" class="image">
+ <div class="image-id hidden"><% image.id|html></div>
+ <div class="image-container">
+ <a href="imageBrowser.html?image=<%image.id|html>"><% image|image-link max-width=200 max-height=200 mode=enlarge title==image.title></a>
+ </div>
<%if album.sone.local>
- <br/>
<form class="edit-image" action="editImage.html" method="post">
<input type="hidden" name="formPassword" value="<%formPassword|html>" />
<input type="hidden" name="returnPage" value="<%request.uri|html>" />
<input type="hidden" name="image" value="<%image.id|html>" />
- <div>
- <input type="text" name="title" value="<%image.title|html>" />
+ <div class="show-data">
+ <div class="image-title"><% image.title|html></div>
+ <div class="image-description"><% image.description|html></div>
</div>
- <div>
- <textarea name="description"><%image.description|html></textarea>
- </div>
- <div>
- <button type="submit"><%= Page.ImageBrowser.Image.Button.Save|l10n|html></button>
+ <div class="edit-data hidden">
+ <div>
+ <input type="text" name="title" value="<%image.title|html>" />
+ </div>
+ <div>
+ <textarea name="description"><%image.description|html></textarea>
+ </div>
+ <div>
+ <button type="submit"><%= Page.ImageBrowser.Image.Button.Save|l10n|html></button>
+ </div>
</div>
</form>
<%/if>
<%foreach sone.albums album>
<%if loop.count|mod divisor=3><div class="image-row"><%/if>
<div class="album image">
- <a href="imageBrowser.html?album=<% album.id|html>" title="<% album.title|html>">
- <%ifnull album.albumImage>
- <img src="images/unknown-image-0.png" width="200" height="150" alt="<% album.title|html>" title="<% album.title|html>" />
- <%else><!-- TODO -->
- <% album.albumImage|image-link max-width=200 max-height=150 title==album.title>
- <%/if>
- <br/>
+ <div class="image-container">
+ <a href="imageBrowser.html?album=<% album.id|html>" title="<% album.title|html>">
+ <%ifnull album.albumImage>
+ <img src="images/unknown-image-0.png" width="266" height="200" alt="<% album.title|html>" title="<% album.title|html>" style="position: relative; top: 0px; left: -33px;"/>
+ <%else><!-- TODO -->
+ <% album.albumImage|image-link max-width=200 max-height=200 mode=enlarge title==album.title>
+ <%/if>
+ </a>
<% album.title|html>
- </a>
+ </div>
</div>
<%= false|store key=endRow>
<%if loop.count|mod divisor=3 offset=1><%= true|store key=endRow><%/if>