From 066333c03ca6f484b8e1505e7626d2d01f252bf5 Mon Sep 17 00:00:00 2001 From: ArthurHoaro Date: Fri, 6 Jan 2017 16:08:19 +0100 Subject: Fix delete button in editlink This one was forgotten in #682 --- tpl/default/css/shaarli.css | 12 +++++++++--- tpl/default/editlink.html | 8 +++++++- 2 files changed, 16 insertions(+), 4 deletions(-) (limited to 'tpl/default') diff --git a/tpl/default/css/shaarli.css b/tpl/default/css/shaarli.css index 10709b6a..6d73af3e 100644 --- a/tpl/default/css/shaarli.css +++ b/tpl/default/css/shaarli.css @@ -42,7 +42,7 @@ strong { } /* Buttons */ -.bigbutton { +.bigbutton, #pageheader a.bigbutton { background-color: #c0c0c0; background: -moz-linear-gradient(#c0c0c0, #ffffff) repeat scroll 0 0 transparent; background: -webkit-gradient(linear, 0 0, 0 bottom, from(#c0c0c0), to(#ffffff)); @@ -54,11 +54,17 @@ strong { box-shadow: 0 1px 1px rgba(0, 0, 0, 0.5); cursor: pointer; height: 24px; - margin-left: 5px; padding: 0 5px; + margin: 5px 5px 0 0; color: #606060; border-style: outset; border-width: 1px; + display: inline-block; +} + +a.bigbutton, #pageheader a.bigbutton { + height: 22px; + line-height: 22px; } .smallbutton { @@ -1009,7 +1015,7 @@ div.dailyNoEntry { display: inline !important; } - .tagfilter input.bigbutton, .searchform input.bigbutton, .addform input.bigbutton { + .tagfilter input.bigbutton, .searchform input.bigbutton, .addform input.bigbutton, a.bigbutton { width: 30%; font-size: smaller; } diff --git a/tpl/default/editlink.html b/tpl/default/editlink.html index d3f99fe6..a2d9b78f 100644 --- a/tpl/default/editlink.html +++ b/tpl/default/editlink.html @@ -39,7 +39,13 @@ {/if} - {if="!$link_is_new"}{/if} + {if="!$link_is_new && isset($link.id)"} + + {'Delete'|t} + + {/if} {if="$http_referer"}{/if} -- cgit v1.2.3