aboutsummaryrefslogtreecommitdiffstats
path: root/python/fatcat_web/templates
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@robocracy.org>2019-04-09 17:17:31 -0700
committerBryan Newbold <bnewbold@robocracy.org>2019-04-09 17:17:31 -0700
commit0840e5211309cd9e80ad7b2bbe82df3971423323 (patch)
tree57dd49d91e2a0bea622ed4c5ebcaf7116d472e4d /python/fatcat_web/templates
parentebedda562b528db3f14e47093b380ef41a303261 (diff)
downloadfatcat-0840e5211309cd9e80ad7b2bbe82df3971423323.tar.gz
fatcat-0840e5211309cd9e80ad7b2bbe82df3971423323.zip
crude mostly-working wikipedia (mediawiki) login
Diffstat (limited to 'python/fatcat_web/templates')
-rw-r--r--python/fatcat_web/templates/auth_login.html30
1 files changed, 25 insertions, 5 deletions
diff --git a/python/fatcat_web/templates/auth_login.html b/python/fatcat_web/templates/auth_login.html
index bcb11680..c63b4227 100644
--- a/python/fatcat_web/templates/auth_login.html
+++ b/python/fatcat_web/templates/auth_login.html
@@ -13,6 +13,7 @@ Note that currently editor accounts are locked 1-to-1 with external identities.
<a href="https://guide.fatcat.wiki/policies.html">Norms and Policies</a>.
<br>
+{% if config.IA_XAUTH_CLIENT_ID %}
<a href="/auth/ia/login">
<div class="ui segment attached">
<h2 class="ui header">
@@ -24,7 +25,19 @@ Note that currently editor accounts are locked 1-to-1 with external identities.
</h2>
</div>
</a>
+{% else %}
+<div class="ui segment attached">
+ <h2 class="ui header">
+ <i class="grey times circle icon"></i>
+ <div class="content">
+ Internet Archive
+ <div class="sub header">not configured</div>
+ </div>
+ </h2>
+</div>
+{% endif %}
+{% if config.ORCID_CLIENT_ID %}
<a href="/auth/orcid/login">
<div class="ui segment attached">
<h2 class="ui header">
@@ -36,42 +49,49 @@ Note that currently editor accounts are locked 1-to-1 with external identities.
</h2>
</div>
</a>
+{% endif %}
+{% if config.WIKIPEDIA_CLIENT_ID %}
<a href="/auth/wikipedia/login">
<div class="ui segment attached">
<h2 class="ui header">
- <i class="wikipedia w icon"></i>
+ <i class="wikipedia w icon"></i>
<div class="content">
Wikipedia
- <div class="sub header">via OpenID Connect</div>
+ <div class="sub header">via OAuth</div>
</div>
</h2>
</div>
</a>
+{% endif %}
+{% if config.GITLAB_CLIENT_ID %}
<a href="/auth/gitlab/login">
<div class="ui segment attached">
<h2 class="ui header">
<i class="orange gitlab icon"></i>
<div class="content">
Gitlab
- <div class="sub header">via OpenID Connect</div>
+ <div class="sub header">via OAuth</div>
</div>
</h2>
</div>
</a>
+{% endif %}
-<a href="/auth/google/login">
+{% if config.GITHUB_CLIENT_ID %}
+<a href="/auth/github/login">
<div class="ui segment attached">
<h2 class="ui header">
<i class="red google icon"></i>
<div class="content">
- Google
+ Github
<div class="sub header">via OpenID Connect</div>
</div>
</h2>
</div>
</a>
+{% endif %}
{# alternative style
<br>