File: view.erb

package info (click to toggle)
ruby-hamlit 2.9.2-2
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 1,332 kB
  • sloc: ruby: 10,583; ansic: 550; sh: 23; makefile: 9
file content (23 lines) | stat: -rw-r--r-- 474 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<!DOCTYPE HTML>

<html>
  <head>
    <title>Simple Benchmark</title>
  </head>
  <body>
    <h1><%== header %></h1>
    <% unless item.empty? %>
      <ul>
      <% for i in item %>
        <% if i[:current] %>
          <li><strong><%== i[:name] %></strong></li>
        <% else %>
          <li><a href="<%== i[:url] %>"><%== i[:name] %></a></li>
        <% end %>
      <% end %>
      </ul>
    <% else %>
      <p>The list is empty.</p>
    <% end %>
  </body>
</html>