mirror of
https://github.com/writefreely/writefreely
synced 2024-11-12 20:27:10 +00:00
Do not show 'Draft' button when reading someone else's drafts
The button links to user's own draft box. Need not to be shown on other's draft posts.
This commit is contained in:
parent
22de459a72
commit
2b67cc0cdc
1 changed files with 1 additions and 3 deletions
|
@ -41,10 +41,8 @@
|
|||
<nav>
|
||||
<span class="views{{if not .IsOwner}} owner-visible{{end}}" dir="ltr"><strong>{{largeNumFmt .Views}}</strong> {{pluralize "view" "views" .Views}}</span>
|
||||
{{if .IsCode}}<a href="/{{.ID}}.txt" rel="noindex" dir="{{.Direction}}">View raw</a>{{end}}
|
||||
{{ if .Username }}
|
||||
{{if .IsOwner}}
|
||||
{{ if and .Username .IsOwner }}
|
||||
<a href="/{{if .SingleUser}}d/{{end}}{{.ID}}/edit" dir="{{.Direction}}">Edit</a>
|
||||
{{end}}
|
||||
<a class="xtra-feature dash-nav" href="/me/posts/" dir="{{.Direction}}">Drafts</a>
|
||||
{{ end }}
|
||||
</nav>
|
||||
|
|
Loading…
Reference in a new issue