Browse Source

Small HTML fix

but looks big ;)

Signed-off-by: Sven Velt <sven@velt.de>
Sven Velt 10 years ago
parent
commit
2a9844a817

+ 9 - 7
mymontools/templates/snippet_obj_prev_next.html

@@ -2,12 +2,14 @@
 {% load add_get_parameter %}
 
 			<table border=1 width="100%">
-				<td width="45%" align="right">{% if objs.has_previous %}<a href="{% add_get page=objs.previous_page_number %}"><img src="{% static "images/dropline/previous.png" %}" /></a>{% endif %}</td>
-				<td align="center">
-					<div style="font-weight:bold;">
-						{{ objname }} {{ objs.start_index }}-{{ objs.end_index }} (of {{ objcount }})<br />
-						Page {{ objs.number }} of {{ objs.paginator.num_pages }}</div>
-				</td>
-				<td width="45%" align="left">{% if objs.has_next %}<a href="{% add_get page=objs.next_page_number %}"><img src="{% static "images/dropline/next.png" %}" /></a>{% endif %}</td>
+				<tr>
+					<td width="45%" align="right">{% if objs.has_previous %}<a href="{% add_get page=objs.previous_page_number %}"><img src="{% static "images/dropline/previous.png" %}" /></a>{% endif %}</td>
+					<td align="center">
+						<div style="font-weight:bold;">
+							{{ objname }} {{ objs.start_index }}-{{ objs.end_index }} (of {{ objcount }})<br />
+							Page {{ objs.number }} of {{ objs.paginator.num_pages }}</div>
+					</td>
+					<td width="45%" align="left">{% if objs.has_next %}<a href="{% add_get page=objs.next_page_number %}"><img src="{% static "images/dropline/next.png" %}" /></a>{% endif %}</td>
+				</tr>
 			</table>
 

+ 1 - 1
traps/templates/traps/snippet_trap_as_tr.html

@@ -5,7 +5,7 @@
 	{% cycle 'Odd' 'Even' as OddEven silent %}
 	<tr>
 		<td width="6%" class="status{{OddEven}}">
-			<input type="checkbox" name="trapIDs" value="{{ trap.id }}" >
+			<input type="checkbox" name="trapIDs" value="{{ trap.id }}">
 			{% if not trap.trapread %}<a href="{% url "trap_modify" %}{% add_get action="read" trapID=trap.id %}"><img src="{% static "images/dropline/mark.png" %}" width=22 height=22 border="0" title="Mark as read"></a>{% else %}<img src="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw==" width=22 height=22>{% endif %}
 			<a href="{% url "trap_modify" %}{% add_get action="delete" trapID=trap.id %}"><img src="{% static "images/dropline/delete.png" %}" width=22 height=22 border="0" title="Delete"></a>
 			<!-- FIXME:#45 <a href="{% url "trap_modify" %}{% add_get action="archive" trapID=trap.id %}"><img src="{% static "images/dropline/archive.png" %}" width=22 height=22 border="0" title="Archive"></a> -->