Commit 2e9fa7e2 authored by Eyad Hasan's avatar Eyad Hasan
Browse files

Added profile picture to navbar

parent 82edcc61
...@@ -108,6 +108,7 @@ outline-offset: none; ...@@ -108,6 +108,7 @@ outline-offset: none;
margin-top: -5px; margin-top: -5px;
} }
.breadcrumb {background: rgba(245, 245, 245, 1); border: 2px solid rgba(245, 245, 245, 1); border-radius: 4px; display: block;} .breadcrumb {background: rgba(245, 245, 245, 1); border: 2px solid rgba(245, 245, 245, 1); border-radius: 4px; display: block;}
.breadcrumb li {font-size: 20px;} .breadcrumb li {font-size: 20px;}
......
...@@ -26,7 +26,9 @@ ...@@ -26,7 +26,9 @@
<li class="visible-xs"> <li class="visible-xs">
<a href="/search">Search</a> <a href="/search">Search</a>
</li> </li>
<li><a href="{{ user.student.get_absolute_url }}">{{ user.username }}</a> <!-- Puts profile picture in navbar next to username-->
<li><a href="{{ user.student.get_absolute_url }}"><img src="{{ request.user.student.profile_image_url }}" height="30" width="30" style="margin: -5px 10px" alt="{{ student.profile_image_url }}" class="img-circle">{{ user.username }}</a>
</li> </li>
<li class="visible-lg visible-md visible-sm"> <li class="visible-lg visible-md visible-sm">
<a href="{% url 'update_student' request.user.username %}"><i class="fa fa-cog fa-fw fa-lg"></i></a> <a href="{% url 'update_student' request.user.username %}"><i class="fa fa-cog fa-fw fa-lg"></i></a>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment