summaryrefslogtreecommitdiffstats
path: root/themes
diff options
context:
space:
mode:
authorAndreas Unterkircher <unki@netshadow.at>2008-05-24 09:26:11 +0200
committerAndreas Unterkircher <unki@netshadow.at>2008-05-24 09:57:13 +0200
commit2ea665ef86c5573c244ebbba797fb31cadf6752b (patch)
treede710c3e5df056d63b9a280c2e1fc24ad12b5f2a /themes
parentaab7d4d07c16dc78a6d2a41223d469a1a60e5022 (diff)
issue121, show rating value in photo-index- and single-photo-view
Signed-off-by: Andreas Unterkircher <unki@netshadow.at>
Diffstat (limited to 'themes')
-rw-r--r--themes/default/templates/photo_index.tpl8
-rw-r--r--themes/default/templates/single_photo.tpl7
2 files changed, 15 insertions, 0 deletions
diff --git a/themes/default/templates/photo_index.tpl b/themes/default/templates/photo_index.tpl
index c9da477..7fe04ab 100644
--- a/themes/default/templates/photo_index.tpl
+++ b/themes/default/templates/photo_index.tpl
@@ -78,9 +78,17 @@
<br />
{$img_name[thumb]}
</a>
+ <!-- show lightbox eyes, if enabled -->
{ if $use_lightbox }
<a href="{$web_path}/phpfspot_img.php?idx={$images[thumb]}&amp;width={$preview_width}" alt="thumb_{$images[thumb]}" rel="lightbox[photoidx]" title="Preview of {$img_fullname[thumb]}"><img src="{$web_path}/resources/eyes.png" /></a>
{ /if }
+ <!-- show F-Spot photo rating value, if available -->
+ { if $img_rating[thumb] }
+ <br />
+ {section name="rating" loop=$img_rating[thumb] step=1}
+ <img src="{$web_path}/resources/star.png" />
+ {/section}
+ { /if }
</div>
{/if}
diff --git a/themes/default/templates/single_photo.tpl b/themes/default/templates/single_photo.tpl
index 97ef0cf..b141517 100644
--- a/themes/default/templates/single_photo.tpl
+++ b/themes/default/templates/single_photo.tpl
@@ -42,6 +42,13 @@
{$ExifOrigResolution}<br />
{ /if }
<u>Size:</u>&nbsp;{$ExifFileSize}<br />
+ { if $image_rating }
+ <u><img src="{$web_path}/resources/rating.png" alt="rating" />&nbsp;Rating:</u><br />
+ {section name="rating" loop=$image_rating step=1}
+ <img src="{$web_path}/resources/star.png" />
+ {/section}
+ <br />
+ { /if }
{ if $tags }
<br />
<u><img src="{$web_path}/resources/small_available_tags.png" alt="available tags" />&nbsp;Tagged with:</u><br />