fix: add is defined check
This commit is contained in:
parent
b1e22c7ee5
commit
f19c6c2952
@ -29,7 +29,7 @@
|
|||||||
<li><a href='#' onclick='openNote()'>Open Note</a></li>
|
<li><a href='#' onclick='openNote()'>Open Note</a></li>
|
||||||
<li><a href="#" onclick="saveNote()">Save Note</a></li>
|
<li><a href="#" onclick="saveNote()">Save Note</a></li>
|
||||||
<li><a href='#' onclick='discardNote()'>Delete Note</a></li>
|
<li><a href='#' onclick='discardNote()'>Delete Note</a></li>
|
||||||
{% if isAdmin %}
|
{% if isAdmin is defined and isAdmin %}
|
||||||
<li><a href='/index.php/reference-editor'>Reference Editor</a></li>
|
<li><a href='/index.php/reference-editor'>Reference Editor</a></li>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
<li><a href='#' onclick="openRef()">Open Reference</a></li>
|
<li><a href='#' onclick="openRef()">Open Reference</a></li>
|
||||||
@ -51,7 +51,7 @@
|
|||||||
<div class="mini-posts">
|
<div class="mini-posts">
|
||||||
{% for n in app.user.notes %}
|
{% for n in app.user.notes %}
|
||||||
<article>
|
<article>
|
||||||
<a href="#">{{ n.title }}</a>
|
<a href="#" onclick="retrieveNote('{{ n.id }}');openNote();">{{ n.title }}</a>
|
||||||
<p>{{ n.passage }}</p>
|
<p>{{ n.passage }}</p>
|
||||||
</article>
|
</article>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
Loading…
Reference in New Issue
Block a user