summaryrefslogtreecommitdiffstats
path: root/module/web
diff options
context:
space:
mode:
authorGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2009-12-20 23:43:21 +0100
committerGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2009-12-20 23:43:21 +0100
commit62965d0668e81fc801c4be2d61c1a0b64b0edca8 (patch)
tree99a0c667619cacd2d0adfa688a49d13c33b6655a /module/web
parentpython 2.5 compatibility (diff)
downloadpyload-62965d0668e81fc801c4be2d61c1a0b64b0edca8.tar.xz
cli + web fixes
Diffstat (limited to 'module/web')
-rw-r--r--module/web/pyload/views.py2
-rw-r--r--module/web/templates/default/base.html2
-rw-r--r--module/web/templates/default/home.html15
3 files changed, 17 insertions, 2 deletions
diff --git a/module/web/pyload/views.py b/module/web/pyload/views.py
index a51a9c4dc..1fa9d45b7 100644
--- a/module/web/pyload/views.py
+++ b/module/web/pyload/views.py
@@ -63,7 +63,7 @@ def base(request, messages):
@permission('pyload.can_see_dl')
@check_server
def home(request):
- return render_to_response(join(settings.TEMPLATE,'home.html'), RequestContext(request,{},[status_proc]))
+ return render_to_response(join(settings.TEMPLATE,'home.html'), RequestContext(request,{'content': settings.PYLOAD.status_downloads()},[status_proc]))
@login_required
diff --git a/module/web/templates/default/base.html b/module/web/templates/default/base.html
index c43d5223c..657bdcf09 100644
--- a/module/web/templates/default/base.html
+++ b/module/web/templates/default/base.html
@@ -274,7 +274,7 @@ $(document).ready(function(){
{% if perms.pyload.can_see_dl %}
<ul id="page-actions">
<li><a class="action backlink">Speed: <b id="speed">{{ status.speed }}</b> kb/s</a></li>
- <li><a class="action cog">Active: <b id="aktiv">{{ status.queue }}</b> / <b id="aktiv_from">{{ status.total }}</b></a></li>
+ <li><a class="action cog">Active: <b id="aktiv">{{ status.activ }}</b> / <b id="aktiv_from">{{ status.queue }}</b></a></li>
<li><a href="" class="action revisions" accesskey="o" rel="nofollow">Reload page</a></li>
</ul><br />
{% endif %}
diff --git a/module/web/templates/default/home.html b/module/web/templates/default/home.html
index 8124902db..43cf16ae0 100644
--- a/module/web/templates/default/home.html
+++ b/module/web/templates/default/home.html
@@ -16,6 +16,21 @@ Active Downloads
<th>Progress</th>
</tr>
<tbody id="LinksAktiv">
+
+ {% for link in content %}
+ <tr id="link_{{ link.id }}">
+ <td id="link_{{ link.id }}_name">{{ link.name }}</td>
+ <td id="link_{{ link.id }}_status">{{ link.status }}</td>
+ <td id="link_{{ link.id }}_eta">{{ content.eta }} @ {{content.speed }}</td>
+ <td id="link_{{ link.id }}_kbleft">{{ link.kbleft }}</td>
+ <td id="link_{{ link.id }}_percent"><font id="aktiv_percent">{{ link.percent }}</font>% / {{ link.size }}</td>
+ </tr>
+ <tr>
+ <td colspan="5">
+ <div id="link_{{ link.id }}_pgb" class="progress_bar" style="overflow: hidden; width: {{ link.percent }}%; display: block;">&nbsp;</div>
+ </td>
+ </tr>
+ {% endfor %}
<tbody>
</table>
{% endblock %} \ No newline at end of file