{% extends "layout.html" %}

{% block content %}

<ol class="breadcrumb">
    <li><a href="{{ url_for('account_view') }}">Account</a></li>
    <li><a href="{{ url_for('subscription_view', subscription_id=subscription_id) }}">{{subscription_id}}</a></li>
    <li><a href="{{ url_for('resourcegroup_view', subscription_id=subscription_id, resource_group_name=resource_group_name) }}">{{resource_group_name}}</a></li>
    <li><a href="{{ url_for('storageaccount_view', subscription_id=subscription_id, resource_group_name=resource_group_name, account_name=account_name) }}">{{account_name}}</a></li>
    <li class="active">{{model.container_name}}</li>
</ol>

<h3>Blobs</h3>
<table class="table table-striped table-condensed">
    <thead>
        <tr>
            <th>Name</th>
            <th>Blob Type</th>
            <th>Length</th>
            <th>Type</th>
            <th>Encoding</th>
            <th>Language</th>
            <th>MD5</th>
            <th>Modified</th>
            <th>SAS URL*</th>
        </tr>
    </thead>
    <tbody>
        {% for blob in model.blobs %}
        <tr>
            <td>{{blob.name}}</td>
            <td>{{blob.properties.blob_type}}</td>
            <td>{{blob.properties.content_length}}</td>
            <td>{{blob.properties.content_type}}</td>
            <td>{{blob.properties.content_encoding}}</td>
            <td>{{blob.properties.content_language}}</td>
            <td>{{blob.properties.content_hex_md5}}</td>
            <td>{{blob.properties.last_modified}}</td>
            <td><a href="{{blob.sas_url|safe}}">Link</a></td>
        </tr>
        {% endfor %}
    </tbody>
</table>

<p>
* SAS URL is valid until {{model.sas_policy.access_policy.expiry}}.
</p>

{% endblock %}
