Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
belenios
belenios
Commits
6fe68325
Commit
6fe68325
authored
Apr 04, 2017
by
Stephane Glondu
Browse files
For each mailto template, add a direct link
parent
db9e7b9d
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/web/web_templates.ml
View file @
6fe68325
...
...
@@ -554,19 +554,27 @@ let election_setup_trustees uuid se () =
|
ts
->
table
(
tr
[
th
[
pcdata
"Trustee link"
];
th
[
pcdata
"Trustee"
];
th
[
pcdata
"Mail"
];
th
[
pcdata
"Link"
];
th
[
pcdata
"Done?"
];
th
[
pcdata
"Remove"
];
]
::
List
.
mapi
(
fun
i
t
->
tr
[
td
[
pcdata
t
.
st_id
;
];
td
[
let
uri
=
rewrite_prefix
@@
Eliom_uri
.
make_string_uri
~
absolute
:
true
~
service
:
election_setup_trustee
t
.
st_token
in
let
body
=
Printf
.
sprintf
mail_trustee_generation
uri
in
let
subject
=
"Link to generate the decryption key"
in
a_mailto
~
dest
:
t
.
st_id
~
subject
~
body
t
.
st_id
a_mailto
~
dest
:
t
.
st_id
~
subject
~
body
"Mail"
];
td
[
a
~
service
:
election_setup_trustee
[
pcdata
"Link"
]
t
.
st_token
;
];
td
[
pcdata
(
if
t
.
st_public_key
=
""
then
"No"
else
"Yes"
);
...
...
@@ -1331,10 +1339,14 @@ let election_admin w metadata state () =
|
Some
name
->
name
,
name
in
tr
[
td
[
pcdata
link_content
];
td
[
let
body
=
Printf
.
sprintf
mail_trustee_tally
uri
in
let
subject
=
"Link to tally the election"
in
a_mailto
~
dest
~
subject
~
body
link_content
a_mailto
~
dest
~
subject
~
body
"Mail"
];
td
[
a
~
service
[
pcdata
"Link"
]
x
;
];
td
[
pcdata
(
if
List
.
mem_assoc
trustee_id
pds
then
"Yes"
else
"No"
)
...
...
@@ -1367,7 +1379,9 @@ let election_admin w metadata state () =
div
[
pcdata
"We are now waiting for trustees..."
];
table
(
tr
[
th
[
pcdata
"Trustee link"
];
th
[
pcdata
"Trustee"
];
th
[
pcdata
"Mail"
];
th
[
pcdata
"Link"
];
th
[
pcdata
"Done?"
];
]
::
trustees
)
];
...
...
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