X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=templates%2Fphoto%2Fview;h=0216bdaeacb01c6fa3da2392829796043034c962;hb=b67f1fe09214ad25f9bf5b8248d5a16a3fdfa0d3;hp=617484c81c13884fa82c532ab5e3d680efc3e8e9;hpb=426b02d7e53067a411a549d1a80240381d52ab62;p=memories.git diff --git a/templates/photo/view b/templates/photo/view index 617484c..0216bda 100644 --- a/templates/photo/view +++ b/templates/photo/view @@ -33,7 +33,9 @@ In albums: Photo shot on [% photo.shot.ymd %]
Uploaded by [% photo.uploader %] - +
+[% photo.hit_count %] view[%IF photo.hit_count > 1%]s[%END%] + @@ -59,33 +61,7 @@ photo.uploader %] END %] -
- [% SET sizes = request.config.sizes %] - [% IF request.params.exists("scale") %] - [% SET size = request.params.scale %] - [% ELSIF request.session.scale %] - [% SET size = request.session.scale %] - [% ELSE; SET size = 1; END; %] - -

(Original size [%photo.dimensions %])

-

- Size: - [% SET i = 0; WHILE i < sizes.size %] - [% IF photo.is_bigger(sizes.$i); %] - [% IF i == size %] - [% sizes.$i %] - [% ELSIF sizes.$i == "full" %] - full - [% ELSE %] - [% sizes.$i %] - [% END %] - [% END; %] - [% SET i = i + 1 %] - [% END %] -

- [%# Now put it back in the session %] - [% SET request.session.scale = size %] -
+[% PROCESS sized %] [% IF photo.description OR photo.copyright OR photo.license %]
@@ -99,7 +75,7 @@ END %] function select_tab(name) { document.getElementsByClassName("active").each(function (x) { x.removeClassName("active")}); new Ajax.Updater("content","[%base%]/photo/"+name+"/[%photo.id%]", - { method: "get" } + { method: "get", evalScripts: true } ) $(name).addClassName("active"); }