Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
adc2019-system
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
adc2019
adc2019-system
Commits
6fe69911
Commit
6fe69911
authored
Aug 22, 2019
by
Kento HASEGAWA
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Improve UI and put a resource to local
parent
59b27b52
Changes
5
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
78 additions
and
56 deletions
+78
-56
main.py
main.py
+2
-1
adc2019.css
static/css/adc2019.css
+7
-2
ionicons.min.css
static/css/ionicons.min.css
+12
-0
theme_1562552953227.css
static/css/theme_1562552953227.css
+2
-2
part_problem_status.html
templates/part_problem_status.html
+55
-51
No files found.
main.py
View file @
6fe69911
...
@@ -61,10 +61,11 @@ def webui_part_problem_status(name=None):
...
@@ -61,10 +61,11 @@ def webui_part_problem_status(name=None):
if
(
adc2019system
.
role
is
not
None
)
and
(
adc2019system
.
role
.
type
==
'host'
):
if
(
adc2019system
.
role
is
not
None
)
and
(
adc2019system
.
role
.
type
==
'host'
):
problem
=
adc2019system
.
role
.
get_problem
(
name
)
problem
=
adc2019system
.
role
.
get_problem
(
name
)
workers
=
adc2019system
.
role
.
get_workers
()
workers
=
adc2019system
.
role
.
get_workers
()
solutions
=
reversed
(
sorted
(
problem
.
get_solutions
()
.
items
(),
key
=
lambda
x
:
x
[
0
]))
if
problem
is
None
:
if
problem
is
None
:
return
abort
(
404
)
return
abort
(
404
)
else
:
else
:
return
render_template
(
'part_problem_status.html'
,
problem
=
problem
,
workers
=
workers
)
return
render_template
(
'part_problem_status.html'
,
problem
=
problem
,
workers
=
workers
,
solutions
=
solutions
)
else
:
else
:
return
abort
(
404
)
return
abort
(
404
)
...
...
static/css/adc2019.css
View file @
6fe69911
...
@@ -92,12 +92,17 @@ body{
...
@@ -92,12 +92,17 @@ body{
display
:
inline-block
;
display
:
inline-block
;
}
}
#content-right
#list-wrapper
{
height
:
calc
(
100vh
-
55px
);
overflow-y
:
scroll
;
}
#content-right
h4
#problem-status-title
{
#content-right
h4
#problem-status-title
{
vertical-align
:
bottom
;
vertical-align
:
bottom
;
margin-right
:
10px
;
margin-right
:
10px
;
}
}
#content-right
#solution-list-container
{
#content-right
#solution-list-container
{
height
:
calc
(
100vh
-
55px
);
/* height: calc(100vh - 55px); */
overflow-y
:
scroll
;
/* overflow-y: scroll; */
}
}
static/css/ionicons.min.css
0 → 100644
View file @
6fe69911
This diff is collapsed.
Click to expand it.
static/css/theme_1562552953227.css
View file @
6fe69911
/* Created with Themestr.app */
/* Created with Themestr.app */
/*! `Custom` Bootstrap 4 theme */
@import
url(
https://cdnjs.cloudflare.com/ajax/libs/ionicons/3.0.0
/css/ionicons.min.css)
;
/*! Import Bootstrap 4 variables *//*!
/*! `Custom` Bootstrap 4 theme */
@import
url(
/static
/css/ionicons.min.css)
;
/*! Import Bootstrap 4 variables *//*!
* Bootstrap v4.3.1 (https://getbootstrap.com/)
* Bootstrap v4.3.1 (https://getbootstrap.com/)
* Copyright 2011-2019 The Bootstrap Authors
* Copyright 2011-2019 The Bootstrap Authors
* Copyright 2011-2019 Twitter, Inc.
* Copyright 2011-2019 Twitter, Inc.
...
...
templates/part_problem_status.html
View file @
6fe69911
...
@@ -11,7 +11,9 @@
...
@@ -11,7 +11,9 @@
{#% endif %#}
{#% endif %#}
</div>
</div>
<div
id=
"solver-list-container"
>
<div
id=
"list-wrapper"
>
<div
id=
"solver-list-container"
>
<h4>
ソルバ一覧
</h4>
<h4>
ソルバ一覧
</h4>
<div
id=
"solver-list-table-wrapper"
>
<div
id=
"solver-list-table-wrapper"
>
<table
class=
"table table-bordered table-sm"
id=
"workers-table"
>
<table
class=
"table table-bordered table-sm"
id=
"workers-table"
>
...
@@ -43,9 +45,9 @@
...
@@ -43,9 +45,9 @@
</tbody>
</tbody>
</table>
</table>
</div>
</div>
</div>
</div>
<div
id=
'solution-list-container'
>
<div
id=
'solution-list-container'
>
<h4>
処理結果一覧
</h4>
<h4>
処理結果一覧
</h4>
<table
class=
"table table-bordered table-striped"
>
<table
class=
"table table-bordered table-striped"
>
<thead>
<thead>
...
@@ -56,7 +58,7 @@
...
@@ -56,7 +58,7 @@
</tr>
</tr>
</thead>
</thead>
<tbody>
<tbody>
{% for k, v in problem.get_solutions().items()
%}
{% for k, v in solutions
%}
{% set tr_class = '' %}
{% set tr_class = '' %}
{% set tr_class = tr_class + ' submit-solution' if k == problem.best_solution else '' %}
{% set tr_class = tr_class + ' submit-solution' if k == problem.best_solution else '' %}
{% set tr_class = tr_class + ' valid-solution' if v.is_valid_solution() else '' %}
{% set tr_class = tr_class + ' valid-solution' if v.is_valid_solution() else '' %}
...
@@ -74,6 +76,8 @@
...
@@ -74,6 +76,8 @@
{% endfor %}
{% endfor %}
</tbody>
</tbody>
</table>
</table>
</div>
</div>
</div>
<div
class=
"modal fade"
id=
"solver-processing-modal"
tabindex=
"-1"
role=
"dialog"
aria-labelledby=
"solver-processing-modal-title"
aria-hidden=
"true"
>
<div
class=
"modal fade"
id=
"solver-processing-modal"
tabindex=
"-1"
role=
"dialog"
aria-labelledby=
"solver-processing-modal-title"
aria-hidden=
"true"
>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment