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