amalgame/commit
minor in css
author | Jacco van Ossenbruggen |
---|---|
Wed Aug 13 16:14:53 2014 +0200 | |
committer | Jacco van Ossenbruggen |
Wed Aug 13 16:14:53 2014 +0200 | |
commit | 4467dbb8fa0152008532f4369229fefbcb67e07f |
tree | 72406feb5d34aa847ef1d5972ace6559c09493e8 |
parent | 69f395de80fd74eb92babc78bcede6d6819b7b6b |
Diff style: patch stat
diff --git a/api/node_info.pl b/api/node_info.pl index e8ddbf9..187c98c 100644 --- a/api/node_info.pl +++ b/api/node_info.pl @@ -42,8 +42,8 @@ http_node_info(Request) :- amalgame_info(URL, Strategy, Stats), amalgame_provenance(URL, Strategy, Prov), amalgame_parameters(URL, Strategy, Params), - phrase(html([\html_prop_table(Prov), - \html_prop_table(Stats), + phrase(html([\html_prop_table(prov, Prov), + \html_prop_table(stats, Stats), \html_form(Params, URL) ]), HTML), @@ -63,12 +63,12 @@ http_deep_voc_stats(Request) :- voc_property(Voc, branch(B), [compute(true)]), reply_json(json{url:Voc, depth:D, branch:B}). -%% html_prop_table(+Pairs) +%% html_prop_table(Class, +Pairs) % % Emit an HTML table with key-value pairs. -html_prop_table(Pairs) --> - html(table(tbody(\html_rows('', Pairs)))). +html_prop_table(Class, Pairs) --> + html(table([class(Class)], tbody(\html_rows('', Pairs)))). html_rows(_,[]) --> !. html_rows(Prefix,[_Key-[]|Tail]) --> diff --git a/web/css/controls.css b/web/css/controls.css index 719177e..dbd67f1 100644 --- a/web/css/controls.css +++ b/web/css/controls.css @@ -32,28 +32,10 @@ border-top: 1px solid #CCC; padding: 10px 0; } -#controls table { - width: 100%; -} -#controls th { - vertical-align: top; - white-space: nowrap; - padding-right: 10px; -} -#controls td span.warn { - color: orange; -} #controls .control-buttons { text-align: right; } -.mappingselect { - border-bottom: 1px solid #CCCCCC; - padding-bottom: 5px; - margin-bottom: 5px; - max-height: 150px; - overflow: auto; -} #controls textarea { width: 97%; } diff --git a/web/css/infobox.css b/web/css/infobox.css index 240c9fa..05ab793 100644 --- a/web/css/infobox.css +++ b/web/css/infobox.css @@ -20,10 +20,28 @@ margin-top: 5px; padding-top: 5px; } +#info table { + width: 100%; +} + +#info th { + vertical-align: top; + white-space: nowrap; + padding-right: 10px; +} + +#info td span.warn { + color: orange; +} + #details td { padding-bottom: 4px; } +#info table.stats { + margin-top: 2px; + border-top: 1px solid #CCC; +} /* select */ #select li { list-style: disc inside;