Source

markwiki / templates / markdoc-default / listing.html

Thejesh GN 5377ad4 

























































{% extends 'base.html' %}

{% block title %}ls /{{ directory|e }}{% endblock %}

{% block body_attrs %}class="listing"{% endblock %}

{% block content %}
  <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="{{ make_relative(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="{{ make_relative(page.href)|e }}" 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="{{ make_relative(file.href)|e }}">
            <code>{{ file.basename|e }}</code>
          </a>
        </td>
      </tr>
    {% endfor %}
  </table>
  {% endif %}
{% endblock %}
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.