diff options
author | John Nduli | 2024-10-14 16:38:12 +0300 |
---|---|---|
committer | BonfaceKilz | 2024-10-15 18:17:12 +0300 |
commit | 18a47aa42c0244aa067adb954e66c72789e17a12 (patch) | |
tree | fbfa695f6f7d963ba53de38ce50d3b87a72791cb /gn2/wqflask/templates/wiki/genewiki.html | |
parent | 94ecee4a2030cdfcb79776276a73d53fd73ae2a3 (diff) | |
download | genenetwork2-18a47aa42c0244aa067adb954e66c72789e17a12.tar.gz |
feat: edit shows login message if not loggedin
Diffstat (limited to 'gn2/wqflask/templates/wiki/genewiki.html')
-rw-r--r-- | gn2/wqflask/templates/wiki/genewiki.html | 17 |
1 files changed, 14 insertions, 3 deletions
diff --git a/gn2/wqflask/templates/wiki/genewiki.html b/gn2/wqflask/templates/wiki/genewiki.html index 17665d72..1677c466 100644 --- a/gn2/wqflask/templates/wiki/genewiki.html +++ b/gn2/wqflask/templates/wiki/genewiki.html @@ -24,10 +24,21 @@ </div> <div class="col-sm-2"> {% if is_logged_in %} - <a href="{{ url_for('edit_wiki', comment_id=entry['id']) }}"> - <span class="glyphicon glyphicon-edit" aria-hidden="true"></span> - </a> + <a href="{{ url_for('edit_wiki', comment_id=entry['id']) }}"> + <span class="glyphicon glyphicon-edit" aria-hidden="true"></span> + </a> + {% else %} + <a data-toggle="collapse" data-target="#collapseLogin{{ loop.index }}" aria-expanded="false" aria-controls="collapseLogin{{ loop.index }}"> + <span class="glyphicon glyphicon-edit" aria-hidden="true"></span> + </a> + + <div class="collapse" id="collapseLogin{{ loop.index }}"> + <div class="well"> + Please login to be able to edit this + </div> + </div> {% endif %} + <sup><small>[<a href="/genewiki/{{ entry.id }}/history" target="_blank">history</a>]</small></sup> </div> </div> |