Oops, forgot to add user.html.

This commit is contained in:
Flancian 2020-11-16 21:30:49 +01:00
parent 2a7f81389e
commit f6fad2f95e
1 changed files with 41 additions and 0 deletions

41
app/templates/user.html Normal file
View File

@ -0,0 +1,41 @@
<!--
Copyright 2020 Google LLC
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
{% extends "base.html" %}
{% block content %}
{% if readmes %}
<div class="subnode">
{% for subnode in readmes %}
<span class="subnode-header"><strong>README</strong> by <a href="/@{{user}}">@{{user}}</a></span>
{{ subnode.content|markdown|linkify|safe }}
{% endfor %}
</div>
{% endif %}
<div class="listing">
<h1> Subnodes by @{{user}} </h1>
{% if not subnodes %}
No subnodes found for the given term or path.
<br /><br />
Go back to <a href="/nodes">/nodes</a>?
{% endif %}
{% for subnode in subnodes %}
<a href="{{subnode.url}}">{{subnode.wikilink}}</a><br />
{% endfor %}
</div>
{% endblock %}