{% block title %}{{ _("Differences in Revisions") }} - {{ page.title }}{% end block %}
{% block main %}
- <div class="card mb-3">
- <div class="card-body">
- <h4 class="card-title">
+ <div class="container">
+ <section class="section">
+ <h4 class="title is-4 has-text-centered">
{{ _("Differences in Revisions: %s") % page.title }}
</h4>
- <div class="row mb-3">
- <div class="col col-md-5 text-center">
- <h6 class="mb-0">{{ _("Older Revision") }}</h6>
+ <div class="columns">
+ <div class="column is-one-third has-text-centered">
+ <h6 class="title is-6">{{ _("Older Revision") }}</h6>
<a href="{{ a.url }}?revision={{ a.timestamp.isoformat() }}">
{{ locale.format_date(a.timestamp) }}
</a>
</div>
- <div class="col col-md-2 text-center">
+ <div class="column is-one-third has-text-centered">
»
</div>
- <div class="col col-md-5 text-center">
- <h6 class="mb-0">{{ _("Newer Revision") }}</h6>
+ <div class="column is-one-third has-text-centered">
+ <h6 class="title is-6">{{ _("Newer Revision") }}</h6>
<a href="{{ b.url }}?revision={{ b.timestamp.isoformat() }}">
{{ locale.format_date(b.timestamp) }}
</div>
{% if b.changes %}
- <div class="alert alert-light">
- {{ b.changes }}
+ <div class="notification has-text-centered">
+ {{ b.changes }}
</div>
{% end %}
-<table class="table table-sm small font-monospace">
- <tbody>
- {% for line in diff %}
- {% if not line.startswith("?") %}
- <tr class="{% if line.startswith("+") %}table-success{% elif line.startswith("-") %}table-danger{% end %}">
- <td>{% if line[2:] %}{{ line[2:] }}{% else %} {% end %}</td>
- </tr>
+<div class="container">
+ <table class="table is-family-monospace">
+ <tbody>
+ {% for line in diff %}
+ {% if not line.startswith("?") %}
+ <tr class="{% if line.startswith("+") %}is-success{% elif line.startswith("-") %}is-danger{% end %}">
+ <td>{% if line[2:] %}{{ line[2:] }}{% else %} {% end %}</td>
+ </tr>
+ {% end %}
{% end %}
- {% end %}
- </tbody>
-</table>
+ </tbody>
+ </table>
+</div>
\ No newline at end of file