diff options
author | Simo Sorce <simo@redhat.com> | 2014-04-07 16:49:06 -0400 |
---|---|---|
committer | Simo Sorce <simo@redhat.com> | 2014-04-11 17:25:54 -0400 |
commit | 0464f1403990d3bfd85cd471f6676e70b1e81648 (patch) | |
tree | c8c87d56d7b26a7f02bb63a308ba4b884fe4f842 /templates | |
parent | e8c8dce4043fa4fb3bb636cab21be77978642002 (diff) | |
download | ipsilon.git-0464f1403990d3bfd85cd471f6676e70b1e81648.tar.gz ipsilon.git-0464f1403990d3bfd85cd471f6676e70b1e81648.tar.xz ipsilon.git-0464f1403990d3bfd85cd471f6676e70b1e81648.zip |
Change provider plugins registration and enablement
When plugins are not enabled at startup the admin page is not available
as it is created only on enablement.
Split enablement and registration, so plugins can be registered even
when actually disabled.
Also rework the way enablement is tracked and make sure enablement status
is saved back to the database when it changes so it is kept on restarts.
Signed-off-by: Simo Sorce <simo@redhat.com>
Diffstat (limited to 'templates')
-rw-r--r-- | templates/admin/providers.html | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/admin/providers.html b/templates/admin/providers.html index fbeb54d..66230d7 100644 --- a/templates/admin/providers.html +++ b/templates/admin/providers.html @@ -7,7 +7,7 @@ <div class="row"> <div class="col-md-3 col-sm-3 col-xs-6">{{ p }}</div> <div class="col-md-3 col-sm-3 col-xs-6"> - {% if available[p] in enabled %} + {% if p in enabled %} <a class="btn btn-default" href="{{ baseurl }}/disable/{{ p }}">Disable</a> <a class="btn btn-default" href="{{ baseurl }}/{{ p }}">Configure</a> {% if available[p].admin %} |