Skip to content

Commit

Permalink
Fix page erro 500.
Browse files Browse the repository at this point in the history
  • Loading branch information
btenaglia committed May 27, 2015
1 parent cadd4be commit 7406f4e
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 14 deletions.
10 changes: 1 addition & 9 deletions community/templates/base_site.html
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,7 @@
{% block right-column %}
<!-- SeachBox -->


<form id="search-form" class="input-group" role="form" action="{% url "buscador" %}" method="get">
<input type="search" name="buscar" class="form-control input-lg" placeholder="{% trans 'Buscar...' %}" value="{{ buscar }}" required >
<span class="input-group-btn">
<button class="btn btn-default btn-lg" type="submit">
<span class="glyphicon glyphicon-search"></span>
</button>
</span>
</form>
{% include 'search_form.html' %}

<section class="list-group">
<header class="list-group-item">
Expand Down
10 changes: 10 additions & 0 deletions community/templates/search_form.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{% load i18n %}

<form id="search-form" class="input-group" role="form" action="{% url "buscador" %}" method="get">
<input type="search" name="buscar" class="form-control input-lg" placeholder="{% trans 'Buscar...' %}" value="{{ buscar }}" required >
<span class="input-group-btn">
<button class="btn btn-default btn-lg" type="submit">
<span class="glyphicon glyphicon-search"></span>
</button>
</span>
</form>
13 changes: 8 additions & 5 deletions templates/500.html
Original file line number Diff line number Diff line change
@@ -1,17 +1,20 @@
{% extends "base_site.html" %}
{% extends "base.html" %}
{% load i18n %}

{% block title %}500 {% endblock %}

{% block left-column %}
<section>
{% block content %}
<main id="main" class="container" role="main">
<div class="row">
<div class="col-md-12">
<div class="col-md-8">
<div class="page-header">
<h1>{% trans "Server Error" %}</h1>
</div>
<p>Lo sentimos, pero el servidor encontró un error al procesar su solicitud.</p>
</div>
<div class="col-md-4" style="margin-top:20px;">
{% include 'search_form.html' %}
</div>
</div>
</section>
</main>
{% endblock %}

0 comments on commit 7406f4e

Please sign in to comment.