Make compare more compact and add line numbers
This commit is contained in:
@ -7,10 +7,11 @@
|
||||
<i class="fa fa-arrow-left"></i> Back
|
||||
</a>
|
||||
<br><br>
|
||||
<table class="table table-condensed table-hover">
|
||||
<table class="table table-sm table-hover">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Line</th>
|
||||
<th>Type</th>
|
||||
<th>Old</th>
|
||||
<th>New</th>
|
||||
</tr>
|
||||
@ -18,19 +19,12 @@
|
||||
<tbody>
|
||||
{% for line in diff %}
|
||||
<tr>
|
||||
<td>{{ line.line }}.</td>
|
||||
<td class="table-{{ line.type == 'insert' ? 'success' : (line.type == 'delete' ? 'danger' : 'info') }}">
|
||||
{{ line.type }}
|
||||
</td>
|
||||
<td>
|
||||
{% if line.from %}
|
||||
{{ line.from }}
|
||||
{% endif %}
|
||||
</td>
|
||||
<td>
|
||||
{% if line.to %}
|
||||
{{ line.to }}
|
||||
{% endif %}
|
||||
</td>
|
||||
<td>{{ line.from }}</td>
|
||||
<td>{{ line.to }}</td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</tbody>
|
||||
|
Reference in New Issue
Block a user