diff options
-rw-r--r-- | index.php | 2 | ||||
-rw-r--r-- | tpl/default/css/shaarli.css | 8 | ||||
-rw-r--r-- | tpl/default/editlink.html | 9 |
3 files changed, 16 insertions, 3 deletions
@@ -1431,7 +1431,7 @@ function renderPage($conf, $pluginManager, $LINKSDB, $history) | |||
1431 | 'url' => $url, | 1431 | 'url' => $url, |
1432 | 'description' => $description, | 1432 | 'description' => $description, |
1433 | 'tags' => $tags, | 1433 | 'tags' => $tags, |
1434 | 'private' => $private | 1434 | 'private' => $private, |
1435 | ); | 1435 | ); |
1436 | } else { | 1436 | } else { |
1437 | $link['linkdate'] = $link['created']->format(LinkDB::LINK_DATE_FORMAT); | 1437 | $link['linkdate'] = $link['created']->format(LinkDB::LINK_DATE_FORMAT); |
diff --git a/tpl/default/css/shaarli.css b/tpl/default/css/shaarli.css index 28920648..8b86bce2 100644 --- a/tpl/default/css/shaarli.css +++ b/tpl/default/css/shaarli.css | |||
@@ -993,6 +993,14 @@ form[name="linkform"].page-form { | |||
993 | } | 993 | } |
994 | 994 | ||
995 | /** | 995 | /** |
996 | * EDIT LINK | ||
997 | */ | ||
998 | #editlinkform .created-date { | ||
999 | color: #767676; | ||
1000 | margin-bottom: 10px; | ||
1001 | } | ||
1002 | |||
1003 | /** | ||
996 | * LOGIN | 1004 | * LOGIN |
997 | */ | 1005 | */ |
998 | #login-form .remember-me { | 1006 | #login-form .remember-me { |
diff --git a/tpl/default/editlink.html b/tpl/default/editlink.html index 354499a4..d03fd72f 100644 --- a/tpl/default/editlink.html +++ b/tpl/default/editlink.html | |||
@@ -8,11 +8,15 @@ | |||
8 | <div id="editlinkform" class="pure-g"> | 8 | <div id="editlinkform" class="pure-g"> |
9 | <div class="pure-u-lg-1-5 pure-u-1-24"></div> | 9 | <div class="pure-u-lg-1-5 pure-u-1-24"></div> |
10 | <form method="post" name="linkform" class="page-form pure-u-lg-3-5 pure-u-22-24 page-form page-form-light"> | 10 | <form method="post" name="linkform" class="page-form pure-u-lg-3-5 pure-u-22-24 page-form page-form-light"> |
11 | <h2 class="window-title">{'Shaare'|t}</h2> | 11 | <h2 class="window-title"> |
12 | {if="!$link_is_new"}{'Edit'|t}{/if} | ||
13 | {'Shaare'|t} | ||
14 | </h2> | ||
12 | <input type="hidden" name="lf_linkdate" value="{$link.linkdate}"> | 15 | <input type="hidden" name="lf_linkdate" value="{$link.linkdate}"> |
13 | {if="isset($link.id)"} | 16 | {if="isset($link.id)"} |
14 | <input type="hidden" name="lf_id" value="{$link.id}"> | 17 | <input type="hidden" name="lf_id" value="{$link.id}"> |
15 | {/if} | 18 | {/if} |
19 | {if="!$link_is_new"}<div class="created-date">{'Created:'|t} {$link.created|format_date}</div>{/if} | ||
16 | <div> | 20 | <div> |
17 | <label for="lf_url">{'URL'|t}</label> | 21 | <label for="lf_url">{'URL'|t}</label> |
18 | </div> | 22 | </div> |
@@ -55,7 +59,8 @@ | |||
55 | 59 | ||
56 | 60 | ||
57 | <div class="submit-buttons center"> | 61 | <div class="submit-buttons center"> |
58 | <input type="submit" value="{'Save'|t}" name="save_edit" class="" id="button-save-edit"> | 62 | <input type="submit" name="save_edit" class="" id="button-save-edit" |
63 | value="{if="$link_is_new"}{'Save'|t}{else}{'Apply Changes'|t}{/if}"> | ||
59 | {if="!$link_is_new"} | 64 | {if="!$link_is_new"} |
60 | <a href="?delete_link&lf_linkdate={$link.id}&token={$token}" | 65 | <a href="?delete_link&lf_linkdate={$link.id}&token={$token}" |
61 | title="" name="delete_link" class="button button-red confirm-delete"> | 66 | title="" name="delete_link" class="button button-red confirm-delete"> |