Skip to content

Commit

Permalink
Merge pull request #121 from OnroerendErfgoed/104_display_naam_gebruiker
Browse files Browse the repository at this point in the history
104 display naam gebruiker
  • Loading branch information
taeymma committed Jul 2, 2018
2 parents 4e210a5 + c95ac54 commit 5f042a1
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions pyoes/templates/pyoes/header.jinja2
@@ -1,4 +1,3 @@

<!-- header -->

<!-- embed -->
Expand Down Expand Up @@ -41,7 +40,7 @@
('zoeken', 'Zoeken', '/'),
('vinden', 'Vinden', '/')
]
-%}
-%}
{% set default_dropdown_main_nav = [] %}

{% set default_login_nav = [('Aanmelden', '/')] %}
Expand Down Expand Up @@ -105,7 +104,11 @@
{% if request.user.actor and request.user.actor.omschrijving %}
<a href="#">{{ request.user.actor.omschrijving }}</a>
{% else %}
<a href="#">{{ request.user.attributes.displayname }}</a>
{% if request.user.attributes.displayname is iterable %}
<a href="#">{{ request.user.attributes.displayname[0] }}</a>
{% else %}
<a href="#">{{ request.user.attributes.displayname }}</a>
{% endif %}
{% endif %}
<ul class="dropdown">
{% for caption, href in login_sub_nav %}
Expand Down

0 comments on commit 5f042a1

Please sign in to comment.