Skip to content
This repository has been archived by the owner on Nov 15, 2021. It is now read-only.

Commit

Permalink
new
Browse files Browse the repository at this point in the history
  • Loading branch information
Vadim Kilibaba committed Aug 8, 2018
1 parent e1a2bb3 commit 337dca9
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion views/buttons.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
</a>&nbsp;&nbsp;
{{end}}
{{if eq .article.Author .username}}
fvrtd: {{.favcnt}}&nbsp;&nbsp;fllwrs: {{.followcnt}}&nbsp;&nbsp;
fav: {{.favcnt}}&nbsp;&nbsp;fol: {{.followcnt}}&nbsp;&nbsp;
<a href="/editor/{{.article.ID}}">
edit
</a>
Expand Down
7 changes: 7 additions & 0 deletions views/menu.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,13 @@
</li>
<div class="navright">
{{if .username}}
<li>
{{if eq "/editor/0" .path}}
new
{{else}}
<a href="/editor/0">new</a>
{{end}}
</li>
<li>
{{if eq (print "/@" .username) .path}}
@{{.username}}
Expand Down

0 comments on commit 337dca9

Please sign in to comment.