misc: make platform name a link to the frontoffice (#28306)

This commit is contained in:
Frédéric Péters 2018-11-25 14:41:46 +01:00
parent e88bb930a8
commit 84a4a23913
2 changed files with 5 additions and 1 deletions

View File

@ -155,6 +155,10 @@ ul.user-info {
color: black;
padding: 0 2em;
text-transform: uppercase;
a {
border: none;
color: $font-color;
}
}
@media screen and (max-width: $mobile-limit) {
.ui-platform-name, .ui-avatar, .ui-name, .ui-help {

View File

@ -27,7 +27,7 @@
{% block user-links %}
<ul class="user-info">
{% if global_title %}
<li class="ui-platform-name">{{ global_title }}</li>
<li class="ui-platform-name">{% if portal_url %}<a href="{{portal_url}}">{{ global_title }}</a>{% else %}{{ global_title }}{% endif %}</li>
{% endif %}
{% if user.is_authenticated %}
<li class="ui-avatar">{{ user.get_full_name|slice:":1" }}</li>