summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorTomas Bzatek <tbzatek@users.sourceforge.net>2013-02-10 19:28:28 +0100
committerTomas Bzatek <tbzatek@users.sourceforge.net>2013-02-10 19:28:28 +0100
commit0bdfd296ea68a2ec796be603faba3a85586c4a4e (patch)
treee1ef2aa82cc2b561b5cb385625b0bd3091df2729 /templates
parentb033b9068bc99c16025f7530dd3b282ec54d564b (diff)
downloadcataract-0bdfd296ea68a2ec796be603faba3a85586c4a4e.tar.xz
Show note for password protected albums on index pages
Also adds IS_PROTECTED define in local item scope.
Diffstat (limited to 'templates')
-rw-r--r--templates/styles.css4
-rw-r--r--templates/template_index.html6
2 files changed, 7 insertions, 3 deletions
diff --git a/templates/styles.css b/templates/styles.css
index ea337f9..4b5cc27 100644
--- a/templates/styles.css
+++ b/templates/styles.css
@@ -401,6 +401,10 @@ div.index_item img {
bottom: 1.9em;
}
+.album_protected_note {
+ color: #c8bc00;
+ font-size: 65%;
+}
/****** IMAGE BORDER STYLES ******/
img#border_single {
diff --git a/templates/template_index.html b/templates/template_index.html
index 1565a4a..7229933 100644
--- a/templates/template_index.html
+++ b/templates/template_index.html
@@ -40,7 +40,7 @@
<a href="$(ALBUM_SUBPATH)">
<img src="$(IMG_THUMBNAIL)" width="$(IMG_SIZE_THUMB_W)" height="$(IMG_SIZE_THUMB_H)" alt="" />
<span class="album_text"><!-- $(IMG_TITLE) --></span><br />
- <span class="album_subtext"><!-- $(IMG_DESCRIPTION) --></span>
+ <span class="album_subtext"><!-- $(IMG_DESCRIPTION) --><!-- $(ifdef(IS_PROTECTED)) --><span class="album_protected_note"><br /><br />(This album is password protected)</span><!-- $(endif(IS_PROTECTED)) --></span>
<span class="album_note">(<!-- $(ALBUM_NUM_ITEMS) --> items)</span>
</a>
</div>
@@ -51,7 +51,7 @@
<a href="$(ALBUM_SUBPATH)">
<img src="$(IMG_THUMBNAIL)" width="$(IMG_SIZE_THUMB_W)" height="$(IMG_SIZE_THUMB_H)" alt="" />
<span class="album_text_portrait"><!-- $(IMG_TITLE) --></span><br />
- <span class="album_subtext_portrait"><!-- $(IMG_DESCRIPTION) --></span>
+ <span class="album_subtext_portrait"><!-- $(IMG_DESCRIPTION) --><!-- $(ifdef(IS_PROTECTED)) --><span class="album_protected_note"><br /><br />(This album is password protected)</span><!-- $(endif(IS_PROTECTED)) --></span>
<span class="album_note">(<!-- $(ALBUM_NUM_ITEMS) --> items)</span>
</a>
</div>
@@ -62,7 +62,7 @@
<a href="$(ALBUM_SUBPATH)">
<img src="$(IMG_THUMBNAIL)" width="$(IMG_SIZE_THUMB_W)" height="$(IMG_SIZE_THUMB_H)" alt="" />
<span class="album_text_squared"><!-- $(IMG_TITLE) --></span><br />
- <span class="album_subtext_squared"><!-- $(IMG_DESCRIPTION) --></span>
+ <span class="album_subtext_squared"><!-- $(IMG_DESCRIPTION) --><!-- $(ifdef(IS_PROTECTED)) --><span class="album_protected_note"><br /><br />(This album is password protected)</span><!-- $(endif(IS_PROTECTED)) --></span>
<span class="album_note">(<!-- $(ALBUM_NUM_ITEMS) --> items)</span>
</a>
</div>