Skip to content

Instantly share code, notes, and snippets.

@picatz
Last active December 27, 2016 22:07
Show Gist options
  • Save picatz/7172f3bfee1cd2c7621b7cae4ce6e4e8 to your computer and use it in GitHub Desktop.
Save picatz/7172f3bfee1cd2c7621b7cae4ce6e4e8 to your computer and use it in GitHub Desktop.
<div class="container">
<div class="col-xs-12">
<h1>Attack Timeline</h1>
<hr>
<form action='/timeline' method='post' enctype='multipart/form-data'>
<div class="form-group">
<div class="input-group input-group-lg">
<span class="input-group-addon">
<i class="glyphicon glyphicon-screenshot"></i>
</span>
<input class="form-control" placeholder="IP Address" name="ip" type="text" required>
<span class="input-group-btn">
<button class="btn btn-primary" type="button submit"> Search </button>
</span>
</div>
</div>
</form>
<hr>
<% if @timeline %>
<%= timeline(@timeline, height: "1200px")%>
<% elsif @single_timeline %>
<h3><%= @ip %></h3>
<%= line_chart(@single_timeline)%>
<% else %>
<p>No data...</p>
<% end %>
</div>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment