diff options
author | Aaron Parecki <aaron@parecki.com> | 2016-12-17 14:54:20 -0800 |
---|---|---|
committer | Aaron Parecki <aaron@parecki.com> | 2016-12-17 14:54:20 -0800 |
commit | a2fed546351fde551c3df68a8346324be0212895 (patch) | |
tree | 63bb52c4247199d4a2dff9939a77240ca4fb6801 /views | |
parent | e5fb668bd3cac70ed27c2111234e042e8f70fff8 (diff) |
replace sign in field with button when logged in
fixes #50
Diffstat (limited to 'views')
-rw-r--r-- | views/index.php | 19 |
1 files changed, 12 insertions, 7 deletions
diff --git a/views/index.php b/views/index.php index b06f097..8c8aae9 100644 --- a/views/index.php +++ b/views/index.php @@ -5,14 +5,19 @@ <p class="tagline">Quill is a simple app for posting text notes to your website.</p> - <p>To use Quill, sign in with your domain. Your website will need to support <a href="http://indiewebcamp.com/micropub">Micropub</a> for creating new posts.</p> + <? if(session('me')): ?> + <p>You're already signed in!<p> + <p><a href="/dashboard" class="btn btn-primary">Continue</a></p> + <? else: ?> + <p>To use Quill, sign in with your domain. Your website will need to support <a href="https://indieweb.org/micropub">Micropub</a> for creating new posts.</p> - <form action="/auth/start" method="get" class="form-inline"> - <input type="url" name="me" placeholder="https://example.com" value="" class="form-control" onchange="auto_prefix_url_field(this)"> - <input type="submit" value="Sign In" class="btn btn-primary"> - <input type="hidden" name="client_id" value="https://quill.p3k.io"> - <input type="hidden" name="redirect_uri" value="https://quill.p3k.io/auth/callback"> - </form> + <form action="/auth/start" method="get" class="form-inline"> + <input type="url" name="me" placeholder="https://example.com" value="" class="form-control" onchange="auto_prefix_url_field(this)"> + <input type="submit" value="Sign In" class="btn btn-primary"> + <input type="hidden" name="client_id" value="https://quill.p3k.io"> + <input type="hidden" name="redirect_uri" value="https://quill.p3k.io/auth/callback"> + </form> + <? endif; ?> </div> |