Compare commits

...

2 Commits

Author SHA1 Message Date
Inga Kirschnick
691b2de5b2 Bug Fix: lock chips after switch to QB 2023-11-20 09:48:06 +01:00
Patrick Jentsch
eb0e7c9ba1 Fix error on not authenticated users 2023-11-20 09:35:53 +01:00
2 changed files with 7 additions and 0 deletions

View File

@ -361,6 +361,9 @@ nopaque.corpus_analysis.query_builder.QueryBuilder = class QueryBuilder {
isEditable = false;
}
this.submitQueryChipElement(chipElement['type'], chipElement['pretty'], chipElement['query'], null, isClosingTag, isEditable);
if (isClosingTag) {
this.lockClosingChipElement(this.elements.queryChipElements[this.elements.queryChipElements.length-1]);
}
}
}

View File

@ -12,8 +12,12 @@
<li><a href="{{ url_for('main.news') }}"><i class="material-icons left">email</i>News</a></li>
<li>
<a class="dropdown-trigger no-autoinit" data-target="nav-more-dropdown" href="#!" id="nav-more-dropdown-trigger">
{% if current_user.is_authenticated %}
<img src="{{ url_for('users.user_avatar', user_id=current_user.id) }}" alt="avatar" class="circle left" style="height: 54px; padding: 10px 10px 0 0;">
{{ current_user.username }} ({{ current_user.email }})
{% else %}
<i class="material-icons left">more_vert</i>
{% endif %}
</a>
</li>
</ul>