martin-gorner HF staff commited on
Commit
b2dda0c
1 Parent(s): 0890591

Proposal for a simplified JupyterLab login page (#21)

Browse files

- Proposal for a simplified JupyterLab login page (542195097ce2bfc894a75cbbc0fa676b90c34264)

Files changed (1) hide show
  1. login.html +9 -10
login.html CHANGED
@@ -9,14 +9,9 @@
9
  <div id="jupyter-main-app" class="container">
10
 
11
  <img src="https://huggingface.co/front/assets/huggingface_logo-noborder.svg" alt="Hugging Face Logo">
12
- <h4>You must duplicate this Space to use it.</h4>
13
- <br>
14
- <a class="duplicate-button" style="display:inline-block" target="_blank" href="https://huggingface.co/spaces/DockerTemplates/jupyterlab?duplicate=true">
15
- <img style="margin: 0" src="https://img.shields.io/badge/-Duplicate%20Space-blue?labelColor=white&amp;style=flat&amp;logo=data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAP5JREFUOE+lk7FqAkEURY+ltunEgFXS2sZGIbXfEPdLlnxJyDdYB62sbbUKpLbVNhyYFzbrrA74YJlh9r079973psed0cvUD4A+4HoCjsA85X0Dfn/RBLBgBDxnQPfAEJgBY+A9gALA4tcbamSzS4xq4FOQAJgCDwV2CPKV8tZAJcAjMMkUe1vX+U+SMhfAJEHasQIWmXNN3abzDwHUrgcRGmYcgKe0bxrblHEB4E/pndMazNpSZGcsZdBlYJcEL9Afo75molJyM2FxmPgmgPqlWNLGfwZGG6UiyEvLzHYDmoPkDDiNm9JR9uboiONcBXrpY1qmgs21x1QwyZcpvxt9NS09PlsPAAAAAElFTkSuQmCC&amp;logoWidth=14" alt="Duplicate Space"></a>
16
- <br>
17
- <br>
18
- <h4>The default token is <span style="color:orange;">huggingface</span></h4>
19
- <h4>Duplicate the Space to run your own instance</h4>
20
 
21
  {% if login_available %}
22
  {# login_available means password-login is allowed. Show the form. #}
@@ -28,10 +23,10 @@
28
  <form action="{{base_url}}login?next={{next}}" method="post" class="navbar-form pull-left">
29
  {{ xsrf_form_html() | safe }}
30
  {% if token_available %}
31
- <label for="password_input"><strong>{% trans %}Token:{% endtrans
32
  %}</strong></label>
33
  {% else %}
34
- <label for="password_input"><strong>{% trans %}Password:{% endtrans %}</strong></label>
35
  {% endif %}
36
  <input type="password" name="password" id="password_input" class="form-control">
37
  <button type="submit" class="btn btn-default" id="login_submit">{% trans %}Log in{% endtrans
@@ -45,6 +40,10 @@
45
  {% else %}
46
  <p>{% trans %}No login available, you shouldn't be seeing this page.{% endtrans %}</p>
47
  {% endif %}
 
 
 
 
48
  <p>This template was created by <a href="https://twitter.com/camenduru" target="_blank" >camenduru</a> and <a href="https://huggingface.co/nateraw" target="_blank" >nateraw</a>, with contributions of <a href="https://huggingface.co/osanseviero" target="_blank" >osanseviero</a> and <a href="https://huggingface.co/azzr" target="_blank" >azzr</a> </p>
49
  {% if message %}
50
  <div class="row">
 
9
  <div id="jupyter-main-app" class="container">
10
 
11
  <img src="https://huggingface.co/front/assets/huggingface_logo-noborder.svg" alt="Hugging Face Logo">
12
+ <h4>Welcome to JupyterLab</h4>
13
+
14
+ <h5>The default token is <span style="color:orange;">huggingface</span></h5>
 
 
 
 
 
15
 
16
  {% if login_available %}
17
  {# login_available means password-login is allowed. Show the form. #}
 
23
  <form action="{{base_url}}login?next={{next}}" method="post" class="navbar-form pull-left">
24
  {{ xsrf_form_html() | safe }}
25
  {% if token_available %}
26
+ <label for="password_input"><strong>{% trans %}Jupyter token <span title="This is the secret you set up when deploying your JupyterLab space">ⓘ</span> {% endtrans
27
  %}</strong></label>
28
  {% else %}
29
+ <label for="password_input"><strong>{% trans %}Jupyter password:{% endtrans %}</strong></label>
30
  {% endif %}
31
  <input type="password" name="password" id="password_input" class="form-control">
32
  <button type="submit" class="btn btn-default" id="login_submit">{% trans %}Log in{% endtrans
 
40
  {% else %}
41
  <p>{% trans %}No login available, you shouldn't be seeing this page.{% endtrans %}</p>
42
  {% endif %}
43
+
44
+ <h5>If you don't have the credentials for this Jupyter space, <a target="_blank" href="https://huggingface.co/spaces/SpacesExamples/jupyterlab?duplicate=true">create your own.</a></h5>
45
+ <br>
46
+
47
  <p>This template was created by <a href="https://twitter.com/camenduru" target="_blank" >camenduru</a> and <a href="https://huggingface.co/nateraw" target="_blank" >nateraw</a>, with contributions of <a href="https://huggingface.co/osanseviero" target="_blank" >osanseviero</a> and <a href="https://huggingface.co/azzr" target="_blank" >azzr</a> </p>
48
  {% if message %}
49
  <div class="row">