projects
/
Sone.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Use correct attribute to check for presence of album image.
[Sone.git]
/
src
/
main
/
resources
/
templates
/
imageBrowser.html
diff --git
a/src/main/resources/templates/imageBrowser.html
b/src/main/resources/templates/imageBrowser.html
index
6faea11
..
3b36e03
100644
(file)
--- a/
src/main/resources/templates/imageBrowser.html
+++ b/
src/main/resources/templates/imageBrowser.html
@@
-70,11
+70,13
@@
<%foreach album.albums album>
<div class="album image">
<a href="imageBrowser.html?album=<% album.id|html>">
<%foreach album.albums album>
<div class="album image">
<a href="imageBrowser.html?album=<% album.id|html>">
- <%ifnull album.
i
mage>
+ <%ifnull album.
albumI
mage>
<img src="images/unknown-image-0.png" width="200" height="150" alt="<% album.title|html>" title="<% album.title|html>" />
<%else><!-- TODO -->
<img src="images/unknown-image-0.png" width="200" height="150" alt="<% album.title|html>" title="<% album.title|html>" />
<%else><!-- TODO -->
- <
img src="images/unknown-image-0.png" width="200" height="150" alt="<% album.title|html>" title="<% album.title|html>" /
>
+ <
% album.albumImage|image-link max-width=200 max-height=150 title==album.title
>
<%/if>
<%/if>
+ <br/>
+ <% album.title|html>
</a>
</div>
<%/foreach>
</a>
</div>
<%/foreach>
@@
-89,7
+91,7
@@
<% album.description|html>
</div>
<% album.description|html>
</div>
- <%if album.sone.
current
>
+ <%if album.sone.
local
>
<%include include/uploadImage.html>
<%include include/createAlbum.html>
<%include include/uploadImage.html>
<%include include/createAlbum.html>
@@
-191,8
+193,7
@@
<h2><%= Page.ImageBrowser.Image.Delete.Title|l10n|html></h2>
<h2><%= Page.ImageBrowser.Image.Delete.Title|l10n|html></h2>
- <form id="delete-image" action="deleteImage.html" method="post">
- <input type="hidden" name="formPassword" value="<%formPassword|html>" />
+ <form id="delete-image" action="deleteImage.html" method="get">
<input type="hidden" name="image" value="<%image.id|html>" />
<button type="submit"><%= Page.ImageBrowser.Image.Button.Delete|l10n|html></button>
</form>
<input type="hidden" name="image" value="<%image.id|html>" />
<button type="submit"><%= Page.ImageBrowser.Image.Button.Delete|l10n|html></button>
</form>
@@
-232,16
+233,18
@@
<%foreach sone.albums album>
<div class="album image">
<a href="imageBrowser.html?album=<% album.id|html>">
<%foreach sone.albums album>
<div class="album image">
<a href="imageBrowser.html?album=<% album.id|html>">
- <%ifnull album.
i
mage>
+ <%ifnull album.
albumI
mage>
<img src="images/unknown-image-0.png" width="200" height="150" alt="<% album.title|html>" title="<% album.title|html>" />
<%else><!-- TODO -->
<img src="images/unknown-image-0.png" width="200" height="150" alt="<% album.title|html>" title="<% album.title|html>" />
<%else><!-- TODO -->
- <
img src="images/unknown-image-0.png" width="200" height="150" alt="<% album.title|html>" title="<% album.title|html>" /
>
+ <
% album.albumImage|image-link max-width=200 max-height=150 title==album.title
>
<%/if>
<%/if>
+ <br/>
+ <% album.title|html>
</a>
</div>
<%/foreach>
</a>
</div>
<%/foreach>
- <%if sone.
current
>
+ <%if sone.
local
>
<%include include/createAlbum.html>
<%/if>
<%include include/createAlbum.html>
<%/if>