chg: dev: not using form for simple get

This commit is contained in:
rachmadaniHaryono 2018-04-21 20:02:47 +08:00
parent 2f7f7061eb
commit 0d39b79723

View File

@ -27,15 +27,10 @@
<th>Netloc</th>
<th>Number</th>
</tr>
{% for netloc, number, _ in most_common_netlocs %}
{% for item, number, _ in most_common_netlocs %}
<tr>
<td>{{loop.index}}</td>
<td>
<form action="{{url_for('search_bookmarks-html')}}" method="GET">
<input id="inputKeywords" name="keywords-0" type="hidden" value="{{netloc}}">
<button type="submit" class="btn btn-default">{{netloc}}</button>
</form>
</td>
<td> <a href="{{url_for('search_bookmarks-html')}}?keywords-0={{item}}">{{item}}</a> </td>
<td>{{number}}</td>
</tr>
{% endfor %}
@ -60,16 +55,13 @@
<th>Netloc</th>
<th>Number</th>
</tr>
{% for netloc, number in netloc_counter.most_common() %}
{% for item, number in netloc_counter.most_common() %}
{% if number > 1 %}
<tr>
<td>{{loop.index}}</td>
<td>
{% if netloc %}
<form action="{{url_for('search_bookmarks-html')}}" method="GET">
<input id="inputKeywords" name="keywords-0" type="hidden" value="{{netloc}}">
<button type="submit" class="btn btn-default">{{netloc}}</button>
</form>
<a href="{{url_for('search_bookmarks-html')}}?keywords-0={{item}}">{{item}}</a>
{% else %}
<span class="btn btn-default" disabled="disabled">(No Netloc)</span>
{% endif %}