AgPerry's picture
Add files using upload-large-folder tool
fb2916f verified
Raw History Blame Contribute Delete
1.69 kB
{% 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 %}