Sha256: e9fa3b3ec8268c4b926179c84534507340f4e65f23b13b84ae6c4edb2fea54b9

Contents?: true

Size: 1.78 KB

Versions: 3

Compression:

Stored size: 1.78 KB

Contents

<!DOCTYPE html>
<html>
<head>
  <title>TAILOG</title>
  <script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/jquery/2.2.3/jquery.min.js"></script>
  <link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.6/css/bootstrap.min.css">
  <style type="text/css">
    body {
      font-family: "Lucida Console", Monaco, monospace;
      padding-top: 20px;
      padding-bottom: 20px;
    }

    p {
      white-space: pre-wrap;
      margin: 0;
    }

    p:hover {
      background: #EEE;
    }

    a {
      display: block;
    }
  </style>
</head>
<body>

  <div class="container">

    <!-- Static navbar -->
    <% p path_info = request.path_info %>
    <nav class="navbar navbar-default">
      <div class="container-fluid">
        <div class="navbar-header">
          <a class="navbar-brand">TAILOG</a>
        </div>
        <div id="navbar" class="navbar-collapse collapse">
          <ul class="nav navbar-nav">
            <li<%= ' class="active"' if path_info == "/logs" %>><a href="logs">Logs</a></li>
            <li<%= ' class="active"' if path_info == "/env" %>><a href="env">Env</a></li>
          </ul>
          <ul class="nav navbar-nav navbar-right">
            <form class="navbar-form navbar-left" method="get">
              <div class="input-group">
                <input name="file" type="text" class="form-control" placeholder="<%= params[:file] || 'File Name...' %>">
                <span class="input-group-btn">
                  <button class="btn btn-default" type="button">Go!</button>
                </span>
              </div>
            </form>
          </ul>
        </div><!--/.nav-collapse -->
      </div><!--/.container-fluid -->
    </nav>

    <%= yield %>

  </div> <!-- /container -->
</body>
</html>

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
tailog-0.2.3 app/views/layout.erb
tailog-0.2.2 app/views/layout.erb
tailog-0.2.1 app/views/layout.erb