aboutsummaryrefslogtreecommitdiffhomepage
path: root/tpl
diff options
context:
space:
mode:
authorArthurHoaro <arthur@hoa.ro>2016-11-28 16:16:44 +0100
committerArthurHoaro <arthur@hoa.ro>2016-12-12 03:03:12 +0100
commit01878a75b93b9966f7366ea2937c118bbc3e459e (patch)
tree92286b70b4dd67a1bbd8d030fac6c0a70f64ded0 /tpl
parent1dc37f9cf8397e6050c4d5d981da263e6333a849 (diff)
downloadShaarli-01878a75b93b9966f7366ea2937c118bbc3e459e.tar.gz
Shaarli-01878a75b93b9966f7366ea2937c118bbc3e459e.tar.zst
Shaarli-01878a75b93b9966f7366ea2937c118bbc3e459e.zip
Apply the new ID system accros the whole codebase
Diffstat (limited to 'tpl')
-rw-r--r--tpl/daily.html4
-rw-r--r--tpl/editlink.html3
-rw-r--r--tpl/linklist.html6
3 files changed, 8 insertions, 5 deletions
diff --git a/tpl/daily.html b/tpl/daily.html
index b82ad483..eba0af3b 100644
--- a/tpl/daily.html
+++ b/tpl/daily.html
@@ -49,13 +49,13 @@
49 {$link=$value} 49 {$link=$value}
50 <div class="dailyEntry"> 50 <div class="dailyEntry">
51 <div class="dailyEntryPermalink"> 51 <div class="dailyEntryPermalink">
52 <a href="?{$link.linkdate|smallHash}"> 52 <a href="?{$value.shorturl}">
53 <img src="../images/squiggle2.png" width="25" height="26" title="permalink" alt="permalink"> 53 <img src="../images/squiggle2.png" width="25" height="26" title="permalink" alt="permalink">
54 </a> 54 </a>
55 </div> 55 </div>
56 {if="!$hide_timestamps || isLoggedIn()"} 56 {if="!$hide_timestamps || isLoggedIn()"}
57 <div class="dailyEntryLinkdate"> 57 <div class="dailyEntryLinkdate">
58 <a href="?{$link.linkdate|smallHash}">{function="strftime('%c', $link.timestamp)"}</a> 58 <a href="?{$value.shorturl}">{function="strftime('%c', $link.timestamp)"}</a>
59 </div> 59 </div>
60 {/if} 60 {/if}
61 {if="$link.tags"} 61 {if="$link.tags"}
diff --git a/tpl/editlink.html b/tpl/editlink.html
index 9e7621db..870cc168 100644
--- a/tpl/editlink.html
+++ b/tpl/editlink.html
@@ -16,6 +16,9 @@
16 <div id="editlinkform"> 16 <div id="editlinkform">
17 <form method="post" name="linkform"> 17 <form method="post" name="linkform">
18 <input type="hidden" name="lf_linkdate" value="{$link.linkdate}"> 18 <input type="hidden" name="lf_linkdate" value="{$link.linkdate}">
19 {if="isset($link.id)"}
20 <input type="hidden" name="lf_id" value="{$link.id}">
21 {/if}
19 <label for="lf_url"><i>URL</i></label><br><input type="text" name="lf_url" id="lf_url" value="{$link.url}" class="lf_input"><br> 22 <label for="lf_url"><i>URL</i></label><br><input type="text" name="lf_url" id="lf_url" value="{$link.url}" class="lf_input"><br>
20 <label for="lf_title"><i>Title</i></label><br><input type="text" name="lf_title" id="lf_title" value="{$link.title}" class="lf_input"><br> 23 <label for="lf_title"><i>Title</i></label><br><input type="text" name="lf_title" id="lf_title" value="{$link.title}" class="lf_input"><br>
21 <label for="lf_description"><i>Description</i></label><br><textarea name="lf_description" id="lf_description" rows="4" cols="25">{$link.description}</textarea><br> 24 <label for="lf_description"><i>Description</i></label><br><textarea name="lf_description" id="lf_description" rows="4" cols="25">{$link.description}</textarea><br>
diff --git a/tpl/linklist.html b/tpl/linklist.html
index ddfd729a..de9586c6 100644
--- a/tpl/linklist.html
+++ b/tpl/linklist.html
@@ -71,11 +71,11 @@
71 {if="isLoggedIn()"} 71 {if="isLoggedIn()"}
72 <div class="linkeditbuttons"> 72 <div class="linkeditbuttons">
73 <form method="GET" class="buttoneditform"> 73 <form method="GET" class="buttoneditform">
74 <input type="hidden" name="edit_link" value="{$value.linkdate}"> 74 <input type="hidden" name="edit_link" value="{$value.id}">
75 <input type="image" alt="Edit" src="images/edit_icon.png#" title="Edit" class="button_edit"> 75 <input type="image" alt="Edit" src="images/edit_icon.png#" title="Edit" class="button_edit">
76 </form><br> 76 </form><br>
77 <form method="POST" class="buttoneditform"> 77 <form method="POST" class="buttoneditform">
78 <input type="hidden" name="lf_linkdate" value="{$value.linkdate}"> 78 <input type="hidden" name="lf_linkdate" value="{$value.id}">
79 <input type="hidden" name="token" value="{$token}"> 79 <input type="hidden" name="token" value="{$token}">
80 <input type="hidden" name="delete_link"> 80 <input type="hidden" name="delete_link">
81 <input type="image" alt="Delete" src="images/delete_icon.png#" title="Delete" 81 <input type="image" alt="Delete" src="images/delete_icon.png#" title="Delete"
@@ -91,7 +91,7 @@
91 {if="!$hide_timestamps || isLoggedIn()"} 91 {if="!$hide_timestamps || isLoggedIn()"}
92 {$updated=$value.updated_timestamp ? 'Edited: '. strftime('%c', $value.updated_timestamp) : 'Permalink'} 92 {$updated=$value.updated_timestamp ? 'Edited: '. strftime('%c', $value.updated_timestamp) : 'Permalink'}
93 <span class="linkdate" title="Permalink"> 93 <span class="linkdate" title="Permalink">
94 <a href="?{$value.linkdate|smallHash}"> 94 <a href="?{$value.shorturl}">
95 <span title="{$updated}"> 95 <span title="{$updated}">
96 {function="strftime('%c', $value.timestamp)"} 96 {function="strftime('%c', $value.timestamp)"}
97 {if="$value.updated_timestamp"}*{/if} 97 {if="$value.updated_timestamp"}*{/if}