aboutsummaryrefslogtreecommitdiff
path: root/gn2/wqflask/templates/wiki
diff options
context:
space:
mode:
authorJohn Nduli2024-09-05 02:06:31 +0300
committerBonfaceKilz2024-09-17 11:40:42 +0300
commit6b2ee8f7ac6b90a53480f2b51289221fb59d5bc0 (patch)
tree538dc072d6731931d0b1f304e85a4be404339384 /gn2/wqflask/templates/wiki
parente4a8e2506c38fc86229fb24c30e4570f8aa72037 (diff)
downloadgenenetwork2-6b2ee8f7ac6b90a53480f2b51289221fb59d5bc0.tar.gz
feat: show edit button in view rif page
Diffstat (limited to 'gn2/wqflask/templates/wiki')
-rw-r--r--gn2/wqflask/templates/wiki/genewiki.html23
1 files changed, 16 insertions, 7 deletions
diff --git a/gn2/wqflask/templates/wiki/genewiki.html b/gn2/wqflask/templates/wiki/genewiki.html
index 41fa97df..36aa41c1 100644
--- a/gn2/wqflask/templates/wiki/genewiki.html
+++ b/gn2/wqflask/templates/wiki/genewiki.html
@@ -12,14 +12,23 @@
<strong>GeneNetwork:</strong>
</h5>
{% if wiki %}
- <ol>
+ <ol class="list-group">
{% for entry in wiki %}
- <li>
- {{ entry.get("comment") }}
- {% if entry.get("web_url") %}
- <sup> <small> <a href = "{{ entry.web_url }}" target = "_blank"> <span class = "glyphicon glyphicon-globe" aria-hidden = "true"></span>web</a></small></sup>
- {% endif %}
- <sup><small>[<a href="/genewiki/{{ entry.id }}/history" target="_blank">history</a>]</small></sup>
+ <li class="list-group-item">
+ <div class="row">
+ <div class="col-sm-1">{{ loop.index }}.</div>
+ <div class="col-sm-6">
+ {{ entry.get("comment") }}
+ {% if entry.get("web_url") %}
+ <sup> <small> <a href = "{{ entry.web_url }}" target = "_blank"> <span class = "glyphicon glyphicon-globe" aria-hidden = "true"></span>web</a></small></sup>
+ {% endif %}
+ </div>
+ <div class="col-sm-2">
+ <a href="{{ url_for('edit_wiki', comment_id=entry['id']) }}">
+ <span class="glyphicon glyphicon-edit" aria-hidden="true"></span>
+ </a>
+ </div>
+ <sup><small>[<a href="/genewiki/{{ entry.id }}/history" target="_blank">history</a>]</small></sup>
</li>
{% endfor %}
</ol>