diff options
author | Seb Sauvage <sebsauvage@sebsauvage.net> | 2011-12-16 21:27:16 +0100 |
---|---|---|
committer | Emilien Klein <emilien@klein.st> | 2011-12-16 21:27:16 +0100 |
commit | 3433e5e8a84e3952502b79296f945e6dde2a7d75 (patch) | |
tree | 98fc646456708df7d3b133ed7f33835c1f1b059f /tpl/linklist.html | |
parent | 5112a433897d4d6507982b64bb07333b774ddb3a (diff) | |
download | Shaarli-3433e5e8a84e3952502b79296f945e6dde2a7d75.tar.gz Shaarli-3433e5e8a84e3952502b79296f945e6dde2a7d75.tar.zst Shaarli-3433e5e8a84e3952502b79296f945e6dde2a7d75.zip |
Version 0.0.32 beta:
- Changed: HTML generation moved to RainTPL templates (in the tpl/ directory).
- Added: Better check on URL parameters (patch by gege2061).
- Changed: Better detection of HTTPS (patch by gege2061).
- Changed: In RSS/ATOM feeds, the GUID is now the permalink instead of the final URL (patch by gege2061).
- Changed: Jerrywham CSS patch included.
- Changed: Multiple spaces are now respected in description. Thus you can use Shaarli as a personal pastebin (for posting source code, for example). I also added a max-height and overflow:auto so that content can be scrolled if too large.
- Corrected: Tab order changed in login screen.
- Corrected: Permalinks now work even if additional parameters have been added (eg. /?E8Yj2Q&utm_source=blablabla…)
- Corrected: user.css is included only if the file is present (This prevent a useless CSS include which makes a harmless but useless 404 error.).
- Removed: Page time generation was removed.
Diffstat (limited to 'tpl/linklist.html')
-rw-r--r-- | tpl/linklist.html | 61 |
1 files changed, 61 insertions, 0 deletions
diff --git a/tpl/linklist.html b/tpl/linklist.html new file mode 100644 index 00000000..c7de5b87 --- /dev/null +++ b/tpl/linklist.html | |||
@@ -0,0 +1,61 @@ | |||
1 | <html> | ||
2 | <head>{include="includes"}</head> | ||
3 | <body> | ||
4 | <div id="pageheader"> | ||
5 | {include="page.header"} | ||
6 | <div id="headerform" style="width:100%; white-space:nowrap;";> | ||
7 | <form method="GET" class="searchform" name="searchform" style="display:inline;"><input type="text" name="searchterm" style="width:30%" value=""> <input type="submit" value="Search" class="bigbutton"></form> | ||
8 | <form method="GET" class="tagfilter" name="tagfilter" style="display:inline;margin-left:24px;"><input type="text" name="searchtags" id="searchtags" style="width:10%" value=""> <input type="submit" value="Filter by tag" class="bigbutton"></form> | ||
9 | </div> | ||
10 | </div> | ||
11 | |||
12 | <div id="linklist"> | ||
13 | |||
14 | {include="linklist.paging"} | ||
15 | |||
16 | {if="$search_type=='fulltext'"} | ||
17 | <div id="searchcriteria">{$result_count} results for <i>{$search_crits}</i></div> | ||
18 | {/if} | ||
19 | {if="$search_type=='tags'"} | ||
20 | <div id="searchcriteria">{$result_count} results for tags <i> | ||
21 | {loop="search_crits"} | ||
22 | <span class="linktag" title="Remove tag"><a href="?removetag={$value|htmlspecialchars}">{$value|htmlspecialchars} <span style="border-left:1px solid #aaa; padding-left:5px; color:#6767A7;">x</span></a></span> | ||
23 | {/loop}</i></div> | ||
24 | {/if} | ||
25 | |||
26 | <ul> | ||
27 | {loop="links"} | ||
28 | <li{if="$value.class"} class="{$value.class}"{/if}> | ||
29 | <div class="thumbnail">{$value.url|thumbnail}</div> | ||
30 | <div class="linkcontainer"> | ||
31 | <span class="linktitle"><a href="{$redirector}{$value.url|htmlspecialchars}">{$value.title|htmlspecialchars}</a></span> | ||
32 | {if="isLoggedIn()"} | ||
33 | <form method="GET" class="buttoneditform"><input type="hidden" name="edit_link" value="{$value.linkdate}"><input type="image" alt="Edit" src="images/edit_icon.png#" title="Edit" class="button_edit"></form> | ||
34 | <form method="POST" class="buttoneditform"><input type="hidden" name="lf_linkdate" value="{$value.linkdate}"> | ||
35 | <input type="hidden" name="token" value="{$token}"><input type="hidden" name="delete_link"><input type="image" alt="Delete" src="images/delete_icon.png#" title="Delete" class="button_delete" onClick="return confirmDeleteLink();"></form> | ||
36 | {/if} | ||
37 | <br> | ||
38 | {if="$value.description"}<div class="linkdescription"{if condition="$search_type=='permalink'"} style="max-height:none !important;"{/if}>{$value.description}</div>{/if} | ||
39 | {if="!$GLOBALS['config']['HIDE_TIMESTAMPS'] || isLoggedIn()"} | ||
40 | <span class="linkdate" title="Permalink"><a href="?{$value.linkdate|smallHash}">{$value.localdate|htmlspecialchars} - permalink</a> - </span> | ||
41 | {else} | ||
42 | <span class="linkdate" title="Short link here"><a href="?{$value.linkdate|smallHash}">permalink</a> - </span> | ||
43 | {/if} | ||
44 | <span class="linkurl" title="Short link">{$value.url|htmlspecialchars}</span><br> | ||
45 | {if="$value.tags"} | ||
46 | <div class="linktaglist"> | ||
47 | {loop="value.taglist"}<span class="linktag" title="Add tag"><a href="?addtag={$value|htmlspecialchars}">{$value|htmlspecialchars}</a></span> {/loop} | ||
48 | </div> | ||
49 | {/if} | ||
50 | </div> | ||
51 | </li> | ||
52 | {/loop} | ||
53 | </ul> | ||
54 | |||
55 | {include="linklist.paging"} | ||
56 | |||
57 | </div> | ||
58 | |||
59 | {include="page.footer"} | ||
60 | </body> | ||
61 | </html> \ No newline at end of file | ||