Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
B
belenios
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
1
Issues
1
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
belenios
belenios
Commits
d4eb59f3
Commit
d4eb59f3
authored
Oct 27, 2020
by
Stephane Glondu
Committed by
Stéphane Glondu
Oct 27, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Avoid one use of Unsafe.data
parent
842fb751
Pipeline
#181183
passed with stage
in 34 minutes and 13 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
src/web/pages_voter.ml
src/web/pages_voter.ml
+6
-3
No files found.
src/web/pages_voter.ml
View file @
d4eb59f3
...
@@ -882,9 +882,12 @@ let majority_judgment q r =
...
@@ -882,9 +882,12 @@ let majority_judgment q r =
]
]
)
explicit_winners
)
explicit_winners
in
in
let
spoiled
=
"data:application/json,"
^
string_of_mj_ballots
r
.
mj_spoiled
in
let
spoiled
()
=
"data:application/json,"
^
string_of_mj_ballots
r
.
mj_spoiled
in
let
spoiled
=
"<a href=
\"
"
^
spoiled
^
"
\"
>"
^
s_
"Spoiled ballots"
^
"</a>"
in
let
spoiled
=
uri_of_string
spoiled
in
let
spoiled
=
Unsafe
.
data
spoiled
in
let
spoiled
=
Eliom_content
.
Html
.
F
.
Raw
.
a
~
a
:
[
a_href
spoiled
]
[
txt
(
s_
"Spoiled ballots"
)]
in
let
content
=
let
content
=
[
[
div
[
div
[
...
...
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