X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=templates%2Fphoto%2Fview;h=0216bdaeacb01c6fa3da2392829796043034c962;hb=f9656aa2ad257959dd4ed469714ca75791b70040;hp=46714844e8022309c048f8df7537415157aa852c;hpb=944db1a7ad953f6ed4ff66e75ad174b1859155bb;p=memories.git diff --git a/templates/photo/view b/templates/photo/view index 4671484..0216bda 100644 --- a/templates/photo/view +++ b/templates/photo/view @@ -61,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 %]
@@ -101,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"); }