AgPerry's picture
Add files using upload-large-folder tool
7f8e190 verified
Raw History Blame Contribute Delete
2.86 kB
{% extends "base.html" %}
{% import "_partials.html" as ui %}
{# The source /progress/ page is behind sign-in and was not captured. This is a
locally designed member surface that reports the state the clone actually
persists; it does not imitate an uncaptured source page. #}
{% block title %}Progress - LeetCode{% endblock %}
{% block header %}{{ ui.app_header(member) }}{% endblock %}
{% block main %}
<div class="member">
<h1 class="member__title">Progress</h1>
<p class="member__lead">Signed in as <strong>{{ member.username }}</strong> ({{ member.email }}).</p>
<section class="member__cards">
<article class="member__card">
<p class="member__figure" data-total-solved>{{ summary.total_solved }}</p>
<p class="member__label">Solved of {{ summary.total_questions }}</p>
</article>
<article class="member__card">
<p class="member__figure">{{ summary.total_attempted }}</p>
<p class="member__label">Attempted</p>
</article>
<article class="member__card">
<p class="member__figure">{{ summary.submissions }}</p>
<p class="member__label">Submissions</p>
</article>
<article class="member__card">
<p class="member__figure">{{ summary.acceptance_rate }}%</p>
<p class="member__label">Acceptance rate</p>
</article>
</section>
<table class="member__table">
<caption>Solved by difficulty</caption>
<thead><tr><th scope="col">Difficulty</th><th scope="col">Solved</th><th scope="col">Attempted</th><th scope="col">Total</th></tr></thead>
<tbody>
{% for level in ['Easy', 'Medium', 'Hard'] %}
<tr>
<th scope="row"><span class="pill pill--{{ level|lower }}">{{ level }}</span></th>
<td>{{ summary.solved[level] }}</td>
<td>{{ summary.attempted[level] }}</td>
<td>{{ summary.totals[level] }}</td>
</tr>
{% endfor %}
</tbody>
</table>
<h2 class="member__h2">Recent submissions</h2>
{% if recent %}
<table class="member__table">
<thead><tr><th scope="col">Question</th><th scope="col">Status</th><th scope="col">Language</th><th scope="col">Submitted</th></tr></thead>
<tbody>
{% for row in recent %}
<tr>
<td><a href="/problems/{{ row.question_slug }}/submissions/">{{ row.number }}. {{ row.title }}</a></td>
<td><span class="verdict verdict--{{ row.status|lower|replace(' ', '-') }}">{{ row.status }}</span></td>
<td>{{ row.language|language_label }}</td>
<td>{{ row.created_at }}</td>
</tr>
{% endfor %}
</tbody>
</table>
<p class="member__more"><a href="/submissions/">All submissions</a></p>
{% else %}
<p class="member__empty">No submission yet. <a href="/problems/two-sum/description/">Start with Two Sum</a>.</p>
{% endif %}
</div>
{% endblock %}
{% block footer %}{{ ui.app_footer('white') }}{% endblock %}