Improve compare styling
This commit is contained in:
parent
ab97482ae6
commit
771f354346
8
src/Service/SnipContent/Lexer.php
Normal file
8
src/Service/SnipContent/Lexer.php
Normal file
@ -0,0 +1,8 @@
|
||||
<?php
|
||||
|
||||
namespace App\Service\SnipContent;
|
||||
|
||||
class Lexer
|
||||
{
|
||||
|
||||
}
|
@ -23,8 +23,12 @@
|
||||
<td class="table-{{ line.type == 'insert' ? 'success' : (line.type == 'delete' ? 'danger' : 'info') }}">
|
||||
{{ line.type }}
|
||||
</td>
|
||||
<td>{{ line.from }}</td>
|
||||
<td>{{ line.to }}</td>
|
||||
<td class="table-{{ line.type == 'insert' ? '' : (line.type == 'delete' ? 'danger' : 'info') }}">
|
||||
{{ line.from }}
|
||||
</td>
|
||||
<td class="table-{{ line.type == 'insert' ? 'success' : (line.type == 'delete' ? '' : 'info') }}">
|
||||
{{ line.to }}
|
||||
</td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</tbody>
|
||||
|
@ -9,7 +9,7 @@
|
||||
<a href="{{ path('version_set', {version: snip.latestVersion.id, snip: snip.id}) }}" class="btn btn-warning">
|
||||
<i class="fa fa-refresh"></i> Latest
|
||||
</a>
|
||||
<a href="{{ path('content_compare', {to: snip.activeVersion.id}) }}" class="btn btn-warning">
|
||||
<a href="{{ path('content_compare', {to: snip.activeVersion.id}) }}" class="btn btn-info">
|
||||
<i class="fa fa-left-right"></i> Compare
|
||||
</a>
|
||||
<br><br>
|
||||
|
Loading…
x
Reference in New Issue
Block a user