Add "sign in via github" button

master
Shad Amethyst 2 years ago
parent dcd03e71c6
commit 186506e2e7
Signed by: amethyst
GPG Key ID: D970C8DD1D6DEE36

@ -194,6 +194,9 @@
<a class="item{{if .PageIsSignIn}} active{{end}}" rel="nofollow" href="{{AppSubUrl}}/user/login{{if not .PageIsSignIn}}?redirect_to={{.CurrentURL}}{{end}}"> <a class="item{{if .PageIsSignIn}} active{{end}}" rel="nofollow" href="{{AppSubUrl}}/user/login{{if not .PageIsSignIn}}?redirect_to={{.CurrentURL}}{{end}}">
{{svg "octicon-sign-in"}} {{.locale.Tr "sign_in"}} {{svg "octicon-sign-in"}} {{.locale.Tr "sign_in"}}
</a> </a>
<a class="item" rel="nofollow" href="{{AppSubUrl}}/user/oauth2/github?redirect_to={{if not .PageIsSignIn}}?redirect_to={{.CurrentURL}}{{end}}">
{{svg "octicon-mark-github"}} Sign In via Github
</a>
</div><!-- end anonymous right menu --> </div><!-- end anonymous right menu -->
{{end}} {{end}}
</div> </div>

@ -32,9 +32,9 @@
<div class="twelve wide center aligned centered column"> <div class="twelve wide center aligned centered column">
<div class="ui middle grid"> <div class="ui middle grid">
<div class="sixteen wide center aligned centered row"> <div class="sixteen wide center aligned centered row">
<a class="ui green button" href="/explore">Explore</a> <a class="ui green button" href="{{AppSubUrl}}/explore">Explore</a>
<div style="width: 2em;"></div> <div style="width: 2em;"></div>
<a class="ui green button" href="/adri326">My Profile</a> <a class="ui green button" href="{{AppSubUrl}}/adri326">My Profile</a>
</div> </div>
</div> </div>
</div> </div>
@ -50,7 +50,7 @@
<div class="ui middle grid"> <div class="ui middle grid">
<div class="sixteen wide center aligned centered row"> <div class="sixteen wide center aligned centered row">
<a class="ui button" href="/user/oauth2/github">Login via Github</a> <a class="ui button" href="{{AppSubUrl}}/user/oauth2/github">Login via Github</a>
</div> </div>
</div> </div>

Loading…
Cancel
Save