Skip to content

Commit 78794b0

Browse files
committed
facied up nav user profile logic
1 parent 5ff71df commit 78794b0

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

packet/templates/include/nav.html

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,11 @@
4141
<li class="navbar-user dropdown">
4242

4343
<a class="nav-link dropdown-toggle" data-toggle="dropdown" href="#" id="user01">
44-
<img src="https://profiles.csh.rit.edu/image/{{ info.uid }}" onerror="this.src='https://gravatar.com/avatar/c000557e7f805c44b0cc0079db911f21.jpg?d=mm&s=250'">
44+
{% if info.realm == "csh" %}
45+
<img src="https://profiles.csh.rit.edu/image/{{ info.uid }}">
46+
{% else %}
47+
<img src="{{ get_rit_image(info.uid) }}">
48+
{% endif %}
4549
{{ info.uid }}
4650
<span class="caret"></span>
4751
</a>

0 commit comments

Comments
 (0)