lib/splash/webadmin/portal/views/restclient_result.slim in prometheus-splash-0.8.1 vs lib/splash/webadmin/portal/views/restclient_result.slim in prometheus-splash-0.8.2
- old
+ new
@@ -1,29 +1,33 @@
-di
+div
ul.uk-list
li <b>HTTP Method</b> : #{@method}
li <b>URL</b> : #{@url}
h3 Result :
- unless @result == false
- table.uk_table
- tr
- td.uk-width-2-10
- i.uk-icon-dollar
- | <b>Return code :</b>
- td.uk-width-8-10 #{@result.code}
- tr
- td.uk-width-2-10
- i.uk-icon-file-o
- | <b>Body :</b>
- td.uk-width-8-10.uk-scrollable-text <pre><code>#{@result}</code></pre>
- tr
- td.uk-width-2-10
- i.uk-icon-header
- | <b>Headers :</b>
- td.uk-width-8-10
- ul
- - @result.headers.each do |hkey,value|
- li <i><b>#{hkey}:</b> #{value}</i>
+ div.uk-grid.uk-text-small
+ div.uk-width-1-2
+ table.uk-table
+ tr
+ td.uk-width-2-10
+ i.uk-icon-file-o
+ | <b>Body :</b>
+ td.uk-width-8-10.uk-scrollable-text <pre><code>#{@result}</code></pre>
+ div.uk-width-1-2
+ table.uk-table
+ tr
+ td.uk-width-2-10
+ i.uk-icon-dollar
+ | <b>Return code :</b>
+ td.uk-width-8-10 #{@result.code}
+ tr
+ td.uk-width-2-10
+ i.uk-icon-header
+ | <b>Headers :</b>
+ td.uk-width-8-10
+ ul
+ - @result.headers.each do |hkey,value|
+ li <i><b>#{hkey}:</b> #{value}</i>
- else
div.uk-alert.uk-alert-danger
| Can't excute this request