mirror of
https://github.com/apache/zeppelin
synced 2026-05-24 09:38:26 +00:00
Remove unused erb
This commit is contained in:
parent
1ffca75945
commit
be06c43440
2 changed files with 0 additions and 51 deletions
|
|
@ -1,15 +0,0 @@
|
|||
<html>
|
||||
<head>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<% if z and z.result != nil %>
|
||||
<% if z.result.rows != nil %>
|
||||
<pre><% z.result.rows.each do |row| %>
|
||||
<% row.each do |cell| %><%= cell %><% end %><% end %>
|
||||
<% end %></pre>
|
||||
|
||||
<% end %>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
|
@ -1,36 +0,0 @@
|
|||
<html>
|
||||
<head>
|
||||
<script type='text/javascript' src='https://www.google.com/jsapi'></script>
|
||||
<script type='text/javascript'>
|
||||
google.load('visualization', '1', {packages:['table']});
|
||||
google.setOnLoadCallback(drawTable);
|
||||
function drawTable() {
|
||||
var data = new google.visualization.DataTable();
|
||||
<% if z and z.result != nil %>
|
||||
<% z.result.getColumnDef.each do |col| %>
|
||||
data.addColumn('string', '<%=col.name%>');
|
||||
<% end %>
|
||||
<% if z.result.rows != nil %>
|
||||
data.addRows([
|
||||
<% z.result.rows.each do |row| %>
|
||||
[
|
||||
<% row.each do |cell| %>
|
||||
'<%= cell.to_s().gsub("'","\\\\'") %>',
|
||||
<% end %>
|
||||
],
|
||||
<% end %>
|
||||
]);
|
||||
|
||||
<% end %>
|
||||
<% end %>
|
||||
var table = new google.visualization.Table(document.getElementById('table_div'));
|
||||
table.draw(data, {showRowNumber: true});
|
||||
}
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
<div id="table_div"></div>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
|
||||
Loading…
Reference in a new issue