Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Comptoir
Comptoir-srv
Commits
96a56028
Commit
96a56028
authored
Jun 23, 2020
by
Fabrice Gangler
🎨
Browse files
FIX: typo
Refs:
#940
parent
ca00d13d
Pipeline
#10205
passed with stage
in 3 minutes and 55 seconds
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
src/Template/Api/V1/Softwares/view.ctp
View file @
96a56028
...
...
@@ -14,7 +14,7 @@ $this->assign('title', __d("Softwares", "{0}", $software->softwarename));
<section>
<?php
$htmlUsed
Softwares
=
$this
->
Lists
->
block
(
$htmlUsed
By
=
$this
->
Lists
->
block
(
$software
->
userssoftwares
,
[
"type"
=>
"user"
,
...
...
@@ -50,7 +50,7 @@ $this->assign('title', __d("Softwares", "{0}", $software->softwarename));
"emptyMsg"
=>
__d
(
"Softwares"
,
"No user for
{
0
}
"
,
$software
->
softwarename
)
]
);
echo
$htmlUsed
Softwares
;
echo
$htmlUsed
By
;
?>
</section>
...
...
@@ -61,7 +61,7 @@ $this->assign('title', __d("Softwares", "{0}", $software->softwarename));
if
(
'Administration'
===
$this
->
request
->
session
()
->
read
(
"Auth.User.user_type"
))
{
$startPattern
=
'<div class="container_btn-participate">'
;
$endPattern
=
'</div><!-- END class "container_btn-participate" -->'
;
$mappingButtons
=
strstr
(
$htmlUsed
Softwares
,
$startPattern
);
$mappingButtons
=
strstr
(
$htmlUsed
By
,
$startPattern
);
$mappingButtons
=
strstr
(
$mappingButtons
,
$endPattern
,
true
);
$mappingButtons
=
"
$mappingButtons
$endPattern
<div class=
\"
clearFloat
\"
></div>"
;
$mappingButtons
=
str_replace
(
'Form_'
,
'FormMapping_'
,
$mappingButtons
);
...
...
Write
Preview
Supports
Markdown
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