Commit 546fbdb09a88a5a138e408d307471721d65c1556

Authored by Matheus Fernandes
Committed by Carlos Coêlho
1 parent b3876839

Set default search ordering to 'latest'

Signed-off-by: Matheus Fernandes <matheus.souza.fernandes@gmail.com>

Signed-off-by: Simião Carvalho <simiaosimis@gmail.com>
src/colab-spb-theme-plugin/colab_spb_theme/templates/header.html
... ... @@ -99,6 +99,7 @@
99 99 <fieldset class="LSBox"><legend class="hiddenStructure">Buscar no portal</legend>
100 100 <label class="hiddenStructure" for="nolivesearchGadget">Buscar no portal</label>
101 101 <input name="q" type="text" size="18" value="{{ request.GET.q }}" title="Buscar no portal" placeholder="Buscar no portal" class="searchField" id="nolivesearchGadget">
  102 + <input name="order" value="latest" type="hidden">
102 103 <input class="searchButton" type="submit" value="Buscar no portal">
103 104 </fieldset>
104 105 </form>
... ...
src/colab-spb-theme-plugin/colab_spb_theme/templates/search/search.html
... ... @@ -61,7 +61,6 @@
61 61 <div class="col-xs-3 col-sm-4 col-md-4 col-lg-4">
62 62 <p class="text-right search-total">{% trans "Ordenar por:" %}
63 63 <select name="order" id="order_option" onchange="this.form.submit()">
64   - <option value=""></option>
65 64 {% for option, dict_order in order_data.items %}
66 65 {% ifequal request.GET.order option %}
67 66 <option value="{{option}}" selected>{% trans option %}</option>
... ...