logo

searx

My custom branche(s) on searx, a meta-search engine git clone https://hacktivis.me/git/searx.git
commit: 915857105997357f24db86b9fcc6739fd816e98e
parent a538bed745a688d17c98372785dd2c0644e6019b
Author: Thomas Pointhuber <thomas.pointhuber@gmx.at>
Date:   Sat, 27 Sep 2014 11:51:31 +0200

oscar template: update messages

Diffstat:

Asearx/templates/oscar/messages/first_time.html8++++++++
Msearx/templates/oscar/messages/js_disabled.html2+-
Asearx/templates/oscar/messages/no_data_available.html5+++++
Msearx/templates/oscar/messages/save_settings_successfull.html3++-
Msearx/templates/oscar/messages/unknow_error.html3++-
Msearx/templates/oscar/stats.html4+---
6 files changed, 19 insertions(+), 6 deletions(-)

diff --git a/searx/templates/oscar/messages/first_time.html b/searx/templates/oscar/messages/first_time.html @@ -0,0 +1,8 @@ +<div class="alert alert-info fade in" role="alert"> + <button class="close" data-dismiss="alert" type="button"> + <span aria-hidden="true">×</span> + <span class="sr-only">Close</span> + </button> + <strong class="lead">{{ icon('info-sign') }} {{ _('Heads up!') }}</strong> + {{ _('It look like you are using searx first time.') }} +</div> diff --git a/searx/templates/oscar/messages/js_disabled.html b/searx/templates/oscar/messages/js_disabled.html @@ -1,4 +1,4 @@ <div class="alert alert-warning" role="alert"> - <strong>{{ _('Warning!') }}</strong> + <strong class="lead">{{ _('Warning!') }}</strong> {{ _('Please enable JavaScript to use full functionality of this site.') }} </div> diff --git a/searx/templates/oscar/messages/no_data_available.html b/searx/templates/oscar/messages/no_data_available.html @@ -0,0 +1,5 @@ +{% from 'oscar/macros.html' import icon %} +<div class="alert alert-info fade in" role="alert"> + <strong class="lead">{{ icon('info-sign') }} {{ _('Heads up!') }}</strong> + {{ _('There is currently no data available. ') }} +</div> diff --git a/searx/templates/oscar/messages/save_settings_successfull.html b/searx/templates/oscar/messages/save_settings_successfull.html @@ -1,8 +1,9 @@ +{% from 'oscar/macros.html' import icon %} <div class="alert alert-success fade in" role="alert"> <button class="close" data-dismiss="alert" type="button"> <span aria-hidden="true">×</span> <span class="sr-only">Close</span> </button> - <strong>{{ _('Well done!') }}</strong> + <strong class="lead">{{ icon('ok-sign') }} {{ _('Well done!') }}</strong> {{ _('Settings saved successfully.') }} </div> diff --git a/searx/templates/oscar/messages/unknow_error.html b/searx/templates/oscar/messages/unknow_error.html @@ -1,8 +1,9 @@ +{% from 'oscar/macros.html' import icon %} <div class="alert alert-danger fade in" role="alert"> <button class="close" data-dismiss="alert" type="button"> <span aria-hidden="true">×</span> <span class="sr-only">Close</span> </button> - <strong>{{ _('Oh snap!') }}</strong> + <strong class="lead">{{ icon('exclamation-sign') }} {{ _('Oh snap!') }}</strong> {{ _('Something went wrong.') }} </div> diff --git a/searx/templates/oscar/stats.html b/searx/templates/oscar/stats.html @@ -22,9 +22,7 @@ {% endfor %} {% if not stat_category %} <div class="col-sm-12 col-md-12"> - <div class="alert alert-info" role="alert"> - {{ _('There is currently no data available.') }} - </div> + {% include 'oscar/messages/no_data_available.html' %} </div> {% endif %} </div>