aboutsummaryrefslogtreecommitdiff
path: root/ihatemoney/templates
diff options
context:
space:
mode:
Diffstat (limited to 'ihatemoney/templates')
-rw-r--r--ihatemoney/templates/layout.html3
-rw-r--r--ihatemoney/templates/list_bills.html10
2 files changed, 9 insertions, 4 deletions
diff --git a/ihatemoney/templates/layout.html b/ihatemoney/templates/layout.html
index 2cb17da..84e75b4 100644
--- a/ihatemoney/templates/layout.html
+++ b/ihatemoney/templates/layout.html
@@ -9,6 +9,7 @@
<script src="{{ url_for("static", filename="js/jquery-3.1.1.min.js") }}"></script>
<script src="{{ url_for("static", filename="js/ihatemoney.js") }}"></script>
<script src="{{ url_for("static", filename="js/tether.min.js") }}"></script>
+ <script src="{{ url_for("static", filename="js/popper.min.js") }}"></script>
<script src="{{ url_for("static", filename="js/bootstrap.min.js") }}"></script>
{% block head %}{% endblock %}
<script type="text/javascript" charset="utf-8">
@@ -20,7 +21,7 @@
}, 4000);
$('.dropdown-toggle').dropdown();
-
+ $('[data-toggle="tooltip"]').tooltip();
{% block js %}{% endblock %}
});
</script>
diff --git a/ihatemoney/templates/list_bills.html b/ihatemoney/templates/list_bills.html
index 98ff683..6ccf0a0 100644
--- a/ihatemoney/templates/list_bills.html
+++ b/ihatemoney/templates/list_bills.html
@@ -98,12 +98,16 @@
{% if bills.count() > 0 %}
<table id="bill_table" class="col table table-striped table-hover table-responsive-sm">
- <thead><tr><th>{{ _("Added on") }}</th><th>{{ _("When?") }}</th><th>{{ _("Who paid?") }}</th><th>{{ _("For what?") }}</th><th>{{ _("For whom?") }}</th><th>{{ _("How much?") }}</th><th>{{ _("Actions") }}</th></tr></thead>
+ <thead><tr><th>{{ _("When?") }}</th><th>{{ _("Who paid?") }}</<th><th>{{ _("For what?") }}</th><th>{{ _("For whom?") }}</th><th>{{ _("How much?") }}</th><th>{{ _("Actions") }}</th></tr></thead>
<tbody>
{% for bill in bills %}
<tr owers="{{bill.owers|join(',','id')}}" payer="{{bill.payer.id}}">
- <td>{{ bill.creation_date if bill.creation_date else bill.date }}</td>
- <td>{{ bill.date }}</td>
+ <td>
+ <span data-toggle="tooltip" data-placement="top"
+ title="{{ _('Added on %(date)s', date=bill.creation_date if bill.creation_date else bill.date) }}">
+ {{ bill.date }}
+ </span>
+ </td>
<td>{{ bill.payer }}</td>
<td>{{ bill.what }}</td>
<td>{{ bill.owers|join(', ', 'name') }} </td>