Source

wdmmg / wdmmg / templates / enumeration_value / view.html

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

  <py:def function="nav_class">nav-key</py:def>

  <py:def function="page_title">View enumeration value</py:def>
  
  <div py:def="content">
    <p>
      <a href="${url(controller='key', action='view', name_or_id=c.key.name)}">
        ${c.key.name}</a>: ${c.row.name}
    </p>
    <dl class="key_list">
      <py:if test="c.row.keyvalues">
      <dt>Related keys:</dt>
      <dd>
        <dl>
          <py:for each="key, value in c.row.keyvalues.items()">
            <dt>${key.name}:</dt> <dd>${value}</dd>
          </py:for>
        </dl>
      </dd>
      </py:if>
      <py:if test="c.row.notes">
      <dt>Notes:</dt> <dd>
        ${h.markdown(c.row.notes)}
       </dd>
      </py:if>
    </dl>

	<div py:choose="c.page.items" class="num-entries">
    <span py:if="c.page.item_count>0"> ${c.page.item_count} entries with total amount of &pound;${h.format_number(c.total)}.</span>
	<span py:if="c.page.item_count==0">No entries with this property.</span>
	</div>

  <xi:include href="../_timegraph.html" />

    ${c.page.pager(items_per_page=c.items_per_page)}
        ${render_short_entries([ txn.to_flat_dict() for txn in c.page.items])}
    ${c.page.pager(items_per_page=c.items_per_page)}

  </div>

  <xi:include href="../layout.html" />
</html>