Files
edx-platform/lms/templates/discussion/_user_profile.html
2014-01-15 14:26:22 -05:00

11 lines
700 B
HTML

<%! from django.utils.translation import ugettext as _, ungettext %>
<%def name="span(num)"><span>${num}</span></%def>
<div class="user-profile">
<div class="sidebar-username">${django_user.username | h}</div>
<div class="sidebar-user-roles">
${_(', ').join(sorted(set(map(_, [role.name for role in django_user.roles.all()]))))}
</div>
<div class="sidebar-threads-count">${ungettext('%s discussion started', '%s discussions started', profiled_user['threads_count']) % span(profiled_user['threads_count']) | h}</div>
<div class="sidebar-comments-count">${ungettext('%s comment', '%s comments', profiled_user['comments_count']) % span(profiled_user['comments_count']) | h}</div>
</div>