File size: 2,863 Bytes
fb2916f
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
{% 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 %}