mirror of
https://github.com/osmarks/mycorrhiza.git
synced 2024-10-30 11:46:16 +00:00
Do not show the edit button for anons
This commit is contained in:
parent
e47b297410
commit
9d989db77d
@ -85,9 +85,9 @@ If `contents` == "", a helpful message is shown instead.
|
|||||||
<div class="jump-btn">
|
<div class="jump-btn">
|
||||||
<a class="jump-btn__link" href="#hypha-bottom">↓</a>
|
<a class="jump-btn__link" href="#hypha-bottom">↓</a>
|
||||||
</div>
|
</div>
|
||||||
<div class="btn edit-btn">
|
{% if u.CanProceed("edit") %}<div class="btn edit-btn">
|
||||||
<a class="edit-btn__link" href="/edit/{%s h.Name %}">Edit text</a>
|
<a class="edit-btn__link" href="/edit/{%s h.Name %}">Edit text</a>
|
||||||
</div>
|
</div>{% endif %}
|
||||||
{%s= NaviTitleHTML(h) %}
|
{%s= NaviTitleHTML(h) %}
|
||||||
{% if h.Exists %}
|
{% if h.Exists %}
|
||||||
{%s= contents %}
|
{%s= contents %}
|
||||||
|
@ -240,13 +240,21 @@ func StreamHyphaHTML(qw422016 *qt422016.Writer, rq *http.Request, h *hyphae.Hyph
|
|||||||
<div class="jump-btn">
|
<div class="jump-btn">
|
||||||
<a class="jump-btn__link" href="#hypha-bottom">↓</a>
|
<a class="jump-btn__link" href="#hypha-bottom">↓</a>
|
||||||
</div>
|
</div>
|
||||||
<div class="btn edit-btn">
|
`)
|
||||||
|
//line views/readers.qtpl:88
|
||||||
|
if u.CanProceed("edit") {
|
||||||
|
//line views/readers.qtpl:88
|
||||||
|
qw422016.N().S(`<div class="btn edit-btn">
|
||||||
<a class="edit-btn__link" href="/edit/`)
|
<a class="edit-btn__link" href="/edit/`)
|
||||||
//line views/readers.qtpl:89
|
//line views/readers.qtpl:89
|
||||||
qw422016.E().S(h.Name)
|
qw422016.E().S(h.Name)
|
||||||
//line views/readers.qtpl:89
|
//line views/readers.qtpl:89
|
||||||
qw422016.N().S(`">Edit text</a>
|
qw422016.N().S(`">Edit text</a>
|
||||||
</div>
|
</div>`)
|
||||||
|
//line views/readers.qtpl:90
|
||||||
|
}
|
||||||
|
//line views/readers.qtpl:90
|
||||||
|
qw422016.N().S(`
|
||||||
`)
|
`)
|
||||||
//line views/readers.qtpl:91
|
//line views/readers.qtpl:91
|
||||||
qw422016.N().S(NaviTitleHTML(h))
|
qw422016.N().S(NaviTitleHTML(h))
|
||||||
|
Loading…
Reference in New Issue
Block a user