equal
deleted
inserted
replaced
141 |
141 |
142 fun sorry_class thm = if is_sorry thm then class "sorried" else noid; |
142 fun sorry_class thm = if is_sorry thm then class "sorried" else noid; |
143 |
143 |
144 fun html_thm ctxt (n, (thmref, thm)) = |
144 fun html_thm ctxt (n, (thmref, thm)) = |
145 let |
145 let |
146 val string_of_thm = |
146 val output_thm = |
147 Output.output o Pretty.string_of_margin 100 o |
147 Output.output o Pretty.string_of_margin 100 o |
148 setmp_CRITICAL show_question_marks false (Display.pretty_thm ctxt); |
148 Display.pretty_thm (Config.put show_question_marks false ctxt); |
149 in |
149 in |
150 tag' "tr" (class ("row" ^ Int.toString (n mod 2))) |
150 tag' "tr" (class ("row" ^ Int.toString (n mod 2))) |
151 [ |
151 [ |
152 tag' "td" (class "name") |
152 tag' "td" (class "name") |
153 [span' (sorry_class thm) |
153 [span' (sorry_class thm) |
154 [raw_text (Facts.string_of_ref thmref)] |
154 [raw_text (Facts.string_of_ref thmref)] |
155 ], |
155 ], |
156 tag' "td" (class "thm") [pre noid (string_of_thm thm)] |
156 tag' "td" (class "thm") [pre noid (output_thm thm)] |
157 ] |
157 ] |
158 end; |
158 end; |
159 |
159 |
160 end; |
160 end; |
161 |
161 |
234 | e => Xhtml.write send (html_error ("Server error: " ^ exnMessage e)); |
234 | e => Xhtml.write send (html_error ("Server error: " ^ exnMessage e)); |
235 Xhtml.write_close send header |
235 Xhtml.write_close send header |
236 end; |
236 end; |
237 in |
237 in |
238 |
238 |
239 val () = show_question_marks := false; |
239 val () = show_question_marks_default := false; |
240 val () = ScgiServer.register (find_theorems_url, SOME Mime.html, find_theorems); |
240 val () = ScgiServer.register (find_theorems_url, SOME Mime.html, find_theorems); |
241 |
241 |
242 end; |
242 end; |
243 |
243 |