Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
why3
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
81
Issues
81
List
Boards
Labels
Milestones
Merge Requests
8
Merge Requests
8
Packages
Packages
Container Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Why3
why3
Commits
63980293
Commit
63980293
authored
Oct 31, 2011
by
François Bobot
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
why3html : add class verified and notverified
parent
9747a484
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
32 additions
and
7 deletions
+32
-7
share/javascript/session.css
share/javascript/session.css
+7
-0
src/ide/html_session.ml
src/ide/html_session.ml
+25
-7
No files found.
share/javascript/session.css
0 → 100644
View file @
63980293
.verified
{
color
:
green
;
}
.notverified
{
color
:
red
;
}
\ No newline at end of file
src/ide/html_session.ml
View file @
63980293
...
...
@@ -193,15 +193,22 @@ end
module
Jstree
=
struct
let
print_verified
fmt
b
=
if
b
then
fprintf
fmt
"class='verified'"
else
fprintf
fmt
"class='notverified'"
let
print_prover
fmt
=
function
|
Detected_prover
pd
->
fprintf
fmt
"%s"
pd
.
prover_name
|
Undetected_prover
s
->
fprintf
fmt
"%s"
s
let
print_proof_status
fmt
=
function
|
Undone
->
fprintf
fmt
"Undone"
|
Done
pr
->
fprintf
fmt
"Done : %a"
Call_provers
.
print_prover_result
pr
|
Undone
->
fprintf
fmt
"<span class='notverified'>Undone</span>"
|
Done
pr
->
fprintf
fmt
"<span class='verified'>Done : %a</span>"
Call_provers
.
print_prover_result
pr
|
InternalFailure
exn
->
fprintf
fmt
"Failure : %a"
Exn_printer
.
exn_printer
exn
fprintf
fmt
"<span class='notverified'>Failure : %a</span>"
Exn_printer
.
exn_printer
exn
let
print_proof_attempt
fmt
pa
=
fprintf
fmt
"@[<hov><li rel='prover' ><a href='#'>%a : %a</a></li>@]"
...
...
@@ -210,13 +217,17 @@ struct
let
rec
print_transf
fmt
tr
=
fprintf
fmt
"@[<hov><li rel='transf'><a href='#'>%s</a>@,<ul>%a</ul></li>@]"
"@[<hov><li rel='transf'><a href='#'>\
<span %a>%s</span></a>@,<ul>%a</ul></li>@]"
print_verified
tr
.
transf_verified
tr
.
transf_name
(
Pp
.
print_list
Pp
.
newline
print_goal
)
tr
.
subgoals
and
print_goal
fmt
g
=
fprintf
fmt
"@[<hov><li rel='goal'><a href='#'>%s</a>@,<ul>%a%a</ul></li>@]"
"@[<hov><li rel='goal'><a href='#'>\
<span %a>%s</a></a>@,<ul>%a%a</ul></li>@]"
print_verified
g
.
goal_verified
g
.
goal_name
(
Pp
.
print_iter2
Mstr
.
iter
Pp
.
newline
Pp
.
nothing
Pp
.
nothing
print_proof_attempt
)
...
...
@@ -227,12 +238,17 @@ struct
let
print_theory
fmt
th
=
fprintf
fmt
"@[<hov><li rel='theory'><a href='#'>%s</a>@,<ul>%a</ul></li>@]"
"@[<hov><li rel='theory'><a href='#'>\
<span %a>%s</span></a>@,<ul>%a</ul></li>@]"
print_verified
th
.
theory_verified
th
.
theory_name
(
Pp
.
print_list
Pp
.
newline
print_goal
)
th
.
goals
let
print_file
fmt
f
=
fprintf
fmt
"@[<hov><li rel='file'><a href='#'>%s</a>@,<ul>%a</ul></li>@]"
fprintf
fmt
"@[<hov><li rel='file'><a href='#'>\
<span %a>%s</span></a>@,<ul>%a</ul></li>@]"
print_verified
f
.
file_verified
f
.
file_name
(
Pp
.
print_list
Pp
.
newline
print_theory
)
f
.
theories
...
...
@@ -289,6 +305,8 @@ PUBLIC \"-//W3C//DTD XHTML 1.0 Strict//EN\"
<head>
<meta http-equiv=
\"
Content-Type
\"
content=
\"
text/html; charset=utf-8
\"
/>
<title>Why3 session of %s</title>
<link rel=
\"
stylesheet
\"
type=
\"
text/css
\"
href=
\"
javascript/session.css
\"
/>
<script type=
\"
text/javascript
\"
src=
\"
javascript/jquery.js
\"
></script>
<script type=
\"
text/javascript
\"
src=
\"
javascript/jquery.jstree.js
\"
>
</script>
...
...
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