Update Vendored Erubis to 2.6.6
This commit is contained in:
parent
c18c2f988d
commit
39c2138f88
300 changed files with 207 additions and 171 deletions
4
vendor/plugins/erubis/benchmark/templates/_footer.html
vendored
Normal file
4
vendor/plugins/erubis/benchmark/templates/_footer.html
vendored
Normal file
|
@ -0,0 +1,4 @@
|
|||
</table>
|
||||
|
||||
</body>
|
||||
</html>
|
52
vendor/plugins/erubis/benchmark/templates/_header.html
vendored
Normal file
52
vendor/plugins/erubis/benchmark/templates/_header.html
vendored
Normal file
|
@ -0,0 +1,52 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
||||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
||||
<head>
|
||||
<title>Stock Prices</title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
|
||||
<meta http-equiv="Content-Style-Type" content="text/css" />
|
||||
<meta http-equiv="Content-Script-Type" content="text/javascript" />
|
||||
<link rel="shortcut icon" href="/images/favicon.ico" />
|
||||
<link rel="stylesheet" type="text/css" href="/css/style.css" media="all" />
|
||||
<script type="text/javascript" src="/js/util.js"></script>
|
||||
<style type="text/css">
|
||||
/*<![CDATA[*/
|
||||
|
||||
body {
|
||||
color: #333333;
|
||||
line-height: 150%;
|
||||
}
|
||||
|
||||
thead {
|
||||
font-weight: bold;
|
||||
background-color: #CCCCCC;
|
||||
}
|
||||
|
||||
.odd {
|
||||
background-color: #FFCCCC;
|
||||
}
|
||||
|
||||
.even {
|
||||
background-color: #CCCCFF;
|
||||
}
|
||||
|
||||
.minus {
|
||||
color: #FF0000;
|
||||
}
|
||||
|
||||
/*]]>*/
|
||||
</style>
|
||||
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
||||
<h1>Stock Prices</h1>
|
||||
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
<th>#</th><th>symbol</th><th>name</th><th>price</th><th>change</th><th>ratio</th>
|
||||
</tr>
|
||||
</thead>
|
29
vendor/plugins/erubis/benchmark/templates/bench_erb.rhtml
vendored
Normal file
29
vendor/plugins/erubis/benchmark/templates/bench_erb.rhtml
vendored
Normal file
|
@ -0,0 +1,29 @@
|
|||
<tbody>
|
||||
<%
|
||||
n = 0
|
||||
for item in list
|
||||
n += 1
|
||||
%>
|
||||
<tr class="<%= n % 2 == 0 ? 'even' : 'odd' %>">
|
||||
<td style="text-align: center"><%= n %></td>
|
||||
<td>
|
||||
<a href="/stocks/<%= item['symbol'] %>"><%= item['symbol'] %></a>
|
||||
</td>
|
||||
<td>
|
||||
<a href="<%= item['url'] %>"><%= item['name'] %></a>
|
||||
</td>
|
||||
<td>
|
||||
<strong><%= item['price'] %></strong>
|
||||
</td>
|
||||
<% if item['change'] < 0.0 %>
|
||||
<td class="minus"><%= item['change'] %></td>
|
||||
<td class="minus"><%= item['ratio'] %></td>
|
||||
<% else %>
|
||||
<td><%= item['change'] %></td>
|
||||
<td><%= item['ratio'] %></td>
|
||||
<% end %>
|
||||
</tr>
|
||||
<%
|
||||
end
|
||||
%>
|
||||
</tbody>
|
29
vendor/plugins/erubis/benchmark/templates/bench_erubis.rhtml
vendored
Normal file
29
vendor/plugins/erubis/benchmark/templates/bench_erubis.rhtml
vendored
Normal file
|
@ -0,0 +1,29 @@
|
|||
<tbody>
|
||||
<%
|
||||
n = 0
|
||||
for item in list
|
||||
n += 1
|
||||
%>
|
||||
<tr class="<%= n % 2 == 0 ? 'even' : 'odd' %>">
|
||||
<td style="text-align: center"><%= n %></td>
|
||||
<td>
|
||||
<a href="/stocks/<%= item['symbol'] %>"><%= item['symbol'] %></a>
|
||||
</td>
|
||||
<td>
|
||||
<a href="<%= item['url'] %>"><%= item['name'] %></a>
|
||||
</td>
|
||||
<td>
|
||||
<strong><%= item['price'] %></strong>
|
||||
</td>
|
||||
<% if item['change'] < 0.0 %>
|
||||
<td class="minus"><%= item['change'] %></td>
|
||||
<td class="minus"><%= item['ratio'] %></td>
|
||||
<% else %>
|
||||
<td><%= item['change'] %></td>
|
||||
<td><%= item['ratio'] %></td>
|
||||
<% end %>
|
||||
</tr>
|
||||
<%
|
||||
end
|
||||
%>
|
||||
</tbody>
|
29
vendor/plugins/erubis/benchmark/templates/bench_eruby.rhtml
vendored
Normal file
29
vendor/plugins/erubis/benchmark/templates/bench_eruby.rhtml
vendored
Normal file
|
@ -0,0 +1,29 @@
|
|||
<tbody>
|
||||
<%
|
||||
n = 0
|
||||
for item in list
|
||||
n += 1
|
||||
%>
|
||||
<tr class="<%= n % 2 == 0 ? 'even' : 'odd' %>">
|
||||
<td style="text-align: center"><%= n %></td>
|
||||
<td>
|
||||
<a href="/stocks/<%= item['symbol'] %>"><%= item['symbol'] %></a>
|
||||
</td>
|
||||
<td>
|
||||
<a href="<%= item['url'] %>"><%= item['name'] %></a>
|
||||
</td>
|
||||
<td>
|
||||
<strong><%= item['price'] %></strong>
|
||||
</td>
|
||||
<% if item['change'] < 0.0 %>
|
||||
<td class="minus"><%= item['change'] %></td>
|
||||
<td class="minus"><%= item['ratio'] %></td>
|
||||
<% else %>
|
||||
<td><%= item['change'] %></td>
|
||||
<td><%= item['ratio'] %></td>
|
||||
<% end %>
|
||||
</tr>
|
||||
<%
|
||||
end
|
||||
%>
|
||||
</tbody>
|
Loading…
Add table
Add a link
Reference in a new issue