diff options
author | mroley1 <64291507+mroley1@users.noreply.github.com> | 2022-08-25 10:44:07 -0400 |
---|---|---|
committer | mroley1 <64291507+mroley1@users.noreply.github.com> | 2022-08-25 10:44:07 -0400 |
commit | 78794b01c22814d434a7562749f26d2e4eb9e655 (patch) | |
tree | db9920bb10c6d35fa49fa39711a4ced1d37c12ea | |
parent | 5ff71dfd65e32fdf82a934409d18fe4369d11a05 (diff) |
facied up nav user profile logic
-rw-r--r-- | packet/templates/include/nav.html | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/packet/templates/include/nav.html b/packet/templates/include/nav.html index a421e98..6573b8b 100644 --- a/packet/templates/include/nav.html +++ b/packet/templates/include/nav.html @@ -41,7 +41,11 @@ <li class="navbar-user dropdown"> <a class="nav-link dropdown-toggle" data-toggle="dropdown" href="#" id="user01"> - <img src="https://profiles.csh.rit.edu/image/{{ info.uid }}" onerror="this.src='https://gravatar.com/avatar/c000557e7f805c44b0cc0079db911f21.jpg?d=mm&s=250'"> + {% if info.realm == "csh" %} + <img src="https://profiles.csh.rit.edu/image/{{ info.uid }}"> + {% else %} + <img src="{{ get_rit_image(info.uid) }}"> + {% endif %} {{ info.uid }} <span class="caret"></span> </a> |