Skip to content

Commit

Permalink
Display username if it exists (#2083)
Browse files Browse the repository at this point in the history
  • Loading branch information
vidya-ram authored Jun 26, 2024
1 parent e291a5f commit 84046f5
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions funnel/templates/profile_layout.html.jinja2
Original file line number Diff line number Diff line change
Expand Up @@ -421,7 +421,9 @@
{% endif %}
<div class="mui--hidden-xs mui--hidden-sm profile__logo__details">
<h2 class="mui--text-dark text-bold zero-bottom-margin"><a class="mui--text-dark" data-cy="profile-title" href="{{ profile.url_for() }}">{{ profile.title }}</a></h2>
<p class="mui--text-title mui--text-light">@{{ profile.name }}</p>
{%- if profile.name %}
<p class="mui--text-title mui--text-light">@{{ profile.name }}</p>
{% endif %}
</div>
</div>
<div class="profile__banner__btns mui--hidden-xs mui--hidden-sm">
Expand All @@ -442,7 +444,9 @@
<div class="grid__col-12">
<div class="mui--hidden-md mui--hidden-lg mui--hidden-xl">
<h2 class="text-bold zero-bottom-margin" data-cy="profile-title"><a href="{{ profile.url_for() }}" class="mui--text-dark">{{ profile.title }}</a></h2>
<p class="mui--text-title mui--text-light">@{{ profile.name }}</p>
{%- if profile.name %}
<p class="mui--text-title mui--text-light">@{{ profile.name }}</p>
{%- endif %}
</div>
<ul class="bullet-separated-list">
{%- if profile.joined_at %}
Expand Down

0 comments on commit 84046f5

Please sign in to comment.