You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Hydro/packages/ui-default/templates/problem_main.html

71 lines
2.5 KiB
HTML

{% import "components/record.html" as record with context %}
{% import "components/problem.html" as problem with context %}
{% extends "layout/basic.html" %}
{% block content %}
{{ set(UiContext, {
getProblemUrlWithCategory: url('problem_category', category='{category}'),
getProblemUrlWithoutCategory: url('problem_main'),
currentCategory: category
}) }}
<div class="row">
<div class="medium-9 columns">
<div class="section">
<div class="section__body no-padding">
{% include "partials/problem_list.html" %}
</div>
</div>
</div>
<div class="medium-3 columns">
<div class="section side">
<div class="section__header">
<h1 class="section__title">{{ _('Categories') }}</h1>
</div>
<div class="section__body">
{% include "partials/category.html" %}
</div>
<div class="section__body">
{% include "partials/problem_lucky.html" %}
</div>
</div>
<div class="section side">
<div class="section__header">
<h1 class="section__title">{{ _('Search') }}</h1>
</div>
<form method="get" action="{{ url('problem_main') }}">
<div class="section__body">
<label>
<input name="q" type="text" class="textbox" value="{{ category }}" placeholder="1001">
</label>
<button type="submit" class="primary button">{{ _('Search') }}</button>
</div>
</form>
</div>
{% if handler.user.hasPerm(perm.PERM_CREATE_PROBLEM) %}
<div class="section side">
<div class="section__header">
<h1 class="section__title">{{ _('Create Problem') }}</h1>
</div>
<ol class="menu">
{%- for item in ui.nodes.problem_add -%}
<a href="{{ url(item.name, item.args) }}" class="menu__link">
<span class="icon icon-{{ item.icon|default('add') }}"></span>
{{ _(item.text) }}
</a>
{%- endfor -%}
</ol>
<div class="section__body">
<div class="typo supplementary">
<p>{{ _('You have permissions to create problems for this domain.') }}</p>
</div>
</div>
</div>
{% endif %}
<div class="section side">
<div class="section__header">
<h1 class="section__title">{{ _('Statistics') }}</h1>
</div>
{% include "partials/problem_stat.html" %}
</div>
</div>
</div>
{% endblock %}