Initial cleanup of the codebase
Change-Id: Idbc92ea3c2d7ee4d4807d1d83ceee9a299b9a9f7
diff --git a/app/templates/search.html b/app/templates/search.html
new file mode 100644
index 0000000..0e7aa76
--- /dev/null
+++ b/app/templates/search.html
@@ -0,0 +1,42 @@
+{% extends "base.html" %}
+
+{% block content %}
+
+<h2>Query Analysis</h2>
+<form id="form-inline" action="{{ url_for ('search') }}" method="GET">
+ <div class="form-group">
+ <input type="text" class="form-control" name="q" required=""
+ placeholder="Query ..."
+ value="{% if q %} {{ q }} {% endif %}">
+ </div>
+ <div class="form-group">
+ <select name="ql" id="queryLanguage" style="margin:auto 5pt;">
+ {% for key, value in lang.iteritems() %}
+ <option value="{{ key }}"
+ {% if ql== key %}selected="selected" {% endif %}>{{ value }}
+ </option>
+ {% endfor %}
+ </select>
+ </div>
+ <button type="submit" id="search" class="btn btn-primary">Search
+ </button>
+
+</form>
+{% include 'flash_messages.html' %}
+{% if result %}
+<p id="notification">
+ <a href="#" id="show" style="font-weight:bold;"
+ title="Display raw JSON">Found {{ result.totalResults | default("0") }} matches</a>
+</p>
+{% autoescape off %}
+<pre id="message" class="i-layout" style="display:none;">
+ {{ result_string | safe }}
+</pre>
+{% for entry in result.matches %}
+<div class="matches">
+ {{ entry.snippet }}
+</div>
+{% endfor %}
+{% endautoescape %}
+{% endif %}
+{% endblock %}
\ No newline at end of file