diff options
| author | 2013-02-26 19:18:34 +0100 | |
|---|---|---|
| committer | 2013-02-26 19:18:34 +0100 | |
| commit | a4bc6867bd42fca9b37156e080d1c8b058fc9ca5 (patch) | |
| tree | 00cb06f2e7acf339afe822b347f02f251ad31db9 /module/web/templates/default | |
| parent | improved package and global menu (diff) | |
| download | pyload-a4bc6867bd42fca9b37156e080d1c8b058fc9ca5.tar.xz | |
improved file view, added default plugin icon
Diffstat (limited to 'module/web/templates/default')
| -rw-r--r-- | module/web/templates/default/base.html | 4 | ||||
| -rw-r--r-- | module/web/templates/default/dashboard.html | 34 | 
2 files changed, 25 insertions, 13 deletions
diff --git a/module/web/templates/default/base.html b/module/web/templates/default/base.html index 6ec187440..77789e790 100644 --- a/module/web/templates/default/base.html +++ b/module/web/templates/default/base.html @@ -101,7 +101,7 @@                              </h3>
                              <div class="popover-content">
                                  <ul class="progress-list">
 -                                    <li>
 +                                    <li style="background-image: url('icons/sdf')">
                                          Some Download
                                          <span class="pull-right">YouTube</span>
 @@ -113,7 +113,7 @@                                              50%
                                          </span>
                                      </li>
 -                                    <li>
 +                                    <li style="background-image: url('icons/sdf')">
                                          Some Download
                                          <span class="pull-right">YouTube</span>
 diff --git a/module/web/templates/default/dashboard.html b/module/web/templates/default/dashboard.html index 5c15186df..c7bcb3783 100644 --- a/module/web/templates/default/dashboard.html +++ b/module/web/templates/default/dashboard.html @@ -38,7 +38,7 @@                  <i class="iconf-chevron-down" data-toggle="dropdown">
                  </i>
                  <ul class="dropdown-menu">
 -                    <li><a href="#"><i class="iconf-share"></i> Show</a></li>
 +                    <li><a href="#"><i class="iconf-folder-open-alt"></i> Open</a></li>
                      <li><a href="#"><i class="iconf-edit"></i> Details</a></li>
                      <li><a href="#"><i class="iconf-trash"></i> Delete</a></li>
                      <li><a href="#"><i class="iconf-refresh"></i> Recheck</a></li>
 @@ -60,26 +60,38 @@      <script type="text/template" id="template-file">
          <div class="file-row first">
 -            <%= if selected %>
 -            <i class="checkbox checked"></i>
 -            <% else %>
              <i class="checkbox"></i>
 -            <%/if%>
 -
 -            <i class="icon-file icon-white"></i> 
 +            <i class="iconf-file-alt icon-white"></i> 
              <span class="name">
              <% name %>
              </span>
          </div>
 +        <%= if finished %>
 +        <div class="file-row second finished">
 +        <% else %> <%= if failed %>
 +        <div class="file-row second failed">
 +        <% download.error %>
 +        <% else %>
          <div class="file-row second">
 +        <%/if%><%/if%>
              <% download.statusmsg %>
 -                <span class="pull-right">
 -                    Size: <% formatSize size %>
 -                </span>
          </div>
          <div class="file-row third pull-right">
 -            <% download.plugin %>
 +            {#  TODO: file type as icon  #}
 +            <% formatSize size %>
 +            <i class="iconf-music"></i>
 +            <img src="icons/<% download.plugin %>"/>
 +            <% download.plugin %> 
 +            <i class="iconf-chevron-down" data-toggle="dropdown"></i>
 +            <ul class="dropdown-menu">
 +                <li><a href="#"><i class="iconf-trash"></i> Delete</a></li>
 +                <li><a href="#"><i class="iconf-refresh"></i> Restart</a></li>
 +                <li><a href="#"><i class="iconf-download"></i> Download</a></li>
 +                <li><a href="#"><i class="iconf-share"></i> Share</a></li>
 +                <li class="divider"></li>
 +                <li><a>Addons</a></li>
 +            </ul>
          </div>
      </script>
  | 
