Last active
December 27, 2016 22:07
-
-
Save picatz/7172f3bfee1cd2c7621b7cae4ce6e4e8 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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