Skip to content
Snippets Groups Projects
Commit be9be3676bc8 authored by Arthur Lutz's avatar Arthur Lutz
Browse files

bugfixes and docstrings

parent af48c8eb3adb
No related branches found
No related tags found
No related merge requests found
......@@ -35,6 +35,9 @@
def indexable_types(schema):
'''
introspect indexable types
'''
global INDEXABLE_TYPES
if INDEXABLE_TYPES is not None:
return INDEXABLE_TYPES
......
......@@ -205,5 +205,5 @@
url_params['page'] = current_page + 1
if current_page + 1 >= (total_pages):
ul(t.li(t.a('>>>')))
ul(t.li(t.a('<' * 3)))
else:
......@@ -209,5 +209,5 @@
else:
ul(t.li(t.a('>>>',
ul(t.li(t.a('>' * 3,
href=self._cw.build_url(**url_params))))
def page_number(self, url_params, page, current_page, ul):
......@@ -211,6 +211,9 @@
href=self._cw.build_url(**url_params))))
def page_number(self, url_params, page, current_page, ul):
'''
Generate HTML for page number (bold if page is current_page)
'''
url_params['page'] = page
url = self._cw.build_url(**url_params)
if page == current_page:
......@@ -229,6 +232,9 @@
return ('cw_etype', )
def display_facets(self, response):
'''
Generate HTML for facets
'''
self.w(u'''<aside id="aside-main-left" class="col-xs-2 cwjs-aside">
<div class="panel panel-default contextFreeBox facet_filterbox">
<div class="panel-heading">
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment