##// END OF EJS Templates
Merge pull request #1399 from asmeurer/sympyprinting...
Merge pull request #1399 from asmeurer/sympyprinting Use LaTeX to display, on output, various built-in types with the SymPy printing extension. SymPy's latex() function supports printing lists, tuples, and dicts using latex notation (it uses bmatrix, pmatrix, and Bmatrix, respectively). This provides a more unified experience with SymPy functions that return these types (such as solve()). Also display ints, longs, and floats using LaTeX, to get a more unified printing experience (so that, e.g., x/x will print the same as just 1). The string form can always be obtained by manually calling the actual print function, or 2d unicode printing using pprint(). SymPy's latex() function doesn't treat set() or frosenset() correctly presently (see http://code.google.com/p/sympy/issues /detail?id=3062), so for the present, we leave those alone.

File last commit:

r6192:a53b1a9f
r6482:ba882bf7 merge
Show More
login.html
42 lines | 796 B | text/html | HtmlLexer
Brian Granger
Refactoring templates and top level js/css organization.
r6192 {% extends page.html %}
Stefan van der Walt
Use template inheritance.
r5324
Brian Granger
Refactoring templates and top level js/css organization.
r6192 {% block stylesheet %}
Stefan van der Walt
Split read-only logic into three functions: read_only, logged_in, and login_available. Move display logic from javascript into templates.
r5722
Brian Granger
Refactoring templates and top level js/css organization.
r6192 <link rel="stylesheet" href="{{static_url("css/login.css") }}" type="text/css"/>
{% end %}
{% block login_widget %}
{% end %}
{% block site %}
Stefan van der Walt
Split read-only logic into three functions: read_only, logged_in, and login_available. Move display logic from javascript into templates.
r5722
Brian Granger
Refactoring templates and top level js/css organization.
r6192 <div id="main_app">
{% if login_available %}
Stefan van der Walt
Use template inheritance.
r5324 <form action="/login?next={{url_escape(next)}}" method="post">
Brian Granger
Refactoring templates and top level js/css organization.
r6192 Password: <input type="password" name="password" id="password_input">
<input type="submit" value="Log in" id="login_submit">
Stefan van der Walt
Use template inheritance.
r5324 </form>
Brian Granger
Refactoring templates and top level js/css organization.
r6192 {% end %}
Stefan van der Walt
Split read-only logic into three functions: read_only, logged_in, and login_available. Move display logic from javascript into templates.
r5722
Brian Granger
Refactoring templates and top level js/css organization.
r6192 {% if message %}
{% for key in message %}
<div class="message {{key}}">
{{message[key]}}
</div>
{% end %}
Stefan van der Walt
Split read-only logic into three functions: read_only, logged_in, and login_available. Move display logic from javascript into templates.
r5722 {% end %}
Brian Granger
Refactoring templates and top level js/css organization.
r6192 <div/>
Stefan van der Walt
On the login page, focus on the password field.
r5720
Stefan van der Walt
Hide top login/logout buttons on login/logout pages.
r5723 {% end %}
Brian Granger
Refactoring templates and top level js/css organization.
r6192
Stefan van der Walt
On the login page, focus on the password field.
r5720 {% block script %}
Brian Granger
Refactoring templates and top level js/css organization.
r6192
<script src="{{static_url("js/loginmain.js") }}" type="text/javascript" charset="utf-8"></script>
Stefan van der Walt
On the login page, focus on the password field.
r5720 {% end %}