Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
slapos.core
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Carlos Ramos Carreño
slapos.core
Commits
0511fe33
Commit
0511fe33
authored
Nov 28, 2011
by
Łukasz Nowak
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
follow_up replaces aggregate.
Additionaly start to use full text search.
parent
de62e4a9
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
9 deletions
+9
-9
master/bt5/vifib_web/SkinTemplateItem/portal_skins/vifib_hosting/ERP5Site_getSoftwareReleaseListAsJSON.xml
...s/vifib_hosting/ERP5Site_getSoftwareReleaseListAsJSON.xml
+5
-5
master/bt5/vifib_web/SkinTemplateItem/portal_skins/vifib_hosting_theme/vifib_hosting_js/vifib.js.xml
...l_skins/vifib_hosting_theme/vifib_hosting_js/vifib.js.xml
+4
-4
No files found.
master/bt5/vifib_web/SkinTemplateItem/portal_skins/vifib_hosting/ERP5Site_getSoftwareReleaseListAsJSON.xml
View file @
0511fe33
...
...
@@ -55,8 +55,8 @@
portal_catalog = context.getPortalObject().portal_catalog\n
kw = {}\n
\n
if
title
is not None:\n
kw[\'
title\'] = title
\n
if
query
is not None:\n
kw[\'
full_text\'] = query
\n
if uid is not None:\n
kw[\'uid\'] = uid\n
\n
...
...
@@ -88,7 +88,7 @@ for q in result[:5]:\n
\'uid\': q.UID,\n
\'title\': q.TITLE,\n
\'description\': q.DESCRIPTION,\n
\'image_url\': context.getPermanentURL(o.get
Aggregate
Value(portal_type=\'Software Product\').getDefaultImageValue()) + \'/Base_download\',\n
\'image_url\': context.getPermanentURL(o.get
FollowUp
Value(portal_type=\'Software Product\').getDefaultImageValue()) + \'/Base_download\',\n
\'document_url\': context.getPermanentURL(o),\n
\'url\': q.SOFTWARE_RELEASE_URL,\n
})\n
...
...
@@ -98,7 +98,7 @@ return context.asJSON({\n
\'before\': page > 0 and True or False,\n
\'after\': after,\n
\'page\': page,\n
\'
title\': title
\n
\'
query\': query
\n
})\n
...
...
@@ -106,7 +106,7 @@ return context.asJSON({\n
</item>
<item>
<key>
<string>
_params
</string>
</key>
<value>
<string>
title
=None, uid=None, page=0
</string>
</value>
<value>
<string>
query
=None, uid=None, page=0
</string>
</value>
</item>
<item>
<key>
<string>
id
</string>
</key>
...
...
master/bt5/vifib_web/SkinTemplateItem/portal_skins/vifib_hosting_theme/vifib_hosting_js/vifib.js.xml
View file @
0511fe33
...
...
@@ -8,7 +8,7 @@
<dictionary>
<item>
<key>
<string>
_EtagSupport__etag
</string>
</key>
<value>
<string>
ts222
18499.86
</string>
</value>
<value>
<string>
ts222
32696.03
</string>
</value>
</item>
<item>
<key>
<string>
__name__
</string>
</key>
...
...
@@ -110,7 +110,7 @@ function drawSoftwareReleaseList(data) {\n
navigation_div.attr(\'id\', \'navigation_div\');\n
navigation_div.addClass(\'software_release_more\');\n
var param = {};\n
if (data.
title) { param[\'query\'] = data.title
; }\n
if (data.
query) { param[\'query\'] = data.query
; }\n
var a = $(\'
<div>
\');\n
page = parseInt(data.page, 10);\n
if (data.after) {\n
...
...
@@ -126,7 +126,7 @@ function drawSoftwareReleaseList(data) {\n
navigation_div.append(p);\n
var a = $(\'
<div>
\');\n
var param = {};\n
if (data.
title) { param[\'query\'] = data.title
; }\n
if (data.
query) { param[\'query\'] = data.query
; }\n
if (data.before) {\n
param[\'page\'] = page-1;\n
a.addClass(\'sr_left_active\');\n
...
...
@@ -174,7 +174,7 @@ function softwareReleaseController(query, page) {\n
js_container.append(software_release_container);\n
search.click(searchSoftwareReleaseList);\n
var q = {}\n
if (query) { q[\'
title
\'] = query }\n
if (query) { q[\'
query
\'] = query }\n
if (page) {q[\'page\'] = page}\n
else {q[\'page\'] = 0}\n
$.getJSON(vifib[\'site_url\'] + "/ERP5Site_getSoftwareReleaseListAsJSON", q,\n
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment