# HG changeset patch # User Thomas De Schampheleire # Date 2018-05-21 14:26:06 # Node ID 5fc420b5c49c17b6f72c6943edb3d6c51e80a404 # Parent 8e5450cd4686944bd33573407be689fe85529782 admin: hooks: move informative span to 'custom hooks' Explaining what hooks are is mostly useful on the 'custom hooks' section, as the built-in hooks are read-only. diff --git a/kallithea/templates/admin/settings/settings_hooks.html b/kallithea/templates/admin/settings/settings_hooks.html --- a/kallithea/templates/admin/settings/settings_hooks.html +++ b/kallithea/templates/admin/settings/settings_hooks.html @@ -8,7 +8,6 @@ ${h.text(hook.ui_key,hook.ui_value,id=input_id,size=60,readonly="readonly",class_='form-control')} % endfor - ${_('Hooks can be used to trigger actions on certain events such as push / pull. They can trigger Python functions or external applications.')} @@ -16,6 +15,7 @@ ${h.form(url('admin_settings_hooks'), method='post')}

${_('Custom Hooks')}

+ ${_('Hooks can be used to trigger actions on certain events such as push / pull. They can trigger Python functions or external applications.')} %for hook in c.custom_hooks:
<% input_id = hook.ui_key.replace('.', '_') %>