Browse Source

"Don't have an account? Sign Up" line in the login page.

pull/217/head
Pēteris Caune 6 years ago
parent
commit
1b085a154b
No known key found for this signature in database GPG Key ID: E28D7679E9A9EDE2
3 changed files with 25 additions and 1 deletions
  1. +0
    -1
      hc/accounts/tests/test_badges.py
  2. +14
    -0
      static/css/login.css
  3. +11
    -0
      templates/accounts/login.html

+ 0
- 1
hc/accounts/tests/test_badges.py View File

@ -28,6 +28,5 @@ class BadgesTestCase(BaseTestCase):
self.client.login(username="[email protected]", password="password") self.client.login(username="[email protected]", password="password")
r = self.client.get("/accounts/profile/badges/") r = self.client.get("/accounts/profile/badges/")
print(r.content)
self.assertContains(r, "badge/alices-badge-key/") self.assertContains(r, "badge/alices-badge-key/")
self.assertContains(r, "badge/alices-badge-key/") self.assertContains(r, "badge/alices-badge-key/")

+ 14
- 0
static/css/login.css View File

@ -72,3 +72,17 @@
background: #fff; background: #fff;
} }
#login-signup-cta {
font-size: 18px;
color: #999;
margin-top: 40px;
}
#login-signup-cta a {
color: #999;
text-decoration: underline;
}
#login-signup-cta a:hover {
color: #0091EA;
}

+ 11
- 0
templates/accounts/login.html View File

@ -84,8 +84,18 @@
</form> </form>
</div> </div>
</div> </div>
<div class="row">
<div id="login-signup-cta" class="col-sm-12 text-center">
Don't have an account?
<a href="#" data-toggle="modal" data-target="#signup-modal">Sign Up</a>
</div>
</div>
</div> </div>
</div> </div>
{% include "front/signup_modal.html" %}
{% endblock %} {% endblock %}
{% block scripts %} {% block scripts %}
@ -93,5 +103,6 @@
<script src="{% static 'js/jquery-2.1.4.min.js' %}"></script> <script src="{% static 'js/jquery-2.1.4.min.js' %}"></script>
<script src="{% static 'js/bootstrap.min.js' %}"></script> <script src="{% static 'js/bootstrap.min.js' %}"></script>
<script src="{% static 'js/login.js' %}"></script> <script src="{% static 'js/login.js' %}"></script>
<script src="{% static 'js/signup.js' %}"></script>
{% endcompress %} {% endcompress %}
{% endblock %} {% endblock %}

Loading…
Cancel
Save