Add login link on single-user blog

This closes #15
This commit is contained in:
Matt Baer 2018-11-12 19:47:14 -05:00
parent ecac59bf62
commit 1836735499
1 changed files with 5 additions and 1 deletions

View File

@ -45,9 +45,10 @@
</head> </head>
<body id="collection" itemscope itemtype="http://schema.org/WebPage"> <body id="collection" itemscope itemtype="http://schema.org/WebPage">
{{if .IsOwner}}<nav id="manage"><ul> {{if or .IsOwner .SingleUser}}<nav id="manage"><ul>
<li><a onclick="void(0)">&#9776; Menu</a> <li><a onclick="void(0)">&#9776; Menu</a>
<ul> <ul>
{{ if .IsOwner }}
{{if .SingleUser}} {{if .SingleUser}}
<li><a href="/me/new">New Post</a></li> <li><a href="/me/new">New Post</a></li>
{{else}} {{else}}
@ -58,6 +59,9 @@
<li class="separator"><hr /></li> <li class="separator"><hr /></li>
{{if not .SingleUser}}<li><a href="/me/c/"><img class="ic-18dp" src="/img/ic_blogs_dark@2x.png" /> View Blogs</a></li>{{end}} {{if not .SingleUser}}<li><a href="/me/c/"><img class="ic-18dp" src="/img/ic_blogs_dark@2x.png" /> View Blogs</a></li>{{end}}
<li><a href="/me/posts/"><img class="ic-18dp" src="/img/ic_list_dark@2x.png" /> View Drafts</a></li> <li><a href="/me/posts/"><img class="ic-18dp" src="/img/ic_list_dark@2x.png" /> View Drafts</a></li>
{{ else }}
<li><a href="/login">Log in</a></li>
{{ end }}
</ul> </ul>
</li> </li>
</ul></nav>{{end}} </ul></nav>{{end}}