From c273faedee7b0c73945dfd8fdab15d655b6c4f3a Mon Sep 17 00:00:00 2001 From: Patrick Simianer Date: Fri, 11 Dec 2015 17:06:50 +0100 Subject: save original view as svg --- views/debug.haml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'views') diff --git a/views/debug.haml b/views/debug.haml index 1cda494..6d6a42c 100644 --- a/views/debug.haml +++ b/views/debug.haml @@ -56,7 +56,9 @@ %hr /=######################################################################### %h2#post_edit Post-edit & machine translation + %p#original_svg_b64 #{data["original_svg"][progress]} %p#svg_b64 #{data["svg"][progress]} + %div#original_svg %div#svg %table %tr @@ -93,9 +95,9 @@ %td.left #{pairwise_ranking_data["best_match"]} %h2 Derivation %pre #{data["derivations"][progress]} - %h3 Processed - - if data["derivations_proc"][progress] - %pre #{JSON.pretty_generate(JSON.parse(data["derivations_proc"][progress]))} + /= %h3 Processed + /= - if data["derivations_proc"][progress] + /= %pre #{JSON.pretty_generate(JSON.parse(data["derivations_proc"][progress]))} %h2 Client reply - if data["feedback"][progress] %pre #{JSON.pretty_generate(JSON.parse(data["feedback"][progress]))} -- cgit v1.2.3