mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 09:46:28 +08:00
系统设置中自定义UI的支持
This commit is contained in:
1 parent
11368bc831
commit
1722fbfaca
21 files changed
+284
-140
No files matched your search
@@ -14,15 +14,15 @@
|
||||
<table class="data-table">
|
||||
<colgroup>
|
||||
{%- for column in rows[0] -%}
|
||||
<col class="col--{{ column['type'] }}">
|
||||
<col class="col--{{ column.type }}">
|
||||
{%- endfor -%}
|
||||
</colgroup>
|
||||
<thead>
|
||||
<tr>
|
||||
{%- for column in rows[0] -%}
|
||||
<th class="col--{{ column['type'] }}">
|
||||
<th class="col--{{ column.type }}">
|
||||
{% if column.type == 'problem_detail' %}
|
||||
<a href="{{ url('contest_detail_problem', tid=tdoc.docId, pid=column.raw._id) }}" data-tooltip="{{ column['raw']['title'] }}">{{ column['value'] }}</a>
|
||||
<a href="{{ url('contest_detail_problem', tid=tdoc.docId, pid=column.raw) }}" data-tooltip="{{ pdict[column.raw].title }}">{{ column.value }}</a>
|
||||
{% else %}
|
||||
{{ column.value }}
|
||||
{% endif %}
|
||||
@@ -36,7 +36,7 @@
|
||||
{%- for column in row -%}
|
||||
<td class="col--{{ rows[0][loop.index0]['type'] }}">
|
||||
{% if column.type == 'user' %}
|
||||
{{ user.render_inline(column.raw, badge=false) }}
|
||||
{{ user.render_inline(udict[column.raw], badge=false) }}
|
||||
{% elif column.type == 'record' and column.raw %}
|
||||
<a href="{{ url('record_detail', rid=column.raw) }}">{{ column.value }}</a>
|
||||
{% else %}
|
||||
|
||||
@@ -0,0 +1,10 @@
|
||||
/* {% if header %} */
|
||||
.header__logo {
|
||||
background: url({{ header }}) !important
|
||||
}
|
||||
/* {% endif %} */
|
||||
/* {% if headerBackground %} */
|
||||
.header {
|
||||
background: url({{ headerBackground }}) !important
|
||||
}
|
||||
/* {% endif %} */
|
||||
@@ -23,6 +23,7 @@
|
||||
<meta name="theme-color" content="#56758f">
|
||||
|
||||
<link rel="stylesheet" media="all" href="{{ static_url('vj4.css') }}">
|
||||
<link rel="stylesheet" media="all" href="{{ static_url('extra.css') }}">
|
||||
<title>{{ handler.renderTitle(page_name) }}</title>
|
||||
{% if not isIE(handler.request.headers['user-agent']) %}
|
||||
<script>
|
||||
|
||||
Reference in new issue
Block a user