From 026a0722357d74b143ed2d974ad2d871a56041b3 Mon Sep 17 00:00:00 2001 From: Andrew Dickinson Date: Mon, 20 Apr 2020 09:30:27 -0400 Subject: Add Project History Page (#553) Co-Authored-By: Glandos All project activity can be tracked, using SQLAlchemy-continuum. IP addresses can optionally be recorded. --- ihatemoney/static/css/main.css | 44 ++++++++++++++++++++++++++++++++++++- ihatemoney/static/images/add.png | Bin 0 -> 264 bytes ihatemoney/static/images/x.svg | 8 +++++++ ihatemoney/static/js/ihatemoney.js | 4 ++++ 4 files changed, 55 insertions(+), 1 deletion(-) create mode 100644 ihatemoney/static/images/add.png create mode 100644 ihatemoney/static/images/x.svg (limited to 'ihatemoney/static') diff --git a/ihatemoney/static/css/main.css b/ihatemoney/static/css/main.css index fe8eec2..7d91c38 100644 --- a/ihatemoney/static/css/main.css +++ b/ihatemoney/static/css/main.css @@ -326,7 +326,8 @@ footer .footer-left { } #bill_table, -#monthly_stats { +#monthly_stats, +#history_table { margin-top: 30px; margin-bottom: 30px; } @@ -363,6 +364,36 @@ footer .footer-left { background: url("../images/see.png") no-repeat right; } +.history_icon > .delete, +.history_icon > .add, +.history_icon > .edit { + font-size: 0px; + display: block; + width: 16px; + height: 16px; + margin: 2px; + margin-right: 10px; + margin-top: 3px; + float: left; +} + +.history_icon > .delete { + background: url("../images/delete.png") no-repeat right; +} + +.history_icon > .edit { + background: url("../images/edit.png") no-repeat right; +} + +.history_icon > .add { + background: url("../images/add.png") no-repeat right; +} + +.history_text { + display: table-cell; +} + + .balance .balance-value { text-align: right; } @@ -518,12 +549,23 @@ footer .icon svg { fill: white; } +.icon.icon-red { + fill: #dc3545; +} +.btn:hover .icon.icon-red { + fill: white !important; +} + /* align the first column */ #monthly_stats tr *:first-child { text-align: right; width: 200px; } +#history_warnings { + margin-top: 30px; +} + /* edit settings */ .edit-project form { diff --git a/ihatemoney/static/images/add.png b/ihatemoney/static/images/add.png new file mode 100644 index 0000000..262891b Binary files /dev/null and b/ihatemoney/static/images/add.png differ diff --git a/ihatemoney/static/images/x.svg b/ihatemoney/static/images/x.svg new file mode 100644 index 0000000..3416d7a --- /dev/null +++ b/ihatemoney/static/images/x.svg @@ -0,0 +1,8 @@ + \ No newline at end of file diff --git a/ihatemoney/static/js/ihatemoney.js b/ihatemoney/static/js/ihatemoney.js index c240dc1..9ffc877 100644 --- a/ihatemoney/static/js/ihatemoney.js +++ b/ihatemoney/static/js/ihatemoney.js @@ -5,3 +5,7 @@ function selectCheckboxes(value){ els[i].checked = value; } } + +function localizeTime(utcTimestamp) { + return new Date(utcTimestamp).toLocaleString() +} -- cgit v1.1