summaryrefslogtreecommitdiffstats
path: root/pyload/web/app/templates/default/linkgrabber
diff options
context:
space:
mode:
Diffstat (limited to 'pyload/web/app/templates/default/linkgrabber')
-rwxr-xr-xpyload/web/app/templates/default/linkgrabber/modal.html41
-rw-r--r--pyload/web/app/templates/default/linkgrabber/package.html30
2 files changed, 71 insertions, 0 deletions
diff --git a/pyload/web/app/templates/default/linkgrabber/modal.html b/pyload/web/app/templates/default/linkgrabber/modal.html
new file mode 100755
index 000000000..67e2e4fe3
--- /dev/null
+++ b/pyload/web/app/templates/default/linkgrabber/modal.html
@@ -0,0 +1,41 @@
+<div class="modal-header">
+ <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
+ <h3>
+ {{_ "Add links" }}
+ <small>{{_ "paste & add links to pyLoad" }}</small>
+ </h3>
+</div>
+
+<div class="modal-body">
+ <div class="alert alert-error hidden">
+ {{_ "Upload files container failed. Please try again." }}
+ </div>
+ <form class="form-horizontal">
+ <div class="control-group">
+ <label class="control-label" for="inputLinks">{{ _ "Links" }}</label>
+
+ <div class="controls">
+ <textarea id="inputLinks" class="span4" rows="2" placeholder="{{_ " Paste your links here..."}}"></textarea>
+ </div>
+ </div>
+ <div class="control-group">
+ <label class="control-label" for="inputContainer">{{_ "Upload container file" }}</label>
+ <div class="controls controls-row">
+ <input type="text" id="inputContainer" class="span3" readonly>
+ <button id="inputContainer-btn" class="btn span1" type="button">{{_ "Browse" }}&hellip;</button>
+ </div>
+ </div>
+
+ <legend>
+ {{_ "Packages" }}
+ </legend>
+ <div class="container-fluid prepared-packages">
+
+ </div>
+ </form>
+</div>
+
+<div class="modal-footer">
+ <!--<a class="btn btn-success"><i class="icon-plus icon-white"></i> {{_ "Add"}}</a>-->
+ <a class="btn btn-close">{{_ "Close"}}</a>
+</div> \ No newline at end of file
diff --git a/pyload/web/app/templates/default/linkgrabber/package.html b/pyload/web/app/templates/default/linkgrabber/package.html
new file mode 100644
index 000000000..54f6f4ad1
--- /dev/null
+++ b/pyload/web/app/templates/default/linkgrabber/package.html
@@ -0,0 +1,30 @@
+<strong>{{ name }}</strong> - <button class="btn btn-small btn-blue btn-expand"><i class="icon-arrow-down"></i> </button> <button class="btn btn-small btn-success btn-add"><i class="icon-plus"></i> </button> <button class="btn btn-small btn-danger btn-delete"><i class="icon-trash"></i> </button> <br>
+<table class="table table-condensed" {{#unless expanded}}style="display: none"{{/unless}}>
+ <tbody>
+ {{#each links}}
+ <tr>
+ <td>{{ name }}</td>
+ <td><img src="{{ pluginIcon plugin }}"> {{ plugin }}</td>
+ <td>{{ linkStatus status }}</td>
+ <td><button class="btn btn-danger btn-mini" data-index={{@index}}><i class="icon-trash"></i></button></td>
+ </tr>
+ {{/each}}
+ </tbody>
+</table>
+<hr>
+{{ ngettext "%d link" "%d links" length }}:
+{{#if online}}
+<span class="text-success">
+ {{ online }} {{_ "online" }}
+</span>
+{{/if}}
+{{#if offline}}
+<span class="text-error">
+ {{ offline }} {{_ "offline" }}
+</span>
+{{/if}}
+{{#if unknown}}
+<span class="text-info">
+ {{ unknown }} {{_ "unknown" }}
+</span>
+{{/if}}