From 7d524ffb5709c7f38ce4ffd5db3235bd2cbc9cb9 Mon Sep 17 00:00:00 2001 From: Munyoki Kilyungi Date: Tue, 2 Apr 2024 12:25:35 +0300 Subject: Display a history page containing all the edits. * gn2/wqflask/edit.py (__fetch_dataset_git_history__): New function. (view_history): New end-point. * gn2/wqflask/templates/dataset.html: Use htmx to fetch history. * gn2/wqflask/templates/dataset_history.html: New history page. Signed-off-by: Munyoki Kilyungi --- gn2/wqflask/templates/dataset.html | 49 ++++++++++++++++-------------- gn2/wqflask/templates/dataset_history.html | 20 ++++++++++++ 2 files changed, 46 insertions(+), 23 deletions(-) create mode 100644 gn2/wqflask/templates/dataset_history.html (limited to 'gn2/wqflask/templates') diff --git a/gn2/wqflask/templates/dataset.html b/gn2/wqflask/templates/dataset.html index e4ae34ae..1e2c5bc4 100644 --- a/gn2/wqflask/templates/dataset.html +++ b/gn2/wqflask/templates/dataset.html @@ -73,30 +73,27 @@ {% if dataset %} - -
+