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
Labels
Merge Requests
18
Merge Requests
18
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Jobs
Commits
Open sidebar
nexedi
slapos.core
Commits
a1b505b7
Commit
a1b505b7
authored
Feb 07, 2017
by
Rafael Monnerat
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
slapos_web: Failover in case cell is None and context is Software Product
parent
06cc675c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
1 deletion
+4
-1
master/bt5/slapos_web/SkinTemplateItem/portal_skins/vifib_hosting/SoftwareProduct_getSoftwareReleaseOrderLink.py
...ib_hosting/SoftwareProduct_getSoftwareReleaseOrderLink.py
+3
-0
master/bt5/slapos_web/SkinTemplateItem/portal_skins/vifib_hosting/SoftwareProduct_getSoftwareReleaseOrderLink.xml
...b_hosting/SoftwareProduct_getSoftwareReleaseOrderLink.xml
+1
-1
No files found.
master/bt5/slapos_web/SkinTemplateItem/portal_skins/vifib_hosting/SoftwareProduct_getSoftwareReleaseOrderLink.py
View file @
a1b505b7
person
=
context
.
getPortalObject
().
ERP5Site_getAuthenticatedMemberPersonValue
()
if
cell
is
None
and
context
.
getPortalType
()
==
"Software Product"
:
cell
=
context
if
person
is
None
or
person
.
Person_isServiceProvider
():
return
"<a href=%s/SoftwareProduct_viewSoftwareReleaseOrderDialog> Order Now </a>"
%
cell
.
absolute_url
()
...
...
master/bt5/slapos_web/SkinTemplateItem/portal_skins/vifib_hosting/SoftwareProduct_getSoftwareReleaseOrderLink.xml
View file @
a1b505b7
...
...
@@ -50,7 +50,7 @@
</item>
<item>
<key>
<string>
_params
</string>
</key>
<value>
<string>
cell
</string>
</value>
<value>
<string>
cell
=None
</string>
</value>
</item>
<item>
<key>
<string>
id
</string>
</key>
...
...
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