# HG changeset patch
# User diegoe-guest
# Date 1250110281 0
# Node ID af5334fc46c1f6d962dace13b527798962480c61
# Parent 79a57c5f9477ede9cadc1e64ff0b2a4af8b2f4e6
table: make the actual table a separate template
search was failing because table.html is now a full fledged page.
diff --git a/bts_webui/amancay/search.py b/bts_webui/amancay/search.py
--- a/bts_webui/amancay/search.py
+++ b/bts_webui/amancay/search.py
@@ -7,6 +7,7 @@
from django.contrib.sites.models import Site
from django.http import HttpResponse
from django.shortcuts import render_to_response
+from django.template import RequestContext
from django.utils import simplejson
from amancay.btsqueries import SoapQueries
@@ -137,7 +138,7 @@
mimetype='application/javascript')
elif request.path.find('table') != -1:
# We only need to render the table
- return render_to_response('table.html',
+ return render_to_response('table_widget.html',
{'bug_list': bug_list,
'current_view': current_view,
'url': url,
diff --git a/bts_webui/amancay/templates/search.html b/bts_webui/amancay/templates/search.html
--- a/bts_webui/amancay/templates/search.html
+++ b/bts_webui/amancay/templates/search.html
@@ -1,11 +1,7 @@
{% extends "base.html" %}
-{% block title %}Amancay BTS interface{% endblock %}
-
{% block toolbox %}
{% endblock %}
-
-
{% block main_content %}
{% block search_form %}
@@ -14,7 +10,7 @@
{% if bug_list %}
{% block bug_list %}
- {% include "table.html" %}
+ {% include "table_widget.html" %}
{% endblock %}
{% endif %}
diff --git a/bts_webui/amancay/templates/table.html b/bts_webui/amancay/templates/table.html
--- a/bts_webui/amancay/templates/table.html
+++ b/bts_webui/amancay/templates/table.html
@@ -1,100 +1,4 @@
{% extends "base.html" %}
-{% comment %} vim: set sw=4 ts=4 sts=4 noet: {% endcomment %}
-{% load template_filters %}
-
{% block main_content %}
-
-
-{% if bug_list %}
-
{{ title }}
-
-
-{% endif %}
+ {% include "table_widget.html" %}
{% endblock %}
diff --git a/bts_webui/amancay/templates/table.html b/bts_webui/amancay/templates/table_widget.html
copy from bts_webui/amancay/templates/table.html
copy to bts_webui/amancay/templates/table_widget.html
--- a/bts_webui/amancay/templates/table.html
+++ b/bts_webui/amancay/templates/table_widget.html
@@ -1,8 +1,6 @@
-{% extends "base.html" %}
{% comment %} vim: set sw=4 ts=4 sts=4 noet: {% endcomment %}
{% load template_filters %}
-{% block main_content %}