feat: course page redesign

This commit is contained in:
pateljannat
2021-04-20 13:21:01 +05:30
parent 91be957885
commit e6248f9e02
36 changed files with 979 additions and 67 deletions

View File

@@ -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>

View File

@@ -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):