Advertisement
greatbn

Untitled

Mar 3rd, 2016
112
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 2.37 KB | None | 0 0
  1. {% extends "base.html" %}
  2. {% block content %}
  3. <table>
  4.     <tr>
  5.         <td valign="top">
  6.             <div class="panel panel-default ">
  7.               <div class="panel-heading">
  8.                 <h3 class="panel-title">Containers</h3>
  9.               </div>
  10.               <div class="panel-body">
  11.                 <table class="table table-bordered">
  12.                     <thead>
  13.                       <tr>
  14.                         <th>Name</th>
  15.                         <th>Details</th>
  16.                         <th>Action</th>
  17.                       </tr>
  18.                     </thead>
  19.                     <tbody>
  20.                      {% for i in range(0,list_containers|length) %}
  21.                         <tr>
  22.                             <td><a href="/home/{{ list_containers[i]['name'] }}">{{ list_containers[i]['name'] }}</a></td>
  23.                             <td>
  24.                             Object Count: {{ list_containers[i]['count'] }}<br>
  25.                             Size: {{ list_containers[i]['bytes']|filesizeformat }}<br> 
  26.                             </td>
  27.                         </tr>
  28.                      {% endfor %}
  29.                     </tbody>
  30.                   </table>
  31.               </div>
  32.             </div>
  33.         </td>
  34.         <td valign="top">
  35.             <div class="panel panel-default">
  36.               <div class="panel-heading">
  37.                      <h3 class="panel-title">Objects</h3>
  38.                   <button type="button" class="btn btn-primary">Upload Object</button>             
  39.               </div>
  40.               <div class="panel-body">
  41.                 {% if container_info == None %}
  42.                     <div class="panel panel-default">
  43.                       <div class="panel-body" style="align:center">
  44.                         Select a container to browse.
  45.                       </div>
  46.                     </div>
  47.  
  48.                 {% else %}
  49.                     {% if container_info|length == 0 %}
  50.                         <div class="panel panel-default">
  51.                           <div class="panel-body" style="align:center">
  52.                             No items to display.
  53.  
  54.                           </div>
  55.                         </div>
  56.                     {% else %}
  57.                         <table class="table table-bordered">
  58.                             <tbody>
  59.                             {% for i in range(container_info|length) %}
  60.                                 {% if 'subdir' in container_info[i] %}
  61.                                     <tr>
  62.                                     <td><a href="{{ container_name  }}?dir={{ container_info[i]['subdir_origin'] }}"> {{ container_info[i]['subdir'] }}</a></td>
  63.                                     <td>pseudo-folder</td>                                 
  64.                                     </tr>
  65.                                 {% else %}
  66.                                     <tr>
  67.                                         <td>{{ container_info[i]['name'] }}</td>
  68.                                         <td>{{ container_info[i]['bytes']|filesizeformat }}</td>
  69.                                        
  70.                                     </tr>
  71.                                 {% endif %}
  72.                             {% endfor %}
  73.                             </tbody>
  74.                           </table>
  75.                     {% endif %}
  76.                 {% endif %}
  77.               </div>
  78.             </div>
  79.         </td>
  80.     </tr>
  81.  
  82. </table>
  83.  
  84.  
  85. {% endblock %}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement