Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
E
erp5_workflow
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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wenjie.zheng
erp5_workflow
Commits
711b4e9b
Commit
711b4e9b
authored
Aug 25, 2014
by
Sven Franck
Committed by
Sebastien Robin
Aug 26, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
erp5_web_renderjs_ui: Allow breadcrumbs to go temporarily go "Home"
parent
9584a80f
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
7 deletions
+12
-7
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_breadcrumb_js.xml
...ateItem/web_page_module/rjs_gadget_erp5_breadcrumb_js.xml
+7
-3
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_js.xml
...i/PathTemplateItem/web_page_module/rjs_gadget_erp5_js.xml
+4
-3
bt5/erp5_web_renderjs_ui/bt/revision
bt5/erp5_web_renderjs_ui/bt/revision
+1
-1
No files found.
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_breadcrumb_js.xml
View file @
711b4e9b
...
@@ -154,11 +154,15 @@
...
@@ -154,11 +154,15 @@
return gadget.whoWantToDisplayThis(uri.segment(2))\n
return gadget.whoWantToDisplayThis(uri.segment(2))\n
.push(function (parent_href) {\n
.push(function (parent_href) {\n
link_element = document.createElement("a");\n
link_element = document.createElement("a");\n
// XXX Romain: please allow to "go home" via breadcrumb\n
if (parent_href === "#erp5_gadget.jio_key=undefined") {\n
parent_href = "#";\n
}\n
link_element.textContent = parent_link.name || "Home";\n
link_element.href = parent_href;\n
link_element.href = parent_href;\n
link_element.setAttribute("class", "responsive ui-btn ui-icon-carat-u ui-btn-icon-left");\n
link_element.setAttribute("class", "responsive ui-btn ui-icon-carat-u ui-btn-icon-left");\n
link_element.setAttribute("data-role", "button");\n
link_element.setAttribute("data-role", "button");\n
link_element.setAttribute("role", "button");\n
link_element.setAttribute("role", "button");\n
link_element.textContent = parent_link.name;\n
parent_element.appendChild(link_element);\n
parent_element.appendChild(link_element);\n
});\n
});\n
}\n
}\n
...
@@ -299,7 +303,7 @@
...
@@ -299,7 +303,7 @@
</item>
</item>
<item>
<item>
<key>
<string>
serial
</string>
</key>
<key>
<string>
serial
</string>
</key>
<value>
<string>
93
6.46052.59584.21316
</string>
</value>
<value>
<string>
93
7.8179.20788.60245
</string>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
state
</string>
</key>
<key>
<string>
state
</string>
</key>
...
@@ -317,7 +321,7 @@
...
@@ -317,7 +321,7 @@
</tuple>
</tuple>
<state>
<state>
<tuple>
<tuple>
<float>
140
7318113.56
</float>
<float>
140
8976172.25
</float>
<string>
GMT
</string>
<string>
GMT
</string>
</tuple>
</tuple>
</state>
</state>
...
...
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_js.xml
View file @
711b4e9b
...
@@ -177,7 +177,8 @@
...
@@ -177,7 +177,8 @@
\n
\n
breadcrumb_options.title = result.data.title ||\n
breadcrumb_options.title = result.data.title ||\n
result.data.reference || options.jio_key;\n
result.data.reference || options.jio_key;\n
breadcrumb_options.parent_link = result.data._links.parent || result.data._links.site_root;\n
\n
breadcrumb_options.parent_link = result.data._links.parent || "#";\n
\n
\n
uri = new URI(\n
uri = new URI(\n
result.data._embedded._view._links.form_definition.href\n
result.data._embedded._view._links.form_definition.href\n
...
@@ -563,7 +564,7 @@
...
@@ -563,7 +564,7 @@
</item>
</item>
<item>
<item>
<key>
<string>
serial
</string>
</key>
<key>
<string>
serial
</string>
</key>
<value>
<string>
93
6.56327.51436.15564
</string>
</value>
<value>
<string>
93
7.8167.39223.50892
</string>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
state
</string>
</key>
<key>
<string>
state
</string>
</key>
...
@@ -581,7 +582,7 @@
...
@@ -581,7 +582,7 @@
</tuple>
</tuple>
<state>
<state>
<tuple>
<tuple>
<float>
140
7932681.2
4
</float>
<float>
140
8975361.8
4
</float>
<string>
GMT
</string>
<string>
GMT
</string>
</tuple>
</tuple>
</state>
</state>
...
...
bt5/erp5_web_renderjs_ui/bt/revision
View file @
711b4e9b
5
6
5
7
\ No newline at end of file
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