We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0b3da29 commit 2356190Copy full SHA for 2356190
src/tpl/defaultTheme/frontend/index.css
@@ -162,6 +162,13 @@ html.dragging::before {
162
display: none;
163
}
164
165
+.login {
166
+ position: absolute;
167
+ z-index: 1;
168
+ right: 0;
169
+ padding: 0.5em 1em;
170
+}
171
+
172
.tab {
173
display: flex;
174
white-space: nowrap;
src/tpl/defaultTheme/frontend/index.html
@@ -20,7 +20,9 @@
20
<li><a href="{{.Path}}{{$contextQueryString}}">{{fmtFilename .Name}}</a></li>
21
{{end}}
22
</ol>
23
-
+{{if .LoginAvail}}
24
+<a class="login" href="{{if ne .Status 401}}{{.RootRelPath}}?auth={{.Path}}{{$contextQueryString}}{{end}}">{{.Trans.LoginLabel}}</a>
25
+{{end}}
26
{{if .CanUpload}}
27
<div class="upload-status">
28
<span class="label info">
0 commit comments