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
e88ac812
You need to sign in or sign up before continuing.
Commit
e88ac812
authored
Aug 23, 2019
by
Kento HASEGAWA
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'feature/gui'
parents
07b70bb9
6fe69911
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 @
e88ac812
...
...
@@ -61,10 +61,11 @@ def webui_part_problem_status(name=None):
if
(
adc2019system
.
role
is
not
None
)
and
(
adc2019system
.
role
.
type
==
'host'
):
problem
=
adc2019system
.
role
.
get_problem
(
name
)
workers
=
adc2019system
.
role
.
get_workers
()
solutions
=
reversed
(
sorted
(
problem
.
get_solutions
()
.
items
(),
key
=
lambda
x
:
x
[
0
]))
if
problem
is
None
:
return
abort
(
404
)
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
:
return
abort
(
404
)
...
...
static/css/adc2019.css
View file @
e88ac812
...
...
@@ -92,12 +92,17 @@ body{
display
:
inline-block
;
}
#content-right
#list-wrapper
{
height
:
calc
(
100vh
-
55px
);
overflow-y
:
scroll
;
}
#content-right
h4
#problem-status-title
{
vertical-align
:
bottom
;
margin-right
:
10px
;
}
#content-right
#solution-list-container
{
height
:
calc
(
100vh
-
55px
);
overflow-y
:
scroll
;
/* height: calc(100vh - 55px); */
/* overflow-y: scroll; */
}
static/css/ionicons.min.css
0 → 100644
View file @
e88ac812
This diff is collapsed.
Click to expand it.
static/css/theme_1562552953227.css
View file @
e88ac812
/* 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/)
* Copyright 2011-2019 The Bootstrap Authors
* Copyright 2011-2019 Twitter, Inc.
...
...
templates/part_problem_status.html
View file @
e88ac812
...
...
@@ -11,7 +11,9 @@
{#% endif %#}
</div>
<div
id=
"solver-list-container"
>
<div
id=
"list-wrapper"
>
<div
id=
"solver-list-container"
>
<h4>
ソルバ一覧
</h4>
<div
id=
"solver-list-table-wrapper"
>
<table
class=
"table table-bordered table-sm"
id=
"workers-table"
>
...
...
@@ -43,9 +45,9 @@
</tbody>
</table>
</div>
</div>
</div>
<div
id=
'solution-list-container'
>
<div
id=
'solution-list-container'
>
<h4>
処理結果一覧
</h4>
<table
class=
"table table-bordered table-striped"
>
<thead>
...
...
@@ -56,7 +58,7 @@
</tr>
</thead>
<tbody>
{% for k, v in problem.get_solutions().items()
%}
{% for k, v in solutions
%}
{% set tr_class = '' %}
{% 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 '' %}
...
...
@@ -74,6 +76,8 @@
{% endfor %}
</tbody>
</table>
</div>
</div>
<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