File size: 1,686 Bytes
fad5c43
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
{% extends "base.html" %}
{% import "_partials.html" as ui %}
{# Locally designed member surface; the source submissions list is behind
   sign-in and was not captured. #}
{% block title %}Submissions - LeetCode{% endblock %}
{% block header %}{{ ui.app_header(member) }}{% endblock %}
{% block main %}
<div class="member">
  <h1 class="member__title">Submissions</h1>
  <p class="member__lead">{{ total }} submission{{ '' if total == 1 else 's' }} recorded for <strong>{{ member.username }}</strong>.</p>
  {% if rows %}
  <table class="member__table">
    <thead>
      <tr><th scope="col">Question</th><th scope="col">Status</th><th scope="col">Cases</th><th scope="col">Language</th><th scope="col">Runtime</th><th scope="col">Memory</th><th scope="col">Submitted</th></tr>
    </thead>
    <tbody>
      {% for row in rows %}
      <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.passed }} / {{ row.total }}</td>
        <td>{{ row.language|language_label }}</td>
        <td>{% if row.runtime_ms is not none %}{{ row.runtime_ms }} ms{% else %}N/A{% endif %}</td>
        <td>{% if row.memory_mb is not none %}{{ row.memory_mb }} MB{% else %}N/A{% endif %}</td>
        <td>{{ row.created_at }}</td>
      </tr>
      {% endfor %}
    </tbody>
  </table>
  {% 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 %}