docs/.templates/markdoc-default/listing.html @ d93fe1c921f9
- Add |anyapplied, |anyunapplied, |anycount, and |nondefault filters. - |anyapplied, |anyunapplied, |anycount, are filters to patch and when applied will make change the behavior so that if no patches are present then nothing will be printed - |nondefault is a filter for branch that will stop anything being printed if the branch is the default one. So only non-default branches are printed.
| author | Jason Harris <jasonh@wolfram.com> |
|---|---|
| date | Fri, 27 Nov 2009 13:24:49 +0100 |
| parents | 2a8eea4463c3 |
| children | (none) |
{% extends 'base.html' %} {% block title %}ls /{{ directory|e }}{% endblock %} {% block body %} <h1><code>ls /{{ directory|e }}</code></h1> {% if sub_directories %} <h2>Directories</h2> <table id="subdirs"> {% for subdir in sub_directories %} <tr> <td class="name"> <a class="dirlink" href="{{ document_root }}{{ subdir.href|e }}"> {{ subdir.basename|e }}/ </a> </td> </tr> {% endfor %} </table> {% endif %} {% if pages %} <h2>Pages</h2> <table id="pages"> {% for page in pages %} <tr> <td class="size">{{ page.humansize }}</td> <td class="name"> <a href="{{ document_root }}{{ page.href|e }}.html" title="{{ page.title|e }}"> {{ page.title|e }} </a> </td> </tr> {% endfor %} </table> {% endif %} {% if files %} <h2>Files</h2> <table id="files"> {% for file in files %} <tr> <td class="size">{{ file.humansize }}</td> <td class="name"> <a href="{{ document_root }}{{ file.href|e }}"> <code>{{ file.basename|e }}</code> </a> </td> </tr> {% endfor %} </table> {% endif %} {% endblock %}