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
b6afe55f
Commit
b6afe55f
authored
Jul 26, 2019
by
Kento HASEGAWA
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Don't show the solution viewer when a solution is invalid
parent
8b045708
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
13 deletions
+9
-13
adc2019.css
static/css/adc2019.css
+2
-7
adc2019.js
static/js/adc2019.js
+1
-1
part_problem_status.html
templates/part_problem_status.html
+6
-5
No files found.
static/css/adc2019.css
View file @
b6afe55f
...
@@ -60,8 +60,8 @@ body{
...
@@ -60,8 +60,8 @@ body{
display
:
inline-block
;
display
:
inline-block
;
}
}
#solution-list-container
tr
.solution-detail-row
,
#solution-list-container
tr
.solution-detail-row
.valid-solution
,
#solution-list-container
tr
.solution-detail-row
td
{
#solution-list-container
tr
.solution-detail-row
.valid-solution
td
{
cursor
:
pointer
;
cursor
:
pointer
;
}
}
...
@@ -90,8 +90,3 @@ body{
...
@@ -90,8 +90,3 @@ body{
height
:
calc
(
100vh
-
55px
);
height
:
calc
(
100vh
-
55px
);
overflow-y
:
scroll
;
overflow-y
:
scroll
;
}
}
#content-right
#solution-list-container
table
>
tbody
>
tr
,
#content-right
#solution-list-container
table
>
tbody
>
tr
>
td
{
cursor
:
pointer
;
}
static/js/adc2019.js
View file @
b6afe55f
...
@@ -34,7 +34,7 @@ class StatusView {
...
@@ -34,7 +34,7 @@ class StatusView {
_this
.
fire
(
'refresh'
);
_this
.
fire
(
'refresh'
);
});
});
_this
.
container
.
find
(
'.solution-detail-row td'
).
click
((
e
)
=>
{
_this
.
container
.
find
(
'.solution-detail-row
.valid-solution
td'
).
click
((
e
)
=>
{
var
solution_id
=
$
(
e
.
target
).
parent
(
"tr"
).
data
(
"solution-id"
);
var
solution_id
=
$
(
e
.
target
).
parent
(
"tr"
).
data
(
"solution-id"
);
var
problem_name
=
$
(
e
.
target
).
parent
(
"tr"
).
data
(
"problem"
);
var
problem_name
=
$
(
e
.
target
).
parent
(
"tr"
).
data
(
"problem"
);
var
viewer_url
=
"/view/solution#"
+
problem_name
+
"/"
+
solution_id
;
var
viewer_url
=
"/view/solution#"
+
problem_name
+
"/"
+
solution_id
;
...
...
templates/part_problem_status.html
View file @
b6afe55f
...
@@ -22,11 +22,12 @@
...
@@ -22,11 +22,12 @@
</thead>
</thead>
<tbody>
<tbody>
{% for k, v in problem.get_solutions().items() %}
{% for k, v in problem.get_solutions().items() %}
{% if k == problem.best_solution %}
{% set tr_class = '' %}
<tr
class=
"solution-detail-row submit-solution"
data-solution-id=
"{{k}}"
data-problem=
"{{problem.name}}"
>
{% set tr_class = tr_class + ' submit-solution' if k == problem.best_solution else '' %}
{% else %}
{% set tr_class = tr_class + ' valid-solution' if v.is_valid_solution() else '' %}
<tr
class=
"solution-detail-row"
data-solution-id=
"{{k}}"
data-problem=
"{{problem.name}}"
>
{#% else %#}
{% endif %}
<tr
class=
"solution-detail-row {{tr_class}}"
data-solution-id=
"{{k}}"
data-problem=
"{{problem.name}}"
>
{#% endif %#}
<td>
{{v.timestamp_str}}
</td>
<td>
{{v.timestamp_str}}
</td>
<td>
{{v.worker}}
</td>
<td>
{{v.worker}}
</td>
<td>
<td>
...
...
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