diff options
author | Munyoki Kilyungi | 2022-08-08 12:35:42 +0300 |
---|---|---|
committer | BonfaceKilz | 2022-08-09 08:28:08 +0300 |
commit | 0d8264f0e8eb9a029a710b249dd904da69df0476 (patch) | |
tree | 065c125e384661bdb811aedbfdfc626ac2f0174d /wqflask | |
parent | 9ad492d03acbb30b5c6d67d98c55bf7bc878e00e (diff) | |
download | genenetwork2-0d8264f0e8eb9a029a710b249dd904da69df0476.tar.gz |
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.
Diffstat (limited to 'wqflask')
-rw-r--r-- | wqflask/wqflask/templates/edit_phenotype.html | 47 | ||||
-rw-r--r-- | wqflask/wqflask/templates/edit_probeset.html | 48 |
2 files changed, 0 insertions, 95 deletions
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 @@ <small><a href="{{url_for('metadata_edit.show_history', dataset_id=dataset_id, name=name)}}" target="_blank">[View History]</a></small> </div> - {% if diff %} - - <div class="container text-left"> - <details class="col-md-12 col-lg-20 col-lg-22"> - <summary> - <h2>Update History</h2> - </summary> - <table class="table"> - <tbody> - <tr> - <th>Timestamp</th> - <th>Editor</th> - <th>Field</th> - <th>Diff</th> - </tr> - {% set ns = namespace(display_cell=True) %} - - {% for timestamp, group in diff %} - {% set ns.display_cell = True %} - {% for i in group %} - <tr> - {% if ns.display_cell and i.timestamp == timestamp %} - - {% set author = i.author %} - {% set timestamp_ = i.timestamp %} - - {% else %} - - {% set author = "" %} - {% set timestamp_ = "" %} - - {% endif %} - <td>{{ timestamp_ }}</td> - <td>{{ author }}</td> - <td>{{ i.diff.field }}</td> - <td><pre>{{ i.diff.diff }}</pre></td> - {% set ns.display_cell = False %} - </tr> - {% endfor %} - {% endfor %} - </tbody> - </table> - </details> - - </div> - - {% endif %} <form id="edit-form" class="container form-horizontal" method="post" action="/datasets/{{dataset_id}}/traits/{{ publish_xref.id_ }}?resource-id={{ resource_id }}" enctype='multipart/form-data'> <div class="form-group"> <div class="controls left-block col-sm-8 col-lg-8" style="width: max-content;"> 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 @@ </div> </div> -{% if diff %} - -<div class="container"> - <details class="col-sm-12 col-md-10 col-lg-12"> - <summary> - <h2>Update History</h2> - </summary> - <table class="table"> - <tbody> - <tr> - <th>Timestamp</th> - <th>Editor</th> - <th>Field</th> - <th>Diff</th> - </tr> - {% set ns = namespace(display_cell=True) %} - - {% for timestamp, group in diff %} - {% set ns.display_cell = True %} - {% for i in group %} - <tr> - {% if ns.display_cell and i.timestamp == timestamp %} - - {% set author = i.author %} - {% set timestamp_ = i.timestamp %} - - {% else %} - - {% set author = "" %} - {% set timestamp_ = "" %} - - {% endif %} - <td>{{ timestamp_ }}</td> - <td>{{ author }}</td> - <td>{{ i.diff.field }}</td> - <td><pre>{{ i.diff.diff }}</pre></td> - {% set ns.display_cell = False %} - </tr> - {% endfor %} - {% endfor %} - </tbody> - </table> - </details> - -</div> - -{% endif %} - <form id="edit-form" class="form-horizontal" method="post" action="/datasets/traits/{{ name }}?resource-id={{ resource_id }}"> <div class="form-group"> <label for="symbol" class="col-sm-2 control-label">Symbol:</label> |