Skip to content
Snippets Groups Projects
Commit aa9161fb authored by grollicus's avatar grollicus
Browse files

don't display speakerprofile uuid in the speaker header

parent 0037fb9f
No related branches found
No related tags found
No related merge requests found
......@@ -14,7 +14,7 @@
{% endblock title %}
{% block content %}
{{ navMacro.top_nav(_("User Profile %(username)s", username=display_user.username) ) }}
{{ navMacro.top_nav(_("Speaker Profile") if is_speaker_user else _("User Profile %(username)s", username=display_user.username) ) }}
<div class="hub-vlayout">
<div class="hub-row">
......
......@@ -1099,6 +1099,9 @@ msgstr "Kommende Events"
msgid "%(conf)s - User %(name)s"
msgstr ""
msgid "Speaker Profile"
msgstr "Speakerprofil"
#, python-format
msgid "User Profile %(username)s"
msgstr "Profil: %(username)s"
......@@ -1099,6 +1099,9 @@ msgstr ""
msgid "%(conf)s - User %(name)s"
msgstr ""
msgid "Speaker Profile"
msgstr "Speaker Profile"
#, python-format
msgid "User Profile %(username)s"
msgstr "User Profile %(username)s"
......@@ -33,6 +33,8 @@ class UserView(ConferenceRequiredMixin, TemplateView):
context = super().get_context_data(**kwargs)
context['conf'] = self.conf
context['display_user'] = display_user = get_object_or_404(PlatformUser.objects.filter(slug=user_slug))
# is_speaker_user = usre was auto generated to display speaker details. They've got technical usernames, so we shouldn't display them.
context['is_speaker_user'] = display_user.user_type == PlatformUser.Type.SPEAKER
# TODO: Update after deciding oh one or more conferences in #648
conference_member = display_user.conferences.filter(conference=self.conf).first()
context['description_html'] = None if not conference_member else conference_member.description_html
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment