somewhat fragile simple URL tests for views_doc.py with ordinary unit tests. The new tests are still fairly basic but at least test more than the URL tests did. - Legacy-Id: 5295
29 lines
684 B
HTML
29 lines
684 B
HTML
{% extends "base.html" %}
|
|
|
|
{% block title %}Writeups for {{ doc.name }}-{{ doc.rev }}{% endblock %}
|
|
|
|
{% block pagehead %}
|
|
<link rel="stylesheet" type="text/css" href="/css/doc.css"></link>
|
|
{% endblock %}
|
|
|
|
{% block content %}
|
|
{{ top|safe }}
|
|
|
|
{% for title, subtitle, writeups in sections %}
|
|
<h2>{{ title }}</h2>
|
|
|
|
{% if subtitle %}<p>{{ subtitle|safe }}</p>{% endif %}
|
|
|
|
{% for name, text, url in writeups %}
|
|
<div class="writeup">
|
|
{% if can_edit %}<a href="{{ url }}" class="edit button">{% if text %}Edit{% else %}Generate{% endif %} {{ name }}</a>{% endif %}
|
|
|
|
<pre {% if can_edit %}class="editable"{% endif %}>
|
|
{{ text }}
|
|
</pre>
|
|
</div>
|
|
{% endfor %}
|
|
{% endfor %}
|
|
|
|
{% endblock content %}
|