aboutsummaryrefslogtreecommitdiffhomepage
path: root/tpl
diff options
context:
space:
mode:
authorSébastien SAUVAGE <sebsauvage@sebsauvage.net>2013-02-27 17:46:45 +0100
committerSébastien SAUVAGE <sebsauvage@sebsauvage.net>2013-02-27 17:46:45 +0100
commitb2877611c329725a961b24fa18114f2fd41873b6 (patch)
tree4a8211ca103d867ded5c84e119f6e957ba2a9d2f /tpl
parent9e975d86e4d1b915b2bc87251a13f3467508ac9a (diff)
downloadShaarli-b2877611c329725a961b24fa18114f2fd41873b6.tar.gz
Shaarli-b2877611c329725a961b24fa18114f2fd41873b6.tar.zst
Shaarli-b2877611c329725a961b24fa18114f2fd41873b6.zip
Edit/delete button on the left-side of links.
https://github.com/sebsauvage/Shaarli/issues/5
Diffstat (limited to 'tpl')
-rw-r--r--tpl/linklist.html10
1 files changed, 6 insertions, 4 deletions
diff --git a/tpl/linklist.html b/tpl/linklist.html
index bfb1fcda..267e13bc 100644
--- a/tpl/linklist.html
+++ b/tpl/linklist.html
@@ -32,12 +32,14 @@
32 <li{if="$value.class"} class="{$value.class}"{/if}> 32 <li{if="$value.class"} class="{$value.class}"{/if}>
33 <div class="thumbnail">{$value.url|thumbnail}</div> 33 <div class="thumbnail">{$value.url|thumbnail}</div>
34 <div class="linkcontainer"> 34 <div class="linkcontainer">
35 <span class="linktitle"><a href="{$redirector}{$value.url}">{$value.title|htmlspecialchars}</a></span>
36 {if="isLoggedIn()"} 35 {if="isLoggedIn()"}
37 <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> 36 <div class="linkeditbuttons">
38 <form method="POST" class="buttoneditform"><input type="hidden" name="lf_linkdate" value="{$value.linkdate}"> 37 <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><br>
39 <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> 38 <form method="POST" class="buttoneditform"><input type="hidden" name="lf_linkdate" value="{$value.linkdate}">
39 <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>
40 </div>
40 {/if} 41 {/if}
42 <span class="linktitle"><a href="{$redirector}{$value.url}">{$value.title|htmlspecialchars}</a></span>
41 <br> 43 <br>
42 {if="$value.description"}<div class="linkdescription"{if condition="$search_type=='permalink'"} style="max-height:none !important;"{/if}>{$value.description}</div>{/if} 44 {if="$value.description"}<div class="linkdescription"{if condition="$search_type=='permalink'"} style="max-height:none !important;"{/if}>{$value.description}</div>{/if}
43 {if="!$GLOBALS['config']['HIDE_TIMESTAMPS'] || isLoggedIn()"} 45 {if="!$GLOBALS['config']['HIDE_TIMESTAMPS'] || isLoggedIn()"}