aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTheo Chatzimichos <tampakrap@gentoo.org>2013-09-08 15:40:46 +0200
committerTheo Chatzimichos <tampakrap@gentoo.org>2013-09-08 15:40:46 +0200
commite78d2a77a7de729abef8d83c599a82dda0da5fae (patch)
treed45e1fe3650edb63ab3c3f53b2c0992b96c3f05f
parentMerge pull request #86 from dastergon/misc_flake8 (diff)
downloadidentity.gentoo.org-e78d2a77a7de729abef8d83c599a82dda0da5fae.tar.gz
identity.gentoo.org-e78d2a77a7de729abef8d83c599a82dda0da5fae.tar.bz2
identity.gentoo.org-e78d2a77a7de729abef8d83c599a82dda0da5fae.zip
Identation, whitespace and other cosmetics fixes in templates
-rw-r--r--okupy/templates/base.html37
-rw-r--r--okupy/templates/foundation-members.html20
-rw-r--r--okupy/templates/index.html2
-rw-r--r--okupy/templates/settings-contact.html5
-rw-r--r--okupy/templates/settings-email.html56
-rw-r--r--okupy/templates/settings-gentoo.html5
-rw-r--r--okupy/templates/settings-password.html2
-rw-r--r--okupy/templates/settings-profile.html4
8 files changed, 70 insertions, 61 deletions
diff --git a/okupy/templates/base.html b/okupy/templates/base.html
index d8f1b1e..e320317 100644
--- a/okupy/templates/base.html
+++ b/okupy/templates/base.html
@@ -59,23 +59,23 @@
<li><a href="http://sources.gentoo.org/" title="Browse our source code">Sources</a></li>
</ul>
</li>
- {% if user.is_authenticated %}
- <li class="divider-vertical"></li>
- <li class="dropdown">
- <a href="#" class="dropdown-toggle" data-toggle="dropdown">{{ user.username }}<b class="caret"></b></a>
- <ul class="dropdown-menu">
- <li><a href="{% url 'index' %}" title="View Profile">View Profile</a></li>
- <li><a href="{% url 'profile-settings' %}" title="Edit Profile">Edit Profile</a></li>
- <li><a href="{% url 'contact-settings' %}" title="Contact Settings">Contact Settings</a></li>
- <li><a href="{% url 'password-settings' %}" title="Change Password">Change Password</a></li>
- <li><a href="{% url 'email-settings' %}" title="Email Settings">Email Settings</a></li>
- <li><a href="{% url 'gentoo-dev-settings' %}" title="Gentoo Account Settings">Gentoo Account Settings</a></li>
- <li><a href="#" title="Invite others">Invite</a></li>
- <li><a href="{% url 'logout' %}" title="Logout">Logout</a></li>
- </ul>
- </li>
- {% endif %}
- </ul>
+ {% if user.is_authenticated %}
+ <li class="divider-vertical"></li>
+ <li class="dropdown">
+ <a href="#" class="dropdown-toggle" data-toggle="dropdown">{{ user.username }}<b class="caret"></b></a>
+ <ul class="dropdown-menu">
+ <li><a href="{% url 'index' %}" title="View Profile">View Profile</a></li>
+ <li><a href="{% url 'profile-settings' %}" title="Edit Profile">Edit Profile</a></li>
+ <li><a href="{% url 'contact-settings' %}" title="Contact Settings">Contact Settings</a></li>
+ <li><a href="{% url 'password-settings' %}" title="Change Password">Change Password</a></li>
+ <li><a href="{% url 'email-settings' %}" title="Email Settings">Email Settings</a></li>
+ <li><a href="{% url 'gentoo-dev-settings' %}" title="Gentoo Account Settings">Gentoo Account Settings</a></li>
+ <li><a href="#" title="Invite others">Invite</a></li>
+ <li><a href="{% url 'logout' %}" title="Logout">Logout</a></li>
+ </ul>
+ </li>
+ {% endif %}
+ </ul>
</div>
</div>
</div>
@@ -105,8 +105,7 @@
</div>
</div>
</div>
- </div>
-</footer>
+ </footer>
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.min.js"></script>
{% compress js %}
<!--[if lt IE 9]>
diff --git a/okupy/templates/foundation-members.html b/okupy/templates/foundation-members.html
index b78beb7..f2fcd3b 100644
--- a/okupy/templates/foundation-members.html
+++ b/okupy/templates/foundation-members.html
@@ -9,18 +9,18 @@
<div class="span10">
<h2>Foundation Members</h2><br />
<table class="table table-striped sortable" >
- <tr>
- <td class="infohead"><b>Username</b></td>
- <td class="infohead"><b>Name</b></td>
- <td class="infohead"><b>Location</b></td>
- </tr>
- {% for user in devlist %}
<tr>
- <td style="color:#5c4f85;"><b>{{ user.username }}</b></td>
- <td>{{ user.full_name }}</td>
- <td><a href="http://maps.google.com/maps?q={{ user.location }}">{{ user.location }}</a></td>
+ <td class="infohead"><b>Username</b></td>
+ <td class="infohead"><b>Name</b></td>
+ <td class="infohead"><b>Location</b></td>
</tr>
- {% endfor %}
+ {% for user in devlist %}
+ <tr>
+ <td style="color:#5c4f85;"><b>{{ user.username }}</b></td>
+ <td>{{ user.full_name }}</td>
+ <td><a href="http://maps.google.com/maps?q={{ user.location }}">{{ user.location }}</a></td>
+ </tr>
+ {% endfor %}
</table>
</div>
</div>
diff --git a/okupy/templates/index.html b/okupy/templates/index.html
index 503841f..5c3e2de 100644
--- a/okupy/templates/index.html
+++ b/okupy/templates/index.html
@@ -14,8 +14,8 @@
<tr class="even"><th>Nickname</th><td>{{user.username}}</td></tr>
<tr class="odd"><th>Location</th><td>{{user.location}}</td></tr>
</table>
- </p>
</div>
+ </p>
</div>
<div class="row-fluid">
<p>
diff --git a/okupy/templates/settings-contact.html b/okupy/templates/settings-contact.html
index 6912b1e..05d21ba 100644
--- a/okupy/templates/settings-contact.html
+++ b/okupy/templates/settings-contact.html
@@ -17,7 +17,7 @@
</div>
<div class="row-fluid">
{{ contact_settings.im.label_tag }}
- <input name="im" type="text" value="{{ user_info.im.0 }}" /> {{ contact_settings.im.errors|striptags }}
+ <input name="im" type="text" value="{{ user_info.im.0 }}" /> {{ contact_settings.im.errors|striptags }}
</div>
<div class="row-fluid">
{{ contact_settings.location.label_tag }}
@@ -38,7 +38,6 @@
<div class="row-fluid">
{{ contact_settings.gpg_fingerprint.label_tag }}
<input name="gpg_fingerprint" type="text" value="{{ user_info.gpg_fingerprint.0 }}" /> {{ contact_settings.gpg_fingerprint.errors|striptags }}
-
</div>
<div class="row-fluid buttons">
<input class="btn btn-primary" type="submit" value="Save" />
@@ -47,6 +46,8 @@
</div>
</div>
</div>
+ </div>
+</div>
{% endblock %}
{# vim:se fileencoding=utf8 et ts=4 sts=4 sw=4 ft=htmldjango : #}
diff --git a/okupy/templates/settings-email.html b/okupy/templates/settings-email.html
index e6a082c..51a5eba 100644
--- a/okupy/templates/settings-email.html
+++ b/okupy/templates/settings-email.html
@@ -6,40 +6,42 @@
<div id="page" class="span10">
<div>
<h1>Email Settings</h1>
- <h3>Manage your emails.</h3>
+ <h3>Manage your emails.</h3>
<div class="form well">
- {{ email_settings.errors }}
+ {{ email_settings.errors }}
{{ email_settings.non_field_errors }}
<div class="row-fluid ">
- <table class="table">
- <thead>
- <tr>
- <th>Email</th>
- <th> </th>
- </tr>
- </thead>
- <tbody>
- {% for mail in user_info.email%}
- <form action="." method="POST">{% csrf_token %}
- <tr>
- <td><input type="hidden" name="email" value="{{ mail }}" />{{mail}}</td>
- <td><input class="btn" type="submit" name="delete" value="Delete" /></td>
- </tr>
- </form>
- {% endfor %}
- </tbody>
- </table>
- <form action="." method="POST">{% csrf_token %}
- {{ email_settings.email.label_tag }}
+ <table class="table">
+ <thead>
+ <tr>
+ <th>Email</th>
+ <th> </th>
+ </tr>
+ </thead>
+ <tbody>
+ {% for mail in user_info.email%}
+ <form action="." method="POST">{% csrf_token %}
+ <tr>
+ <td><input type="hidden" name="email" value="{{ mail }}" />{{mail}}</td>
+ <td><input class="btn" type="submit" name="delete" value="Delete" /></td>
+ </tr>
+ </form>
+ {% endfor %}
+ </tbody>
+ </table>
+ <form action="." method="POST">{% csrf_token %}
+ {{ email_settings.email.label_tag }}
<input name="email" type="text" /> {{ email_settings.email.errors|striptags }}
- <div class="row-fluid buttons">
- <input class="btn btn-primary" type="submit" value="Add email" />
- </div>
- </form>
- </div>
+ <div class="row-fluid buttons">
+ <input class="btn btn-primary" type="submit" value="Add email" />
+ </div>
+ </form>
+ </div>
</div>
</div>
</div>
+ </div>
+</div>
{% endblock %}
{# vim:se fileencoding=utf8 et ts=4 sts=4 sw=4 ft=htmldjango : #}
diff --git a/okupy/templates/settings-gentoo.html b/okupy/templates/settings-gentoo.html
index 0ab16a6..85a2916 100644
--- a/okupy/templates/settings-gentoo.html
+++ b/okupy/templates/settings-gentoo.html
@@ -34,9 +34,12 @@
<input class="btn btn-primary" type="submit" value="Update" />
</div>
</form>
- </div>{% endif %}
+ </div>
+ {% endif %}
</div>
</div>
+ </div>
+</div>
{% endblock %}
{# vim:se fileencoding=utf8 et ts=4 sts=4 sw=4 ft=htmldjango : #}
diff --git a/okupy/templates/settings-password.html b/okupy/templates/settings-password.html
index 3e427b9..574fe0f 100644
--- a/okupy/templates/settings-password.html
+++ b/okupy/templates/settings-password.html
@@ -30,6 +30,8 @@
</div>
</div>
</div>
+ </div>
+</div>
{% endblock %}
{# vim:se fileencoding=utf8 et ts=4 sts=4 sw=4 ft=htmldjango : #}
diff --git a/okupy/templates/settings-profile.html b/okupy/templates/settings-profile.html
index 2b9726c..66a6936 100644
--- a/okupy/templates/settings-profile.html
+++ b/okupy/templates/settings-profile.html
@@ -23,7 +23,7 @@
{{ profile_settings.email.label_tag }}
<input name="email" type="text" value="{{ user_info.email.0 }}" /> {{ profile_settings.email.errors|striptags }}
</div>
- <!-- <div class="row-fluid">
+ <!-- <div class="row-fluid">
{{ profile_settings.birthday.label_tag }}
<input name="birthday" type="text" value="{{ user_info.birthday }}" /> {{ profile_settings.birthday.errors|striptags }}
</div> -->
@@ -49,6 +49,8 @@
</div>
</div>
</div>
+ </div>
+</div>
{% endblock %}
{# vim:se fileencoding=utf8 et ts=4 sts=4 sw=4 ft=htmldjango : #}