|
4 | 4 | % if(~ $req_path /p/[0-9]*) echo '<br />' |
5 | 5 | % if(! test -f $postd/spam || ~ $req_path /p/[0-9]*) { |
6 | 6 | <div class="card"> |
7 | | - <div class="card-content" onclick="window.location='/p/%($postn%)'"> |
| 7 | +% if(~ $req_path /p/[0-9]*) { |
| 8 | + <div class="card-content"> |
| 9 | +% } |
| 10 | +% if not { |
| 11 | + <div class="card-content clicky" onclick="window.location='/p/%($postn%)'"> |
| 12 | +% } |
8 | 13 | % sed $postfilter < $postf |
| 14 | +% if(test -f $postd/image.*) { |
| 15 | +% file=`{basename `{ls $postd/image.*}} |
| 16 | +% if(~ $req_path /p/[0-9]*) { |
| 17 | + <br /><a href="%($postn%)_werc/%($file%)"><img src="%($postn%)_werc/%($file%)" class="attachment" /></a> |
| 18 | +% } |
| 19 | +% if not { |
| 20 | + <br /><a href="%($postn%)_werc/%($file%)">%($file%)</a> |
| 21 | +% } |
| 22 | +% } |
9 | 23 | </div> |
10 | 24 | <div class="card-action"> |
11 | 25 |
|
|
145 | 159 | <h5><a href="%($shareurl%)">%($shareurl%)</a></h5> |
146 | 160 | <p class="break-word"> |
147 | 161 | % sed $postfilter < $postf |
| 162 | +% if(test -f $postd/image.*) { |
| 163 | +% file=`{ls $postd/image.*} |
| 164 | + <br /><a href="%($postd%)/%($file%)">%($file%)</a> |
| 165 | +% } |
148 | 166 | </p> |
149 | 167 | <div class="collection"> |
150 | 168 | <a class="collection-item" href="http://twitter.com/home/?status=%($shareurl%)"> |
|
189 | 207 | <h5><a href="%($shareurl%)">%($shareurl%)</a></h5> |
190 | 208 | <p class="break-word"> |
191 | 209 | % sed $postfilter < $postf |
| 210 | +% if(test -f $postd/image.*) { |
| 211 | +% file=`{ls $postd/image.*} |
| 212 | + <br /><a href="%($postd%)/%($file%)">%($file%)</a> |
| 213 | +% } |
192 | 214 | </p> |
193 | 215 | <div class="collection"> |
194 | 216 | <a class="collection-item" href="http://twitter.com/home/?status=%($shareurl%)"> |
|
253 | 275 | <h5><a href="%($shareurl%)">%($shareurl%)</a></h5> |
254 | 276 | <p class="break-word"> |
255 | 277 | % sed $postfilter < $postf |
| 278 | +% if(test -f $postd/image.*) { |
| 279 | +% file=`{ls $postd/image.*} |
| 280 | + <br /><a href="%($postd%)/%($file%)">%($file%)</a> |
| 281 | +% } |
256 | 282 | </p> |
257 | 283 | <div class="collection"> |
258 | 284 | <form action="" method="post"> |
|
280 | 306 | <h5><a href="%($shareurl%)">%($shareurl%)</a></h5> |
281 | 307 | <p class="break-word"> |
282 | 308 | % sed $postfilter < $postf |
| 309 | +% if(test -f $postd/image.*) { |
| 310 | +% file=`{ls $postd/image.*} |
| 311 | + <br /><a href="%($postd%)/%($file%)">%($file%)</a> |
| 312 | +% } |
283 | 313 | </p> |
284 | 314 | <div class="collection"> |
285 | 315 | <form action="" method="post"> |
|
309 | 339 | <h5>If you wrote this post and set a password when you did, enter it below. If not, you're out of luck.</h5> |
310 | 340 | <p class="break-word"> |
311 | 341 | % sed $postfilter < $postf |
| 342 | +% if(test -f $postd/image.*) { |
| 343 | +% file=`{ls $postd/image.*} |
| 344 | + <br /><a href="%($postd%)/%($file%)">%($file%)</a> |
| 345 | +% } |
312 | 346 | </p> |
313 | 347 | <form action="" method="post"> |
314 | 348 | <input type="hidden" name="postn" value="%($postn%)"> |
|
328 | 362 | <h5>If you wrote this post and set a password when you did, enter it below. If not, you're out of luck.</h5> |
329 | 363 | <p class="break-word"> |
330 | 364 | % sed $postfilter < $postf |
| 365 | +% if(test -f $postd/image.*) { |
| 366 | +% file=`{ls $postd/image.*} |
| 367 | + <br /><a href="%($postd%)/%($file%)">%($file%)</a> |
| 368 | +% } |
331 | 369 | </p> |
332 | 370 | <br /><div class="input-field"> |
333 | 371 | <input type="password" name="delete" id="delete%($postn%)"> |
|
349 | 387 | <h5>If you wrote this post and set a password when you did, enter it below. If not, you're out of luck.</h5> |
350 | 388 | <p class="break-word"> |
351 | 389 | % sed $postfilter < $postf |
| 390 | +% if(test -f $postd/image.*) { |
| 391 | +% file=`{ls $postd/image.*} |
| 392 | + <br /><a href="%($postd%)/%($file%)">%($file%)</a> |
| 393 | +% } |
352 | 394 | </p> |
353 | 395 | <br /><div class="input-field"> |
354 | 396 | <input type="password" name="delete" id="delete%($postn%)"> |
|
0 commit comments