Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
elasticsearch
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
cubicweb
cubes
elasticsearch
Commits
be9be3676bc8
Commit
be9be3676bc8
authored
8 years ago
by
Arthur Lutz
Browse files
Options
Downloads
Patches
Plain Diff
bugfixes and docstrings
parent
af48c8eb3adb
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
es.py
+3
-0
3 additions, 0 deletions
es.py
views.py
+8
-2
8 additions, 2 deletions
views.py
with
11 additions
and
2 deletions
es.py
+
3
−
0
View file @
be9be367
...
...
@@ -35,6 +35,9 @@
def
indexable_types
(
schema
):
'''
introspect indexable types
'''
global
INDEXABLE_TYPES
if
INDEXABLE_TYPES
is
not
None
:
return
INDEXABLE_TYPES
...
...
This diff is collapsed.
Click to expand it.
views.py
+
8
−
2
View file @
be9be367
...
...
@@ -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
"
>
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment