68 lines
2.2 KiB
HTML
68 lines
2.2 KiB
HTML
{% extends "base.html" %}
|
|
|
|
{% block variables %}
|
|
{% endblock %}
|
|
|
|
{% block content %}
|
|
<div id="profilewrap">
|
|
|
|
{% if user %}
|
|
<div>
|
|
<div>
|
|
<div><b>Current session</b></div>
|
|
<div>Logged in user: {{ user }}</div>
|
|
</div>
|
|
<br>
|
|
<div>
|
|
<div><b>Email recommendations</b></div>
|
|
<div>
|
|
Users can receive regular new paper recommendations via email based on their tags.
|
|
(This is still being developed, may not be running or may be unreliable.)
|
|
Register your email address below to receive these recommendations.
|
|
To stop the recommendations simply delete your email address.
|
|
</div>
|
|
<div>
|
|
<form id="email-form" action="{{ url_for('register_email') }}" method="post">
|
|
<div class="form-group">
|
|
<input type="text" class="form-control" name="email" placeholder="Email address" value="{{ email }}">
|
|
</div>
|
|
<input type="submit" class="btn" value="Set">
|
|
</form>
|
|
</div>
|
|
</div>
|
|
<br>
|
|
<div>
|
|
<a href="{{ url_for('logout') }}">Log out</a>
|
|
</div>
|
|
</div>
|
|
{% else %}
|
|
<div>
|
|
|
|
<div id="profile-warning">
|
|
<p>
|
|
Okay, arxiv-sanity-lite uses a super lite version of
|
|
"user accounts" where there are no passwords. Basically, you can "log in"
|
|
with any arbitrary username. If you want to share your library with a
|
|
friend, you can just tell them the username. And if you'd like to keep your
|
|
account private, just make your username be something unique
|
|
and write it down somewhere safe.
|
|
</p>
|
|
<b>TLDR: there are no passwords!</b>
|
|
</div>
|
|
|
|
<form id="profile-login-form" action="/login" method="POST">
|
|
<div class="form-group">
|
|
<label>Username:</label>
|
|
<input class="form-control" type="text" name="username">
|
|
</div>
|
|
<button type="submit" class="btn">Log in</button>
|
|
</form>
|
|
</div>
|
|
{% endif %}
|
|
|
|
</div>
|
|
{% endblock %}
|
|
|
|
{% block elements %}
|
|
{% endblock %}
|