From 2cf160d497e501bf254bd8be054c0f5880ab90ca Mon Sep 17 00:00:00 2001 From: RaNaN Date: Sat, 8 Jun 2013 17:37:43 +0200 Subject: restructured webui to single-page-app, removed jinja --- module/web/templates/500.html | 9 - module/web/templates/default/accounts.html | 54 ----- module/web/templates/default/admin.html | 223 ------------------ .../templates/default/backbone/accountDialog.html | 40 ---- .../templates/default/backbone/confirmDialog.html | 11 - .../templates/default/backbone/linkgrabber.html | 46 ---- module/web/templates/default/backbone/modal.html | 15 -- .../default/backbone/pluginChooserDialog.html | 23 -- .../templates/default/backbone/queryDialog.html | 33 --- module/web/templates/default/base.html | 254 --------------------- module/web/templates/default/dashboard.html | 214 ----------------- module/web/templates/default/login.html | 43 ---- module/web/templates/default/settings.html | 105 --------- module/web/templates/default/setup.html | 16 -- module/web/templates/mobile/base.html | 84 ------- module/web/templates/mobile/login.html | 31 --- 16 files changed, 1201 deletions(-) delete mode 100644 module/web/templates/500.html delete mode 100644 module/web/templates/default/accounts.html delete mode 100644 module/web/templates/default/admin.html delete mode 100755 module/web/templates/default/backbone/accountDialog.html delete mode 100644 module/web/templates/default/backbone/confirmDialog.html delete mode 100755 module/web/templates/default/backbone/linkgrabber.html delete mode 100755 module/web/templates/default/backbone/modal.html delete mode 100755 module/web/templates/default/backbone/pluginChooserDialog.html delete mode 100755 module/web/templates/default/backbone/queryDialog.html delete mode 100644 module/web/templates/default/base.html delete mode 100644 module/web/templates/default/dashboard.html delete mode 100644 module/web/templates/default/login.html delete mode 100644 module/web/templates/default/settings.html delete mode 100644 module/web/templates/default/setup.html delete mode 100644 module/web/templates/mobile/base.html delete mode 100644 module/web/templates/mobile/login.html (limited to 'module/web/templates') diff --git a/module/web/templates/500.html b/module/web/templates/500.html deleted file mode 100644 index 8bffe6dbb..000000000 --- a/module/web/templates/500.html +++ /dev/null @@ -1,9 +0,0 @@ - - - - Server Error - - -

Server Error occured. Please enable debug mode to get a more detailed report.

