Skip to content
This repository has been archived by the owner on Jan 29, 2019. It is now read-only.

Commit

Permalink
Simplify quickstart HTML template
Browse files Browse the repository at this point in the history
This makes the quickstart HTML template use the `browserid_css` and `browserid_js` template tags, which is useful for a few reasons:

* It simplifies the template code.
* It allows the template to be copy-pasted into an empty file (the existing code is missing a `{% load static %}` but this change removes the need for that).
* It makes the template work automatically with the auto-login system for offline development.
  • Loading branch information
toolness committed Mar 12, 2015
1 parent 0cacc64 commit 36efbb5
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions docs/user/quickstart.rst
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ templates, along with the CSS and JS files necessary to make it work:
{% load browserid %}
<html>
<head>
<link rel="stylesheet" href="{% static 'browserid/persona-buttons.css' %}">
{% browserid_css %}
</head>
<body>
{% browserid_info %}
Expand All @@ -69,8 +69,7 @@ templates, along with the CSS and JS files necessary to make it work:

<script src="https://code.jquery.com/jquery-1.9.1.min.js"></script>
<script src="https://login.persona.org/include.js"></script>
<script src="{% static 'browserid/api.js' %}"></script>
<script src="{% static 'browserid/browserid.js' %}"></script>
{% browserid_js %}
</body>
</html>

Expand Down

0 comments on commit 36efbb5

Please sign in to comment.