diff --git a/views/readers.qtpl b/views/readers.qtpl index 478992c..935ab3b 100644 --- a/views/readers.qtpl +++ b/views/readers.qtpl @@ -85,9 +85,9 @@ If `contents` == "", a helpful message is shown instead.
-
+ {% if u.CanProceed("edit") %}
Edit text -
+
{% endif %} {%s= NaviTitleHTML(h) %} {% if h.Exists %} {%s= contents %} diff --git a/views/readers.qtpl.go b/views/readers.qtpl.go index bacbfa7..283b972 100644 --- a/views/readers.qtpl.go +++ b/views/readers.qtpl.go @@ -240,13 +240,21 @@ func StreamHyphaHTML(qw422016 *qt422016.Writer, rq *http.Request, h *hyphae.Hyph
-
+ `) +//line views/readers.qtpl:88 + if u.CanProceed("edit") { +//line views/readers.qtpl:88 + qw422016.N().S(`
Edit text -
+ qw422016.N().S(`">Edit text +
`) +//line views/readers.qtpl:90 + } +//line views/readers.qtpl:90 + qw422016.N().S(` `) //line views/readers.qtpl:91 qw422016.N().S(NaviTitleHTML(h))