Avoid mixing tabs and spaces.
This commit is contained in:
parent
5e9b1aa020
commit
f0021d61e7
|
@ -2,18 +2,18 @@
|
|||
{% load i18n %}
|
||||
{% block title %}{% trans 'Lasts pastes' %}{% endblock %}
|
||||
{% block content %}
|
||||
{% if error_message %}<p><strong>{{ error_message }}</strong></p>{% endif %}
|
||||
<table class="table table-striped table-bordered">
|
||||
<tr>
|
||||
<th>#</th>
|
||||
<th>{% trans 'Title' %}</th>
|
||||
<th>{% trans 'Language' %}</th>
|
||||
<th>{% trans 'Size' %}</th>
|
||||
<th>{% trans 'Paste time' %}</th>
|
||||
<th>{% trans 'User IP' %}</th>
|
||||
<th>{% trans 'Protection' %}</th>
|
||||
<th>{% trans 'Views' %}</th>
|
||||
</tr>
|
||||
{% if error_message %}<p><strong>{{ error_message }}</strong></p>{% endif %}
|
||||
<table class="table table-striped table-bordered">
|
||||
<tr>
|
||||
<th>#</th>
|
||||
<th>{% trans 'Title' %}</th>
|
||||
<th>{% trans 'Language' %}</th>
|
||||
<th>{% trans 'Size' %}</th>
|
||||
<th>{% trans 'Paste time' %}</th>
|
||||
<th>{% trans 'User IP' %}</th>
|
||||
<th>{% trans 'Protection' %}</th>
|
||||
<th>{% trans 'Views' %}</th>
|
||||
</tr>
|
||||
{% for paste in pastes %}
|
||||
<tr>
|
||||
<td>{{ paste.id }}</td>
|
||||
|
@ -30,6 +30,6 @@
|
|||
<td colspan="8">{% trans 'Nothing has been pasted yet' %}.</td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</table>
|
||||
</table>
|
||||
|
||||
{% endblock %}
|
||||
|
|
|
@ -3,44 +3,44 @@
|
|||
{% load compress %}
|
||||
{% block title %}{% trans 'Paste something' %}{% endblock %}
|
||||
{% block content %}
|
||||
{% if error_message %}<p><strong>{{ error_message }}</strong></p>{% endif %}
|
||||
<form method="post" action="{% url 'index' %}">
|
||||
{% if error_message %}<p><strong>{{ error_message }}</strong></p>{% endif %}
|
||||
<form method="post" action="{% url 'index' %}">
|
||||
{{ form.non_field_errors }}
|
||||
<div class="row">
|
||||
{% if PASTE.has_title %}
|
||||
<div class="span6">
|
||||
<label for="id_title">{% trans 'Title' %}</label>
|
||||
<div class="span6">
|
||||
<label for="id_title">{% trans 'Title' %}</label>
|
||||
<div class="input-prepend">
|
||||
<span class="add-on"><i class="icon-tag"></i></span>
|
||||
{{ form.title }}
|
||||
</div>
|
||||
{{ form.title.errors }}
|
||||
</div>
|
||||
{{ form.title.errors }}
|
||||
</div>
|
||||
{% endif %}
|
||||
<div class="span3">
|
||||
<label for="id_language">{% trans 'Language' %}</label>
|
||||
<div class="span3">
|
||||
<label for="id_language">{% trans 'Language' %}</label>
|
||||
<div class="input-prepend">
|
||||
<span class="add-on"><i class="icon-file-alt"></i></span>
|
||||
{{ form.language }}
|
||||
</div>
|
||||
{{ form.language.errors }}
|
||||
</div>
|
||||
{{ form.language.errors }}
|
||||
</div>
|
||||
<div class="span3">
|
||||
<label for="id_private">{% trans 'Private' %}</label>
|
||||
{{ form.private }}
|
||||
{{ form.private.errors }}
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="span12">
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="span12">
|
||||
{% if PASTE.show_char_left %}
|
||||
<span id="charsleft"><b id="charsleft_counter">...</b> {% trans 'characters left' %}</span>
|
||||
<span id="charsleft"><b id="charsleft_counter">...</b> {% trans 'characters left' %}</span>
|
||||
{% endif %}
|
||||
<label for="id_content">{% trans 'Content' %}</label>
|
||||
{{ form.content }}
|
||||
{{ form.content.errors }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="span3">
|
||||
<label for="id_lifetime">{% trans 'Expire time' %}</label>
|
||||
|
@ -69,8 +69,8 @@
|
|||
{{ form.password.errors }}
|
||||
</div>
|
||||
</div>
|
||||
{% csrf_token %}
|
||||
<button class="btn" type="submit">{% trans 'Paste' %}</button>
|
||||
{% csrf_token %}
|
||||
<button class="btn" type="submit">{% trans 'Paste' %}</button>
|
||||
<input type="hidden" id="max_characters" value="{{ max_characters }}">
|
||||
</form>
|
||||
{% endblock %}
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
<div id="unlock">
|
||||
<p><b>{% blocktrans %}This paste is password protected{% endblocktrans %}</b>.</p>
|
||||
<p>{% blocktrans %}Please enter the password in the field below to unlock the paste and display it{% endblocktrans %}.</p>
|
||||
<form method="post" action="">
|
||||
<form method="post" action="">
|
||||
<div class="row">
|
||||
<div class="span3">
|
||||
<label for="id_password">{% trans 'Password' %}</label>
|
||||
|
@ -14,11 +14,10 @@
|
|||
<span class="add-on"><i class="icon-lock"></i></span>
|
||||
<input id="id_password" maxlength="128" name="password" type="text">
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
{% csrf_token %}
|
||||
<button type="submit" class="btn">{% trans 'Unlock' %}</button>
|
||||
{% csrf_token %}
|
||||
<button type="submit" class="btn">{% trans 'Unlock' %}</button>
|
||||
</form>
|
||||
</div>
|
||||
{% endblock %}
|
||||
{% endblock %}
|
||||
|
|
Loading…
Reference in New Issue