unique constraint uses equals not matches
This commit is contained in:
@@ -12,11 +12,12 @@
|
||||
</head>
|
||||
<body>
|
||||
<nav>
|
||||
<ul>
|
||||
<li><a href="{{ url_for('index') }}">Home</a></li>
|
||||
</ul>
|
||||
{% for uri, stub in breadcrumbs %}
|
||||
<span> / <a href="{{ app.config.VIEW_URI }}{{ uri }}">{{ stub }}</a></span>
|
||||
{% endfor %}
|
||||
</nav>
|
||||
<nav>
|
||||
Menu:
|
||||
<ul>
|
||||
{% block menu %}{% endblock %}
|
||||
</ul>
|
||||
|
||||
@@ -2,16 +2,25 @@
|
||||
|
||||
{% block menu %}
|
||||
{% for child in page.pages %}
|
||||
<li><a href="/{{page.stub}}/{{ child.stub }}">{{ child.title }}</a></li>
|
||||
<li><a href="{{ app.config.VIEW_URI }}{{ child.uri }}">{{ child.title }}</a></li>
|
||||
{% endfor %}
|
||||
{% endblock %}
|
||||
{% block content %}
|
||||
<h1>{{ page.title }}</h1>
|
||||
{{ page.body }}
|
||||
<form method='POST'>
|
||||
<input type="hidden" name="uid" value="{{ page.uid }}">
|
||||
<h1>{{ page.doc_id }}: <input name='title' type='text' value="{{ page.title }}"></h1>
|
||||
<h3>{{ app.config.VIEW_URI }}{{ page.parent.uri if page.parent else "/" }} <input name='stub' type='text' value='{{ page.stub }}'></h3>
|
||||
<textarea name='body'>{{ page.body }}</textarea>
|
||||
<input type=submit>
|
||||
</form>
|
||||
|
||||
<pre>
|
||||
{{ page }}
|
||||
</pre>
|
||||
|
||||
<pre>
|
||||
{{ app.web.config }}
|
||||
</pre>
|
||||
|
||||
{% endblock %}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user