{% extends "base.html" %} {% set title = 'Settings' -%} {% set active_page = active_page|default('settings') -%} {% set active_sub_page = active_sub_page|default('settings') -%} {% block headInject %} {% endblock %} {% block content %}
{% set last_type = '' -%} {% for plugin in plugins -%} {%if last_type != plugin._type%} {%if not loop.first%}{%endif%} {{plugin._type}} {%endif%} {% set last_type = plugin._type -%} {% endfor %}
{% for plugin in plugins -%}

{{ plugin.screenName }}{% if plugin._type != 'MediaTypeManager'%} ({{ plugin.instance }}){% endif %} {%if plugin._type != 'MediaTypeManager'%} {%endif%}

{{plugin.getConfigHtml()}}

{{plugin['config_meta']['plugin_desc']|striptags|urlize|dereferMeText}}

{% for config in plugin.c.configs %} {% if plugin['config_meta'][config.name]['on_live_change'] %} {% set onChange = "pluginAjaxCall(this, '"~plugin.type~"', '"~plugin.instance~"', '"~plugin.name.replace(' ', '_').replace('(', '').replace(')', '')~"_content', '"~plugin['config_meta'][config.name]['on_live_change'].__name__~"')" %} {%endif%} {% if config.name == 'plugin_order'%} {% else %}
{% if 'select' in config.name %} {% else %} {% if config.curType() == 'int' and 'enable' not in config.name -%} {% set inputType = 'number" step="any'%} {% elif config.curType() == 'bool' or 'enable' in config.name%} {% if config.value %} {# this is a little dodgy. we append the checked attr with manipulating the string that is set for the input type#} {% set inputType = 'checkbox" checked="checked'%} {% else %} {% set inputType = 'checkbox'%} {% endif %} {% elif 'password' in config.name %} {% set inputType = 'password'%} {% else %} {% set inputType = 'text'%} {%- endif %} {% endif %}
{% endif %} {% endfor %} {% if plugin['config_meta']['plugin_buttons'] %} {% for name, button in plugin['config_meta']['plugin_buttons'].items()%}

{{button['desc']}}

{% endfor %} {% endif %} {% if not plugin.single %}
{% endif %}

Version {{ plugin.version }} {% set score = plugin.getMyScore()|round(2) %} Pylint Score {{ score }} {%if plugin._type in ('Downloader','Indexer')%} {%for dtIdentifier, extension in plugin.getSupportedDownloadExtensions().items()%} {{extension}} {%endfor%} {%endif%} {%if plugin._type == 'Provider'%} Tag: {{plugin.tag}} {%for mtm in plugin._getSupportedManagers()%} {{mtm.screenName}} {%else%} This only supports (an) unknown MediaTypeManager(s): {{plugin.types}} {%endfor%} {%endif%}

{% endfor %}
{% endblock %}