Skip to content
This repository was archived by the owner on Jul 6, 2023. It is now read-only.

minor fixes for static HTML+autofocus for username in login page for a better user experience (fixes #51) #76

Merged
merged 1 commit into from
Nov 15, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -34,3 +34,6 @@
</div>
{% endblock %}

<script>
document.getElementById("id_username").focus();
</script>
6 changes: 3 additions & 3 deletions server/static/html/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
{% load compress %}
{% load i18n lazysignup_tags %}
<!DOCTYPE html>
<html>
<html lang="en">
<head>
{% block head %}
{% block meta %}
Expand All @@ -18,7 +18,7 @@

{% block social-media-tags %}
<!-- Twitter Card data -->
<meta name="twitter:card" value="Metacademy - a free open source platform for efficient, personalized learning." />
<meta name="twitter:card" content="Metacademy - a free open source platform for efficient, personalized learning." />
<!-- Open Graph data -->
<meta property="og:image" content="//www.metacademy.org/static/images/meta-square.png" />
<meta property="og:description" content="Metacademy - a free open source platform for efficient, personalized learning." />
Expand Down Expand Up @@ -53,7 +53,7 @@
{% endblock %}

{% block hackscript %}
<script type="text/javascript">
<script>
// current hack for multiple development environments will change for server
window.CONTENT_SERVER = "{{ content_server }}";
window.STATIC_PATH = "{% static "" %}";
Expand Down
12 changes: 6 additions & 6 deletions server/static/html/landing.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@
{% block header %}
<div class="user-links">
{% if user.is_authenticated and not user|is_lazy_user %}
<a href="{% url 'user:user_main' %}">
{{ user.username }}
<a href="{% url 'user:user_main' %}">
{{ user.username }}
</a>
&#124;
<a href="{% url 'user:logout' %}">
Sign out
Sign out
</a>
{% else %}
<a href="{% url 'user:login' %}" id="sign-in">
Expand Down Expand Up @@ -102,14 +102,14 @@ <h2 id="tagline">your package manager for knowledge</h2>

<div style="clear: both;"></div>
<div id="feedback">
-
-
<a href="/feedback">
send us a message
<a/>
</a>
-
<a href="/terms">
read our terms of use
<a/>
</a>
-
</div>

Expand Down