{% extends "pagetemplate.j2.html" %} {% set time = imp0rt( 'time' ) %} {% set webapi = imp0rt( 'kaithem.api.web' ) %} {% block body %}

Module {{ name| escape }}

Module: {{ name| escape }}
{% if ro %}

This module is read-only, change the save location to make changes.

{% endif %}
{{ getModuleHash(name) }}
{{ getModuleWordHash(name) }}

Download this module as a zip file

Name:

Info:

Save Location(blank=default):


{% if pages.canUserDoThis("system_admin") %} {% else %}

You must have the "system_admin" permission to make changes. Are you logged in?

{% endif %}
Quick Actions
{% for i in webapi._module_plugin_links %} {{ i[0] }} {% endfor %}
Upload

Location:

{{ name| escape }} {% if path %} {% for i in breadcrumbs('/'.join(path)) %} {{ i[0]| escape }} {% endfor %} {% endif %}

Folders

{% if path and len(path[0].split("/"))>1 %}
..
{% endif %} {% for i in sorted_module_path_list(name, path) %} {% if module[i]['resource_type'] == 'directory' %}
{% endif %} {% endfor %}

Files

{% for i in sorted_module_file_list(name, path) %}

{{ i[0] | escape }}

{% for j in webapi._file_resource_links %} {% if j(name, i[1]) %} {{ j(name, i[1])[0] }} {% endif %} {% endfor %}

Download

{% for j in webapi._file_preview_plugins %} {% set prv=j({'module':name, 'resource':i[1], 'timestamp':i[2], 'size':i[3], 'path':i[4]}) %} {% if prv %} {{prv}} {% endif %} {% endfor %}
{% endfor %}

Resources

{% for i in sorted_module_path_list(name, path) %} {% if not 'resource_type' in module[i] %} OBJECT {{ i| escape }} MISSING resource_type <% continue %> {% endif %} {% if module[i]['resource_type'] == 'permission' %}
{% endif %} {% if module[i]['resource_type'] in modules_state.additionalTypes %}

{% if module[i]['resource_lock'] in modules_state.additionalTypes %} LOCKED {% endif %} {{ i.split("/")[-1] | escape }}

{% if module[i].get('resource_label_image') %} thumbnail {% endif %}
{{modules.additionalTypes[module[i]['resource_type']]._blurb(name,i,module[i] )}}
{% elif module[i]['resource_type'] not in("directory", "permission") and not i.startswith("__") %}

{% if module[i]['resource_lock'] in modules_state.additionalTypes %} LOCKED {% endif %} {{ i.split("/")[-1] | escape }}

{% if module[i].get('resource_label_image') %} thumbnail {% endif %}
Unknown resource type: {{module[i]['resource_type']}}. You may be missing a plugin.
{% endif %} {% endfor %}
{% endblock %}