]> git.ipfire.org Git - ipfire.org.git/commitdiff
docs/modules/diff: added coloring for lines starting with +/-
authorRico Hoppe <rico.hoppe@ipfire.org>
Sun, 15 Oct 2023 14:28:59 +0000 (14:28 +0000)
committerRico Hoppe <rico.hoppe@ipfire.org>
Sun, 15 Oct 2023 14:28:59 +0000 (14:28 +0000)
src/templates/docs/modules/diff.html

index 42f1fec2683e409e91eca2c229fba1093becf1e6..fc2f7607386ab4eafef469f7075fc3f64124556c 100644 (file)
@@ -3,11 +3,11 @@
                <tbody>
                        {% for line in diff %}
                                {% if not line.startswith("?") %}
-                                       <tr class="{% if line.startswith("+") %}is-success{% elif line.startswith("-") %}is-danger{% end %}">
+                                       <tr class="{% if line.startswith("+") %}has-background-success-light{% elif line.startswith("-") %}has-background-danger-light{% end %}">
                                                <td>{% if line[2:] %}{{ line[2:] }}{% else %}&nbsp;{% end %}</td>
                                        </tr>
                                {% end %}
                        {% end %}
                </tbody>
        </table>
-</div>
\ No newline at end of file
+</div>