diff options
author | ArthurHoaro <arthur@hoa.ro> | 2018-01-01 15:46:04 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-01-01 15:46:04 +0100 |
commit | fcbc67edf072cc88a329fd6b73b002c3e2474971 (patch) | |
tree | a8c112bf2503f6de16c40d01305024bbd56f8653 /tpl/default/pluginsadmin.html | |
parent | d77bdb432a5ad69b9167c6eada5d8713446daaeb (diff) | |
parent | d7995542598b31378637bf457a776b52b556ffde (diff) | |
download | Shaarli-fcbc67edf072cc88a329fd6b73b002c3e2474971.tar.gz Shaarli-fcbc67edf072cc88a329fd6b73b002c3e2474971.tar.zst Shaarli-fcbc67edf072cc88a329fd6b73b002c3e2474971.zip |
Merge pull request #1044 from ArthurHoaro/hotfix/plugins-parameter-button
Fix an issue preventing the Save button to appear for plugin parameters
Diffstat (limited to 'tpl/default/pluginsadmin.html')
-rw-r--r-- | tpl/default/pluginsadmin.html | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tpl/default/pluginsadmin.html b/tpl/default/pluginsadmin.html index ca17b435..b2d7cdc5 100644 --- a/tpl/default/pluginsadmin.html +++ b/tpl/default/pluginsadmin.html | |||
@@ -137,9 +137,9 @@ | |||
137 | {if="count($enabledPlugins)==0"} | 137 | {if="count($enabledPlugins)==0"} |
138 | <p class="center">{'No plugin enabled.'|t}</p> | 138 | <p class="center">{'No plugin enabled.'|t}</p> |
139 | {else} | 139 | {else} |
140 | {$counter=0} | 140 | {$nbParameters=0} |
141 | {loop="$enabledPlugins"} | 141 | {loop="$enabledPlugins"} |
142 | {$counter=$counter+count($value.parameters)} | 142 | {$nbParameters=$nbParameters+count($value.parameters)} |
143 | {if="count($value.parameters) > 0"} | 143 | {if="count($value.parameters) > 0"} |
144 | <div class="plugin_parameters"> | 144 | <div class="plugin_parameters"> |
145 | <h3 class="window-subtitle">{function="str_replace('_', ' ', $key)"}</h3> | 145 | <h3 class="window-subtitle">{function="str_replace('_', ' ', $key)"}</h3> |
@@ -161,7 +161,7 @@ | |||
161 | </div> | 161 | </div> |
162 | {/if} | 162 | {/if} |
163 | {/loop} | 163 | {/loop} |
164 | {if="$counter===0"} | 164 | {if="$nbParameters===0"} |
165 | <p class="center">{'No parameter available.'|t}</p> | 165 | <p class="center">{'No parameter available.'|t}</p> |
166 | {else} | 166 | {else} |
167 | <div class="center"> | 167 | <div class="center"> |