Commits

Trey Hunner committed 5862254 Draft

Fix indentation and whitespace in templates

  • Participants
  • Parent commits 314c711

Comments (0)

Files changed (2)

File simple_history/templates/simple_history/object_history.html

 
 {% block content %}
 	<div id="content-main">
-	
+
 		<p>{% blocktrans %}Choose a date from the list below to revert to a previous version of this object.{% endblocktrans %}</p>
-	
+
 		<div class="module">
 			{% if action_list %}
-			    <table id="change-history">
-			        <thead>
-				        <tr>
-				            <th scope="col">{% trans 'Date/time' %}</th>
-				            <th scope="col">{% trans 'Comment' %}</th>
-				            <th scope="col">{% trans 'Changed by' %}</th>
-				        </tr>
-			        </thead>
-			        <tbody>
-				        {% for action in action_list %}
-					        <tr>
-					            <th scope="row"><a href="{{ action.revert_url }}">{{ action.history_date }}</a></th>
-					            <td>{{ action.get_history_type_display }}</td>
-					            <td>{{ action.changed_by }}</td>
-					        </tr>
-				        {% endfor %}
-			        </tbody>
-			    </table>
+				<table id="change-history">
+					<thead>
+						<tr>
+							<th scope="col">{% trans 'Date/time' %}</th>
+							<th scope="col">{% trans 'Comment' %}</th>
+							<th scope="col">{% trans 'Changed by' %}</th>
+						</tr>
+					</thead>
+					<tbody>
+						{% for action in action_list %}
+							<tr>
+								<th scope="row"><a href="{{ action.revert_url }}">{{ action.history_date }}</a></th>
+								<td>{{ action.get_history_type_display }}</td>
+								<td>{{ action.changed_by }}</td>
+							</tr>
+						{% endfor %}
+					</tbody>
+				</table>
 			{% else %}
-			    <p>{% trans "This object doesn't have a change history." %}</p>
+				<p>{% trans "This object doesn't have a change history." %}</p>
 			{% endif %}
 		</div>
 	</div>

File simple_history/templates/simple_history/object_history_form.html

 {% block breadcrumbs %}
 	<div class="breadcrumbs">
 		<a href="{% url admin:index %}">{% trans "Home" %}</a> &rsaquo;
-		<a href="{% url admin:app_list app_label %}">{{app_label|capfirst|escape}}</a> &rsaquo; 
+		<a href="{% url admin:app_list app_label %}">{{app_label|capfirst|escape}}</a> &rsaquo;
 		<a href="{{changelist_url}}">{{opts.verbose_name_plural|capfirst}}</a> &rsaquo;
 		<a href="{{change_url}}">{{original|truncatewords:"18"}}</a> &rsaquo;
 		<a href="../">{% trans "History" %}</a> &rsaquo;