Newer
Older
csvlint-webapp / views / results.erb
<!doctype html>
<html lang="en">
  <head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
    <link rel="shortcut icon" href="favicon.png">
    <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css" integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous">
    <title>CSVW Validation</title>
  </head>
  <body>
    <nav class="navbar navbar-light bg-light">
      <a class="navbar-brand" href="/">
        <img src="cogs.svg" alt="COGS" width="72"/>
      </a>
    </nav>
    <main role="main">
      <div class="container">
        <dl>
          <dt>Valid</dt><dd><%= @validator.valid? %></dd>
          <dt>Errors</dt><dd>
            <ol>
              <% @validator.errors do |error| %>
              <li><%= error %>
                <% end %>
            </ol>
          </dd>
          <dt>Warnings</dt><dd>
            <ol>
              <% @validator.warnings do |warning| %>
              <li><%= warning %>
                <% end %>
            </ol>
          </dd>
          <dt>Info</dt><dd>
            <ol>
              <% @validator.info_messages do |info| %>
              <li><%= info %>
                <% end %>
            </ol>
          </dd>
        </dl>
      </div>
    </main>
  </body>
</html>