X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=tpl%2Fdefault%2Feditlink.html;h=980b2b8e04999f982b4d509d1e696174f505d312;hb=5d8de7587d67b5c3e5d1fed8562d9b87ecde80c1;hp=7ab7e1fe3b8d7f7c5023587f6d80611a6fae14e8;hpb=b8e5a253ab5521ce2be6c0d3e04e0101527df3c1;p=github%2Fshaarli%2FShaarli.git diff --git a/tpl/default/editlink.html b/tpl/default/editlink.html index 7ab7e1fe..980b2b8e 100644 --- a/tpl/default/editlink.html +++ b/tpl/default/editlink.html @@ -1,3 +1,4 @@ +{if="empty($batch_mode)"} @@ -5,6 +6,10 @@ {include="page.header"} +{else} + {ignore}Lil hack: when included in a loop in batch mode, `$value` is assigned by RainTPL with template vars.{/ignore} + {function="extract($value) ? '' : ''"} +{/if} + +{if="empty($batch_mode)"} {include="page.footer"} {if="$link_is_new && $async_metadata"}{/if} +{/if}