Commit f3885f7e by David Ormsbee

Merge pull request #243 from MITx/release_fixes

Dashboard show full name instead of location. Removed updatecachemiddleware.
parents 7b67e69e c499a1a5
...@@ -254,8 +254,7 @@ def create_account(request, post_override=None): ...@@ -254,8 +254,7 @@ def create_account(request, post_override=None):
int(post_vars['date_of_birth__day'])) int(post_vars['date_of_birth__day']))
up.save() up.save()
# TODO (vshnayder): the LMS should probably allow signups without a particular course too
d = {'name': post_vars['name'], d = {'name': post_vars['name'],
'key': r.activation_key, 'key': r.activation_key,
} }
......
...@@ -262,7 +262,6 @@ TEMPLATE_LOADERS = ( ...@@ -262,7 +262,6 @@ TEMPLATE_LOADERS = (
MIDDLEWARE_CLASSES = ( MIDDLEWARE_CLASSES = (
'util.middleware.ExceptionLoggingMiddleware', 'util.middleware.ExceptionLoggingMiddleware',
'django.middleware.cache.UpdateCacheMiddleware',
'django.middleware.common.CommonMiddleware', 'django.middleware.common.CommonMiddleware',
'django.contrib.sessions.middleware.SessionMiddleware', 'django.contrib.sessions.middleware.SessionMiddleware',
'django.middleware.csrf.CsrfViewMiddleware', 'django.middleware.csrf.CsrfViewMiddleware',
......
...@@ -73,6 +73,10 @@ ...@@ -73,6 +73,10 @@
&.email-icon { &.email-icon {
@include background-image(url('../images/portal-icons/email-icon.png')); @include background-image(url('../images/portal-icons/email-icon.png'));
} }
&.name-icon {
@include background-image(url('../images/portal-icons/course-info-icon.png'));
}
&.location-icon { &.location-icon {
@include background-image(url('../images/portal-icons/home-icon.png')); @include background-image(url('../images/portal-icons/home-icon.png'));
......
...@@ -15,10 +15,10 @@ ...@@ -15,10 +15,10 @@
<section class="user-info"> <section class="user-info">
<ul> <ul>
<li> <li>
<span class="title"><div class="icon email-icon"></div>Email</span><span class="data">${ user.email }</span> <span class="title"><div class="icon name-icon"></div>Full Name</span><span class="data">${ user.profile.name | h }</span>
</li> </li>
<li> <li>
<span class="title"><div class="icon location-icon"></div>Location</span><span class="data">${ user.profile.location }</span> <span class="title"><div class="icon email-icon"></div>Email</span><span class="data">${ user.email | h }</span>
</li> </li>
</ul> </ul>
</section> </section>
......
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