<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:py="http://genshi.edgewall.org/"
      xmlns:xi="http://www.w3.org/2001/XInclude">

<xi:include href="master.html" />
<head>
  <title py:if="hasattr(value, 'display_name')"
    py:content="'%s (%s)' % (value.display_name, value.name)" />
  <title py:if="not hasattr(value, 'display_name')"
    py:content="model" />
</head>
<body>
  <div id="sidebar">
    <h3>Actions</h3>
    <ul>
      <li>Show storage content</li>
      <li>
        <a py:attrs="dict(href=tg.url('/storage/%d/edit'%tubestorage.id))">
          Edit storage
        </a>
      </li>
    </ul>
  </div>
  <div id="content">
    <h2 py:if="hasattr(value, 'display_name')"
      py:content="'%s (%s)' % (value.display_name, value.name)" />
    <h2 py:if="not hasattr(value, 'display_name')"
      py:content="model" />
    <p><strong>Identifier:</strong> ${tubestorage.identifier}</p>
    <p><strong>Key:</strong> ${tubestorage.key}</p>
    <p><strong>Value:</strong> ${tubestorage.value}</p>
  <!--!    ${XML(tmpl_context.widget(value=value, action='./'))} -->
  </div>
</body>
</html>
