From 0d8264f0e8eb9a029a710b249dd904da69df0476 Mon Sep 17 00:00:00 2001 From: Munyoki Kilyungi Date: Mon, 8 Aug 2022 12:35:42 +0300 Subject: Delete "diff" section For both the edit phenotype and probeset pages, the diffs can be viewed from history.html. * wqflask/wqflask/templates/edit_phenotype.html: Delete "diffs" section. * wqflask/wqflask/templates/edit_probeset.html: Ditto. --- wqflask/wqflask/templates/edit_phenotype.html | 47 -------------------------- wqflask/wqflask/templates/edit_probeset.html | 48 --------------------------- 2 files changed, 95 deletions(-) (limited to 'wqflask') diff --git a/wqflask/wqflask/templates/edit_phenotype.html b/wqflask/wqflask/templates/edit_phenotype.html index a0b7a6eb..feeadadb 100644 --- a/wqflask/wqflask/templates/edit_phenotype.html +++ b/wqflask/wqflask/templates/edit_phenotype.html @@ -17,53 +17,6 @@ [View History] - {% if diff %} - -
-
- -

Update History

-
- - - - - - - - - {% set ns = namespace(display_cell=True) %} - - {% for timestamp, group in diff %} - {% set ns.display_cell = True %} - {% for i in group %} - - {% if ns.display_cell and i.timestamp == timestamp %} - - {% set author = i.author %} - {% set timestamp_ = i.timestamp %} - - {% else %} - - {% set author = "" %} - {% set timestamp_ = "" %} - - {% endif %} - - - - - {% set ns.display_cell = False %} - - {% endfor %} - {% endfor %} - -
TimestampEditorFieldDiff
{{ timestamp_ }}{{ author }}{{ i.diff.field }}
{{ i.diff.diff }}
-
- -
- - {% endif %}
diff --git a/wqflask/wqflask/templates/edit_probeset.html b/wqflask/wqflask/templates/edit_probeset.html index d9aee9d8..0f5bb04b 100644 --- a/wqflask/wqflask/templates/edit_probeset.html +++ b/wqflask/wqflask/templates/edit_probeset.html @@ -9,54 +9,6 @@
-{% if diff %} - -
-
- -

Update History

-
- - - - - - - - - {% set ns = namespace(display_cell=True) %} - - {% for timestamp, group in diff %} - {% set ns.display_cell = True %} - {% for i in group %} - - {% if ns.display_cell and i.timestamp == timestamp %} - - {% set author = i.author %} - {% set timestamp_ = i.timestamp %} - - {% else %} - - {% set author = "" %} - {% set timestamp_ = "" %} - - {% endif %} - - - - - {% set ns.display_cell = False %} - - {% endfor %} - {% endfor %} - -
TimestampEditorFieldDiff
{{ timestamp_ }}{{ author }}{{ i.diff.field }}
{{ i.diff.diff }}
-
- -
- -{% endif %} -
-- cgit v1.2.3