Commit 3e80bc48 authored by Daniel W Bond's avatar Daniel W Bond

merging in the oceleotsloth edit name to pencil icon change

parents eefb570e 2300e96d
......@@ -19,7 +19,7 @@
<div class="col-md-6">
<h2><strong>{{ student.get_full_name_or_uname }}</strong>
{% if student.user == request.user %}
<small><a href="{% url 'name_change' %}">(Edit)</a></small>
<small><a href="{% url 'name_change' %}"><i class="fa fa-pencil"></i></a></small>
{% endif %}
</h2>
</div>
......
......@@ -5,6 +5,7 @@ SRCT Bookshare &bull; Edit Name
{% endblock title %}
{% block content %}
{% load gravatar %}
<div class="row">
<div class="col-lg-12 text-center">
......@@ -13,10 +14,25 @@ SRCT Bookshare &bull; Edit Name
</div>
</div>
<div class="row">
<div class="col-md-4 col-md-offset-2">
<img class="img-circle img-responsive" style="margin-left:auto;margin-right:auto;padding:10px"; src="{% gravatar_url request.user.email 150 %}">
</div>
<div class="col-md-4">
<hr />
<p>
If you have a <a href="https://en.gravatar.com/">Gravatar profile</a> associated
with your <a href="https://masonlive.gmu.edu/">Masonlive email</a> address, we will
display that profile picture.
</p>
<hr />
</div>
</div>
<div class="row">
<div class="col-md-8 col-md-offset-2">
<div class="panel panel-default">
<div class="panel-heading">
<form action="" method="post">{% csrf_token %}
{{ form.as_p }}
<div class="row">
......
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