- - diff --git a/module/web/templates/default/accounts.html b/module/web/templates/default/accounts.html deleted file mode 100644 index a509a010d..000000000 --- a/module/web/templates/default/accounts.html +++ /dev/null @@ -1,54 +0,0 @@ -{% extends 'default/base.html' %} - -{% block title %}{{ _("Accounts") }} - {{ super() }} {% endblock %} -{% block subtitle %}{{ _("Accounts") }} -{% endblock %} - -{% block css %} - -{% endblock %} - -{% block require %} - App.initAccountView(); -{% endblock %} - -{% block head %} - -{% endblock %} - -{% block actionbar %} - - - -{% endblock %} - -{% block content %} - {# TODO: responsive layout instead of table #} -
- - - - - - - - - - - - - - - -
PluginNameValidPremiumTrafficSharedActivatedDelete
-
-{% endblock %} \ No newline at end of file diff --git a/module/web/templates/default/admin.html b/module/web/templates/default/admin.html deleted file mode 100644 index 9bbcc2104..000000000 --- a/module/web/templates/default/admin.html +++ /dev/null @@ -1,223 +0,0 @@ -{% extends 'default/base.html' %} - -{% block title %}{{ _("Admin") }} - {{ super() }} {% endblock %} -{% block subtitle %}{{ _("Admin") }} -{% endblock %} - -{% block css %} - - -{% endblock %} - -{% block require %} -{% endblock %} - -{% block content %} -
-
-
- - - - - - - - -
- -
-
-

Support

- - - - - - - - - - - - - - - - - -
- - - Wiki | - Forum | - Chat -
- - - Documentation -
- - - Development -
- - - Issue Tracker -
-
- System - -
-
-
- - - {##} - - -{% endblock %} \ No newline at end of file diff --git a/module/web/templates/default/backbone/accountDialog.html b/module/web/templates/default/backbone/accountDialog.html deleted file mode 100755 index 7961ad2ba..000000000 --- a/module/web/templates/default/backbone/accountDialog.html +++ /dev/null @@ -1,40 +0,0 @@ -{% extends 'default/backbone/modal.html' %} -{% block header %} - Add an account -{% endblock %} -{% block content %} -
- - Please enter your account data - -
- -
- -
-
-
- -
- -
-
-
- -
- -
-
- -
-{% endblock %} -{% block buttons %} - Add - Close -{% endblock %} \ No newline at end of file diff --git a/module/web/templates/default/backbone/confirmDialog.html b/module/web/templates/default/backbone/confirmDialog.html deleted file mode 100644 index cf30f5f8e..000000000 --- a/module/web/templates/default/backbone/confirmDialog.html +++ /dev/null @@ -1,11 +0,0 @@ -{% extends 'default/backbone/modal.html' %} -{% block header %} - Please confirm -{% endblock %} -{% block content %} - Do you want to delete the selected items? -{% endblock %} -{% block buttons %} - Delete - Cancel -{% endblock %} \ No newline at end of file diff --git a/module/web/templates/default/backbone/linkgrabber.html b/module/web/templates/default/backbone/linkgrabber.html deleted file mode 100755 index 4bedd922c..000000000 --- a/module/web/templates/default/backbone/linkgrabber.html +++ /dev/null @@ -1,46 +0,0 @@ -{% extends 'default/backbone/modal.html' %} -{% block header %} - AddPackage - paste&add links to pyLoad -{% endblock %} -{% block content %} - -
-
- - -
- -
-
-
- - -
- -
-
-
- - -
- -
-
-
- - -
- - -
-
- -
-{% endblock %} -{% block buttons %} - Add - Close -{% endblock %} \ No newline at end of file diff --git a/module/web/templates/default/backbone/modal.html b/module/web/templates/default/backbone/modal.html deleted file mode 100755 index ed618f3d0..000000000 --- a/module/web/templates/default/backbone/modal.html +++ /dev/null @@ -1,15 +0,0 @@ - - - \ No newline at end of file diff --git a/module/web/templates/default/backbone/pluginChooserDialog.html b/module/web/templates/default/backbone/pluginChooserDialog.html deleted file mode 100755 index a455b0cfd..000000000 --- a/module/web/templates/default/backbone/pluginChooserDialog.html +++ /dev/null @@ -1,23 +0,0 @@ -{% extends 'default/backbone/modal.html' %} -{% block header %} - Choose a plugin -{% endblock %} -{% block content %} -
- - Please choose a plugin, which you want to configure - -
- -
- -
-
-
-{% endblock %} -{% block buttons %} - Add - Close -{% endblock %} \ No newline at end of file diff --git a/module/web/templates/default/backbone/queryDialog.html b/module/web/templates/default/backbone/queryDialog.html deleted file mode 100755 index fd6eb55ee..000000000 --- a/module/web/templates/default/backbone/queryDialog.html +++ /dev/null @@ -1,33 +0,0 @@ -{% extends 'default/backbone/modal.html' %} -{% block header %} - <% title %> - - <% plugin %> - -{% endblock %} -{% block content %} -
- <% description %> - <%= if captcha %> -
- -
- -
-
-
- -
-
-
- <% else %> - <% content %> - <%/if%> -
-{% endblock %} -{% block buttons %} - Submit - Close -{% endblock %} \ No newline at end of file diff --git a/module/web/templates/default/base.html b/module/web/templates/default/base.html deleted file mode 100644 index 45d72d104..000000000 --- a/module/web/templates/default/base.html +++ /dev/null @@ -1,254 +0,0 @@ - -{# TODO: set language from config #} - - - - - {% block title %}pyLoad WebUI{% endblock %} - - - - - - - - - - - {# TODO precompile less, use when not in devel mode #} - - {% block css %} - {% endblock %} - - - - - - - - - - - - {% block head %} - {% endblock %} - - -
-
-
-
-
- - pyLoad -
- {% if user %} -
-
- - - -
-
-
-

- Running... - -

-
-
    -
    -
    -
    -
    -
    -
    -
    - Max. Speed:
    - Running:
    - Reconnect:
    -
    - -
    - -
    - -
    - - - -
    -
    - -
    -
    -
    - {% endif %} -
    -
    -
    -
    -
    -
    -
    -
    - {# just a placeholder #} -
    - {% block actionbar %} - {% endblock %} -
    -
    - {# TODO: messages #} - {% for msg in messages %} -

    {{ msg }}

    - {% endfor %} - - {% block content %} - {% endblock content %} -
    -
    -
    - - -{% block deferred %} -{% endblock deferred %} - - diff --git a/module/web/templates/default/dashboard.html b/module/web/templates/default/dashboard.html deleted file mode 100644 index 41da71c6c..000000000 --- a/module/web/templates/default/dashboard.html +++ /dev/null @@ -1,214 +0,0 @@ -{% extends 'default/base.html' %} -{% block title %} - {{ _("Dashboard") }} - {{ super() }} -{% endblock %} - -{% block css %} - -{% endblock %} - -{% block require %} - App.initDashboard(); -{% endblock %} - -{% block head %} - - - - - - -{% endblock %} - -{% block actionbar %} - -{% endblock %} - - -{% block content %} - -
    - - - - - - -
    -
    - -
    -{% endblock %} \ No newline at end of file diff --git a/module/web/templates/default/login.html b/module/web/templates/default/login.html deleted file mode 100644 index c8cd78a33..000000000 --- a/module/web/templates/default/login.html +++ /dev/null @@ -1,43 +0,0 @@ -{% extends 'default/base.html' %} -{% block title %}{{_("Login")}} - {{super()}} {% endblock %} -{% block content %} -
    -{% if logout %} -
    - {{_("You were successfully logged out.")}} -
    -{% endif %} -
    -
    -
    - Login -
    - -
    - -
    -
    -
    - -
    - -
    -
    -
    -
    - - -
    -
    -
    -
    -
    -
    -{% if errors %} -

    {{_("Your username and password didn't match. Please try again.")}}

    - {{ _("To reset your login data or add an user run:") }} python pyLoadCore.py -u -{% endif %} -
    -{% endblock %} \ No newline at end of file diff --git a/module/web/templates/default/settings.html b/module/web/templates/default/settings.html deleted file mode 100644 index 20424606f..000000000 --- a/module/web/templates/default/settings.html +++ /dev/null @@ -1,105 +0,0 @@ -{% extends 'default/base.html' %} - -{% block title %}{{ _("Settings") }} - {{ super() }} {% endblock %} -{% block subtitle %}{{ _("Settings") }} -{% endblock %} - -{% block css %} - -{% endblock %} - -{% block require %} - App.initSettingsView(); -{% endblock %} - -{% block head %} - - - - -{% endblock %} - -{% block actionbar %} - - - -{% endblock %} - -{% block content %} -
    - -
    -
    -
    -
    -

    Please choose a config section

    -
    -
    -
    -{% endblock %} \ No newline at end of file diff --git a/module/web/templates/default/setup.html b/module/web/templates/default/setup.html deleted file mode 100644 index e5c9f4b8c..000000000 --- a/module/web/templates/default/setup.html +++ /dev/null @@ -1,16 +0,0 @@ -{% extends 'default/base.html' %} -{% block title %} - {{_("Setup")}} - {{ super()}} -{% endblock %} - -{% block content %} -
    -

    You did it!

    -

    pyLoad is running and ready for configuration.

    -

    - - Go on - -

    -
    -{% endblock %} \ No newline at end of file diff --git a/module/web/templates/mobile/base.html b/module/web/templates/mobile/base.html deleted file mode 100644 index c40d1449b..000000000 --- a/module/web/templates/mobile/base.html +++ /dev/null @@ -1,84 +0,0 @@ - - - - - - {% block title %}pyLoad {{ _("Webinterface") }}{% endblock %} - - - - - - - - - - - - - - - - - - {% block head %}{% endblock %} - - - -
    -
    - {% block header %}{% endblock %} - {% if user %} - -
    - -
    - {% endif %} - -
    -
    - {% block content %}{% endblock %} -
    -
    - {% block footer %}{% endblock %} -
    - - {{ _("Desktop Version") }} - - - {{ _("Pyload") }} - -
    - -
    -
    - {% block pages %}{% endblock %} - - diff --git a/module/web/templates/mobile/login.html b/module/web/templates/mobile/login.html deleted file mode 100644 index 5821cc0c8..000000000 --- a/module/web/templates/mobile/login.html +++ /dev/null @@ -1,31 +0,0 @@ -{% extends 'mobile/base.html' %} -{% block title %}{{_("Login")}} - {{super()}} {% endblock %} - -{% block header %} -

    - PyLoad Login -

    -{% endblock %} - -{% block content %} -
    -
    -
    - - -
    -
    -
    -
    - - -
    -
    - -
    -{% endblock %} - -- cgit v1.2.3