Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
adc2018-system
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
adc2018
adc2018-system
Commits
89ba9abd
Commit
89ba9abd
authored
Aug 12, 2018
by
Kento HASEGAWA
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make it possible to save all the answers sent from clients (#9)
parent
4cffa912
Changes
5
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
129 additions
and
87 deletions
+129
-87
.gitignore
.gitignore
+2
-0
main.py
comm/server/main.py
+84
-81
pynq-manager.css
comm/server/static/css/pynq-manager.css
+1
-1
pynq-manager.js
comm/server/static/js/pynq-manager.js
+0
-1
part_question_status.html
comm/server/templates/part_question_status.html
+42
-4
No files found.
.gitignore
View file @
89ba9abd
...
...
@@ -3,6 +3,8 @@
.DS_Store
*.txt
*.tmp
*.json
# Object files
*.o
...
...
comm/server/main.py
View file @
89ba9abd
This diff is collapsed.
Click to expand it.
comm/server/static/css/pynq-manager.css
View file @
89ba9abd
...
...
@@ -43,7 +43,7 @@ body{
#client-control-pane
{
height
:
330px
;
overflow
:
scroll
;
overflow
-y
:
scroll
;
}
#client-control-pane
table
th
,
...
...
comm/server/static/js/pynq-manager.js
View file @
89ba9abd
...
...
@@ -63,7 +63,6 @@ var PynqManager = (function(){
}).
done
(
function
(
res
){
var
answer
=
res
;
$
(
"#solving-question-status"
).
text
(
answer
[
"status"
]);
$
(
"#solved-result"
).
text
(
answer
[
"answer"
][
"answer"
]);
$
(
"#solved-client"
).
text
(
answer
[
"answer"
][
"client"
]);
if
(
after
!==
null
){
...
...
comm/server/templates/part_question_status.html
View file @
89ba9abd
<h3>
問題 【{{qname}}】
</h3>
<p>
<button
class=
"btn btn-primary btn-lg start-button"
type=
"button"
data-qname=
"{{qname}}"
>
Start
</button>
</p>
<div
class=
"row"
>
<div
class=
"col-6"
>
<h3>
問題 【{{qname}}】
</h3>
<p>
<button
class=
"btn btn-primary btn-lg start-button"
type=
"button"
data-qname=
"{{qname}}"
>
Start
</button>
</p>
</div>
<div
class=
"col-6"
>
<p>
処理結果
</p>
<table
class=
"table table-bordered"
>
<tr>
<th>
クライアント
</th>
<th>
Status
</th>
</tr>
{% for c in clients %}
<tr>
<td>
{{c}}
</td>
<td></td>
</tr>
{% endfor %}
</table>
</div>
</div>
<div>
<h4>
処理結果一覧
</h4>
<table
class=
"table table-bordered table-striped"
>
<tr>
<th>
Timestamp
</th>
<th>
Client
</th>
<th>
Score
</th>
</tr>
{% for v in qdata.answers %}
<tr>
<td>
{{v.timestamp}}
</td>
<td>
{{v.client}}
</td>
<td>
{{v.nlcheck}}
</td>
</tr>
{% endfor %}
</table>
</div>
<p>
状況:
<span
id=
"solving-question-status"
>
{{qdata.status}}
</span></p>
<h4>
結果
</h4>
<p>
クライアント:
<span
id=
"solved-client"
>
{{qdata.answer.client}}
</span></p>
...
...
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