Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
MaX
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Requirements
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Container registry
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Issue analytics
Insights
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
pdn-certic
MaX
Commits
73e01ab3
Commit
73e01ab3
authored
8 years ago
by
chauveau
Browse files
Options
Downloads
Patches
Plain Diff
correctifs chemins / i18n sous menus
parent
0c1c7563
No related branches found
Tags
MaX-V0.3
No related merge requests found
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
max.xq
+1
-0
1 addition, 0 deletions
max.xq
plugins/index/index.xqm
+1
-2
1 addition, 2 deletions
plugins/index/index.xqm
rxq/html.xqm
+5
-8
5 additions, 8 deletions
rxq/html.xqm
with
7 additions
and
10 deletions
max.xq
+
1
−
0
View file @
73e01ab3
...
...
@@ -305,6 +305,7 @@ function max:getHTMLByID($project, $id, $xsl, $xslparams as xs:string *, $wrap a
declare
%rest:GET
%output:method
(
"html"
)
%output:indent
(
"no"
)
%rest:path
(
"/editions/{$project}/doc/{$doc=.*\.xml|.*\.svg}"
)
function
max:getFullDocument
(
$project
,
$doc
){
...
...
This diff is collapsed.
Click to expand it.
plugins/index/index.xqm
+
1
−
2
View file @
73e01ab3
...
...
@@ -98,8 +98,7 @@ function max.plugin.index:index($project){
else
max.plugin.index:generateIndex
(
$project
)
};
declare
%private
function
max.plugin.index:generateIndex
(
$project
){
declare
function
max.plugin.index:generateIndex
(
$project
){
try
{
let
$indexFilePath
:=
file:parent
(
file:parent
(
file:parent
(
static-base-uri
())))
||
'/editions/'
||
$project
||
'/fragments/index.frag.html'
let
$dbPath
:=
max.config:getProjectDBPath
(
$project
)
...
...
This diff is collapsed.
Click to expand it.
rxq/html.xqm
+
5
−
8
View file @
73e01ab3
...
...
@@ -361,8 +361,8 @@ declare %private function max.html:buildSubMenu($projectId, $pageId){
<div
id=
"sub-navbar"
class=
"collapse navbar-collapse"
>
<ul
class=
"nav navbar-nav"
>
{
for
$c
in
$parentEntry
/
subentry
let
$target
:=
$
c
/
target
/
text
()
let
$label
:=
max.i18n:getText
(
$projectId
,
"menu."
||
$
c
/
id
/
text
())
let
$target
:=
$
docMenu
//
entry
[
./
id
=
$c
/
text
()]
/
target
/
text
()
let
$label
:=
max.i18n:getText
(
$projectId
,
"menu."
||
$
docMenu
//
entry
[
./
id
=
$c
/
text
()]
/
id
/
text
())
return
<li><a
href=
"
{
$target
}
"
>
{
if
(
not
(
$label
=
'menu.'
))
then
$label
else
$c
/
text
()}
</a></li>
}
</ul>
...
...
@@ -381,18 +381,15 @@ declare %private function max.html:buildSubMenu($projectId, $pageId){
(:gets a project static HTML fragment (wrapped in an html div):)
declare
function
max.html:getHTMLFragment
(
$project
,
$fragmentName
as
xs:string
)
as
element
(
div
){
let
$fragmentPath
:=
concat
(
"../editions/"
,
$project
,
"/fragments/"
,
$fragmentName
,
".frag.html"
)
let
$fragmentPath
:=
max.util:maxHome
()
||
"/editions/"
||
$project
||
"/fragments/"
||
$fragmentName
||
".frag.html"
return
<div
id=
'content'
>
{
doc
(
$fragmentPath
)}
</div>
};
(:gets a project static HTML fragment (wrapped in an html div):)
declare
function
max.html:getHTMLFragmentFile
(
$project
,
$fragmentFile
as
xs:string
)
as
element
(){
let
$fragmentPath
:=
concat
(
"../"
,
$fragmentFile
)
let
$fragmentPath
:=
max.util:maxHome
()
||
'/'
||
$fragmentFile
return
doc
(
$fragmentPath
)
/*
[
1
]
...
...
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