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') }}">
|
<td class="table-{{ line.type == 'insert' ? 'success' : (line.type == 'delete' ? 'danger' : 'info') }}">
|
||||||
{{ line.type }}
|
{{ line.type }}
|
||||||
</td>
|
</td>
|
||||||
<td>{{ line.from }}</td>
|
<td class="table-{{ line.type == 'insert' ? '' : (line.type == 'delete' ? 'danger' : 'info') }}">
|
||||||
<td>{{ line.to }}</td>
|
{{ line.from }}
|
||||||
|
</td>
|
||||||
|
<td class="table-{{ line.type == 'insert' ? 'success' : (line.type == 'delete' ? '' : 'info') }}">
|
||||||
|
{{ line.to }}
|
||||||
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</tbody>
|
</tbody>
|
||||||
|
@ -9,7 +9,7 @@
|
|||||||
<a href="{{ path('version_set', {version: snip.latestVersion.id, snip: snip.id}) }}" class="btn btn-warning">
|
<a href="{{ path('version_set', {version: snip.latestVersion.id, snip: snip.id}) }}" class="btn btn-warning">
|
||||||
<i class="fa fa-refresh"></i> Latest
|
<i class="fa fa-refresh"></i> Latest
|
||||||
</a>
|
</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
|
<i class="fa fa-left-right"></i> Compare
|
||||||
</a>
|
</a>
|
||||||
<br><br>
|
<br><br>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user