core: record_main: allow allDomain option

This commit is contained in:
undefined committed 2021-08-17 16:22:51 +08:00
1 parent 8965a87910
commit 6385a7355b
7 files changed
+35 -18

No files matched your search

+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "@hydrooj/ui-default",
"version": "4.17.3",
"version": "4.17.4",
"author": "undefined <i@undefined.moe>",
"license": "AGPL-3.0",
"main": "hydro.js",
@@ -1,10 +1,13 @@
{% extends "layout/basic.html" %}
{% block content %}
{% if filterTid %}
{{ set(UiContext, 'socketUrl', "/record-conn?domainId=" + handler.domainId + "&tid=" + filterTid) }}
{% else %}
{{ set(UiContext, 'socketUrl', "/record-conn?domainId=" + handler.domainId) }}
{% endif %}
{{ set(
UiContext, 'socketUrl',
"/record-conn?domainId=" + handler.domainId
+ (("&tid=" + filterTid) if filterTid else "")
+ (("&uidOrName=" + filterUidOrName) if filterUidOrName else "")
+ (("&pid=" + filterPid) if filterPid else "")
+ ("&allDomain=1" if all else "")
) }}
{{ set(UiContext, 'rids', rdocs.map(eval("rdoc=>rdoc._id.toString()"))) }}
<div class="row">
<div class="medium-12 columns">