Initial commit to support document comments

This commit is contained in:
Roberto Rosario
2011-04-30 04:47:58 -04:00
parent 20c14eed41
commit 488bb7bd02
3 changed files with 8 additions and 1 deletions

View File

@@ -26,6 +26,9 @@
{% endif %} {% endif %}
<form action="{% url multi_object_action_view %}" class="form" method="get"> <form action="{% url multi_object_action_view %}" class="form" method="get">
{% if scrollable_content %}
<div style="border: 1px solid black; height: {{ scrollable_content_height }}; overflow: auto;">
{% endif %}
<table class="table"> <table class="table">
<tbody> <tbody>
{% if not hide_header %} {% if not hide_header %}
@@ -86,6 +89,9 @@
{% endfor %} {% endfor %}
</tbody> </tbody>
</table> </table>
{% if scrollable_content %}
</div>
{% endif %}
{% if multi_select or multi_select_as_buttons %} {% if multi_select or multi_select_as_buttons %}
{% if multi_select_as_buttons %} {% if multi_select_as_buttons %}
{% get_multi_item_links as multi_item_links %} {% get_multi_item_links as multi_item_links %}
@@ -108,7 +114,6 @@
{% endif %} {% endif %}
{% endif %} {% endif %}
</form> </form>
{% paginate %} {% paginate %}
{% if side_bar %} {% if side_bar %}

View File

@@ -119,6 +119,7 @@ INSTALLED_APPS = (
'django.contrib.messages', 'django.contrib.messages',
'django.contrib.admin', 'django.contrib.admin',
'django.contrib.admindocs', 'django.contrib.admindocs',
'django.contrib.comments',
'navigation', 'navigation',
'web_theme', 'web_theme',
'main', 'main',

View File

@@ -18,6 +18,7 @@ urlpatterns = patterns('',
(r'^admin/', include(admin.site.urls)), (r'^admin/', include(admin.site.urls)),
(r'^grappelli/', include('grappelli.urls')), (r'^grappelli/', include('grappelli.urls')),
(r'^sentry/', include('sentry.urls')), (r'^sentry/', include('sentry.urls')),
(r'^comments/', include('django.contrib.comments.urls')),
) )