feat: course page redesign
This commit is contained in:
@@ -89,7 +89,7 @@
|
||||
<section>
|
||||
<div class="dashboard__parent">
|
||||
<div>
|
||||
{{ profile(member.photo, member.full_name, abbr, "large")}}
|
||||
{{ profile(member.photo, member.full_name, member.abbr, "large")}}
|
||||
</div>
|
||||
<div class="dashboard__details">
|
||||
<div class="dashboard__name">
|
||||
@@ -131,7 +131,7 @@
|
||||
{% endif %}
|
||||
</div>
|
||||
{% if not sketches %}
|
||||
<p class="text-center">{{member.full_name}} has not created any skecth yet.</p>
|
||||
<p class="text-center">{{member.full_name}} has not created any skecth yet.</p>
|
||||
{% endif %}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -8,7 +8,6 @@ def get_context(context):
|
||||
if not context.member:
|
||||
context.template = "www/404.html"
|
||||
else:
|
||||
context.abbr = "".join([s[0] for s in context.member.full_name.split()])
|
||||
context.sketches = list(filter(lambda x: x.owner == context.member.email, get_recent_sketches()))
|
||||
|
||||
def get_member(username):
|
||||
|
||||
Reference in New Issue
Block a user