forked from tobi/clarity
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
37 additions
and
11 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
<form id='search' method='get' action='<%= relative_root %>/perform' class="pull-right"> | ||
<input type="hidden" name="tool" value="grep"> | ||
<select style="width:350px;" id='file-list' name='file'> | ||
<% logfiles.map do |f| %><%= "<option value='#{f}'>#{f}</option>\n" %><% end %> | ||
</select> | ||
<input class="input-small" type="text" id="term1" name="term1" placeholder="Term #1"> | ||
<input class="input-small" type="text" id="term2" name="term2" placeholder="Term #2"> | ||
<input class="input-small" type="text" id="term3" name="term3" placeholder="Term #3"> | ||
<button type="submit" class="btn primary" onclick="Search.submit(); return false;">Search</button> | ||
<button type="reset" class="btn" onclick='Search.clear(); return false;'>Reset</button> | ||
</form> | ||
|
||
<div id="option-ctrl"> | ||
<ul> | ||
<li><input type='checkbox' name='enable_scrolling' id='auto-scroll'/><span> Auto scroll?</span></li> | ||
</ul> | ||
</div> | ||
|
||
<script> | ||
Search.url = "<%= relative_root %>" + Search.url; | ||
Search.init( | ||
{ | ||
'grep': <%= logfiles.map {|f| f }.to_json %>, | ||
'tail': <%= logfiles.map {|f| f }.to_json %> | ||
}, | ||
<%= params.empty? ? 'null' : params.to_json %> | ||
); | ||
</script> |
This file contains 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