]> git.decadent.org.uk Git - memories.git/blob - debian/patches/102_fix-uris.diff
1fa0c8b62bea9d47990e603580dcf9ec2b39d9d5
[memories.git] / debian / patches / 102_fix-uris.diff
1 --- memories.orig/templates/album/list
2 +++ memories/templates/album/list
3 @@ -8,7 +8,7 @@
4      [% FOR album = minilist %]
5          <td>
6          <a href="[%base%]/album/view/[%album.id%]">[% album %]<br/>
7 -        <img src="[% album.photos.last.thumb_url |uri%]"></a><br/>
8 +        <img src="[% album.photos.last.thumb_url |html%]"></a><br/>
9          <span class="info">
10              [%album.photos.size %] 
11          photo[%-"s" IF album.photos.size != 1 %]
12 --- memories.orig/templates/custom/list
13 +++ memories/templates/custom/list
14 @@ -8,7 +8,7 @@
15      [% FOR object = minilist %]
16          <td>
17          <a href="[%base%]/object/view/[%object.id%]">[% object %]<br/>
18 -        <img src="[% object.photos.last.thumb_url |uri%]"></a><br/>
19 +        <img src="[% object.photos.last.thumb_url |html%]"></a><br/>
20          <span class="info">
21              [%object.photos.size %] 
22          photo[%-"s" IF object.photos.size != 1 %]</span>
23 --- memories.orig/templates/macros
24 +++ memories/templates/macros
25 @@ -1,6 +1,6 @@
26  [% MACRO minithumb(photo) BLOCK %]
27          <a href="[%base%]/photo/view/[%photo.id%]">
28 -        <img src="[% photo.thumb_url |uri%]" alt="[%photo.title|html%]"/>
29 +        <img src="[% photo.thumb_url |html%]" alt="[%photo.title|html%]"/>
30          </a>
31  [% END; MACRO thumb(photo, album) BLOCK %]
32  <table class="thumb">
33 --- memories.orig/templates/nav
34 +++ memories/templates/nav
35 @@ -4,7 +4,7 @@
36  </td><td align="right">
37  [% FOR photo = request.recent_uploads %]
38          <a href="[%base%]/photo/view/[%photo.id%]">
39 -        <img src="[% photo.thumb_url |uri%]" alt="[%photo.title|html%]"/>
40 +        <img src="[% photo.thumb_url |html%]" alt="[%photo.title|html%]"/>
41          </a>
42  [% END %]
43  </td></tr></table>
44 --- memories.orig/templates/recent.rss
45 +++ memories/templates/recent.rss
46 @@ -12,7 +12,7 @@
47          <description>
48  [% FILTER html %]
49          <a href="[%base%]/photo/view/[%photo.id%]">
50 -        <img src="[% photo.thumb_url |uri%]" alt="[%photo.title|html%]"/>
51 +        <img src="[% photo.thumb_url |html%]" alt="[%photo.title|html%]"/>
52          </a>
53  [% END %]
54          </description>
55 --- memories.orig/templates/systemtag/list
56 +++ memories/templates/systemtag/list
57 @@ -14,7 +14,7 @@
58          [% IF photos.last %]
59          <tr><td>
60          <a href="[%base%]/tag/view/[%tag.name |html|uri%]">
61 -            <img src="[% photos.last.thumb_url |uri%]">
62 +            <img src="[% photos.last.thumb_url |html%]">
63          </a>
64          </td></tr>
65          <tr><td class="info">
66 --- memories.orig/templates/tag/list
67 +++ memories/templates/tag/list
68 @@ -14,7 +14,7 @@
69          [% IF photos.last %]
70          <tr><td>
71          <a href="[%base%]/tag/view/[%tag.name |html|uri%]">
72 -            <img src="[% photos.last.thumb_url |uri%]">
73 +            <img src="[% photos.last.thumb_url |html%]">
74          </a>
75          </td></tr>
76          <tr><td class="info">
77 --- memories.orig/templates/user/list
78 +++ memories/templates/user/list
79 @@ -10,7 +10,7 @@
80          [% SET photos = user.photos %]
81          <a href="[%base%]/user/view/[%user.id%]">[% user %]<br/>
82          [% IF photos.last %]
83 -        <img src="[% photos.last.thumb_url |uri%]"></a><br/>
84 +        <img src="[% photos.last.thumb_url |html%]"></a><br/>
85          <span class="info">
86              [%photos.size %] 
87          photo[%-"s" IF photos.size != 1 %]</span>