diff options
| author | Brice Maron <b.maron@whatever-company.com> | 2019-07-26 16:34:41 +0200 |
|---|---|---|
| committer | Alexis Metaireau <alexis@notmyidea.org> | 2019-07-27 03:44:42 +0200 |
| commit | 89e78bb4d0ddccea47d8219129b5e8791fb797a6 (patch) | |
| tree | 3e5c12aa0af743ab6119c2e1efb5720d30efae28 /ihatemoney/templates | |
| parent | 669b15b0ec0a491f169772ac69e96a9970759a36 (diff) | |
| download | ihatemoney-mirror-89e78bb4d0ddccea47d8219129b5e8791fb797a6.zip ihatemoney-mirror-89e78bb4d0ddccea47d8219129b5e8791fb797a6.tar.gz ihatemoney-mirror-89e78bb4d0ddccea47d8219129b5e8791fb797a6.tar.bz2 | |
Remove Added on column from bill list.
to avoid breaking anyone's workflow, i've instead use a tooltip to display the creation date.
fix #418
Diffstat (limited to 'ihatemoney/templates')
| -rw-r--r-- | ihatemoney/templates/layout.html | 3 | ||||
| -rw-r--r-- | ihatemoney/templates/list_bills.html | 10 |
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> |
