norikra 0.0.19-java → 0.0.20-java
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/norikra/version.rb +1 -1
- data/lib/norikra/webui/handler.rb +2 -0
- data/views/index.erb +1 -1
- metadata +1 -1
data/lib/norikra/version.rb
CHANGED
@@ -5,10 +5,12 @@ require 'norikra/logger'
|
|
5
5
|
require 'norikra/webui'
|
6
6
|
|
7
7
|
require 'sinatra/base'
|
8
|
+
require 'erubis'
|
8
9
|
|
9
10
|
class Norikra::WebUI::Handler < Sinatra::Base
|
10
11
|
set :public_folder, File.absolute_path(File.join(File.dirname(__FILE__), '..', '..', '..', 'public'))
|
11
12
|
set :views, File.absolute_path(File.join(File.dirname(__FILE__), '..', '..', '..', 'views'))
|
13
|
+
# set :erb, :escape_html => true # hmmm, this doesn't works...
|
12
14
|
|
13
15
|
enable :sessions
|
14
16
|
|
data/views/index.erb
CHANGED
@@ -73,7 +73,7 @@
|
|
73
73
|
<td>
|
74
74
|
<button class="btn btn-default btn-xs show-query-expression"
|
75
75
|
data-toggle="popover" data-placement="left" data-html="true"
|
76
|
-
data-content="
|
76
|
+
data-content="query:<pre><%= escape_html query.expression %></pre>">show query</button>
|
77
77
|
</td>
|
78
78
|
<td><%= pool[query.name] %></td>
|
79
79
|
<td>
|