diff options
Diffstat (limited to 'module/web/templates/default/queue.html')
| -rw-r--r-- | module/web/templates/default/queue.html | 20 | 
1 files changed, 10 insertions, 10 deletions
diff --git a/module/web/templates/default/queue.html b/module/web/templates/default/queue.html index d33a11032..d149853d5 100644 --- a/module/web/templates/default/queue.html +++ b/module/web/templates/default/queue.html @@ -96,27 +96,27 @@ document.addEvent("domready", function(){  </li>{% endblock %}
  {% block content %}
 -{% for package in content %}
 -<div id="package_{{package.data.id}}" class="package">
 +{% for id, package in content.iteritems %}
 +<div id="package_{{id}}" class="package">
      <div class="packagename" style="cursor: pointer;">
 -        {{ package.data.package_name }}
 +        {{ package.name }}
            
          <img title="{% trans "Delete Package" %}" width="12px" height="12px" src="{{ MEDIA_URL }}img/delete.png" />
            
          <img title="{% trans "Restart Package" %}" style="margin-left: -10px" height="12px" src="{{ MEDIA_URL }}img/arrow_refresh.png" />
      </div>
 -    <div id="children_{{package.data.id}}" style="display: none;" class="children">
 -    {% for child in package.children %}
 -    <div class="child" id="file_{{child.id}}">
 +    <div id="children_{{id}}" style="display: none;" class="children">
 +    {% for lid, child in package.links.iteritems %}
 +    <div class="child" id="file_{{lid}}">
          <span class="child_status">
 -            <img src="/media/default/img/status_{{child.status_type}}.png" style="width: 12px; height:12px;"/>
 +            <img src="/media/default/img/status_{{child.status}}.png" style="width: 12px; height:12px;"/>
          </span>
 -        <span style="font-size: 15px">{{ child.filename }}</span><br />
 +        <span style="font-size: 15px">{{ child.name }}</span><br />
      <div class="child_secrow">
 -        <span class="child_status">{{ child.status_type }}</span>{{child.status_error}} 
 +        <span class="child_status">{{ child.status }}</span>{{child.error}} 
          <span class="child_status">{{ child.size }} KB</span>
          <span class="child_status">{{ child.plugin }}</span>
 -        <span class="child_status">{% trans "Folder:" %} {{child.folder}}</span>
 +        <span class="child_status">{% trans "Folder:" %} {{package.folder}}</span>
            
          <img title="{% trans "Delete Link" %}" style="cursor: pointer;" width="10px" height="10px" src="{{ MEDIA_URL }}img/delete.png" />
            
  | 
