Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
co2
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
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
Albert Beltran
co2
Commits
83641027
Commit
83641027
authored
Jan 24, 2019
by
Raph El
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Amélioration DDA
parent
55496410
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
46 additions
and
16 deletions
+46
-16
assets/js/default/directory.js
assets/js/default/directory.js
+46
-16
No files found.
assets/js/default/directory.js
View file @
83641027
...
...
@@ -2583,28 +2583,58 @@ var directory = {
// "><i class='fa fa-chevron-right'></i> <span class='hidden-xs'>"+trad.Open+"</span></button>";
// NAME
if
(
name
!=
""
)
str
+=
'
<a href="javascript:;" class="openCoopPanelHtml" style="text-decoration:none;"
'
+
linkParams
+
'
>
'
+
'
<h4 class="panel-title letter-turq"><i class="fa
'
+
params
.
ico
+
'
"></i>
'
+
name
+
'
</h4></a>
'
;
if
(
name
!=
""
){
str
+=
'
<a href="javascript:;" class="openCoopPanelHtml" style="text-decoration:none;"
'
+
linkParams
+
'
>
'
+
'
<h4 class="panel-title tooltips letter-turq" data-toggle="tooltip" data-placement="top" data-original-title="
'
+
name
+
'
">
'
+
'
<i class="fa
'
+
params
.
ico
+
'
"></i>
'
+
(
(
name
.
length
>
140
)
?
name
.
substring
(
0
,
30
)
+
"
...
"
:
name
)
+
'
</h4></a>
'
;
}
if
(
typeof
params
.
producer
!=
"
undefined
"
&&
params
.
producer
!=
null
&&
Object
.
keys
(
params
.
producer
).
length
>
0
)
{
//
if( typeof params.producer != "undefined" &&
//
params.producer != null &&
//
Object.keys(params.producer).length > 0 ) {
var
count
=
Object
.
keys
(
params
.
producer
).
length
;
str
+=
trad
.
proposedBy
+
"
"
;
$
.
each
(
params
.
producer
,
function
(
kProd
,
valProd
){
var
heightImg
=
(
count
>
1
)
?
35
:
25
;
//
var count = Object.keys(params.producer).length ;
//
str += trad.proposedBy + " ";
//
$.each(params.producer, function(kProd,valProd){
//
var heightImg = ( count > 1 ) ? 35 : 25;
var
imgPath
=
assetPath
+
'
/images/thumb/default_
'
+
valProd
.
type
+
'
.png
'
;
//
var imgPath = assetPath+'/images/thumb/default_'+valProd.type+'.png';
if
(
typeof
valProd
.
profilThumbImageUrl
!=
"
undefined
"
&&
valProd
.
profilThumbImageUrl
!=
null
){
imgPath
=
"
/ph
"
+
valProd
.
profilThumbImageUrl
;
}
//
if(typeof valProd.profilThumbImageUrl != "undefined" && valProd.profilThumbImageUrl != null){
//
imgPath = "/ph"+valProd.profilThumbImageUrl ;
//
}
str
+=
'
<img src="
'
+
imgPath
+
'
" class="img-circle" width="
'
+
heightImg
+
'
" height="
'
+
heightImg
+
'
" />
'
;
str
+=
"
"
+
valProd
.
name
+
"
"
;
// str += '<img src="'+imgPath+'" class="img-circle" width="'+heightImg+'" height="'+heightImg+'" />';
// str += " "+valProd.name + " " ;
// });
// }
if
(
typeof
params
.
producer
!=
"
undefined
"
&&
params
.
producer
!=
null
&&
Object
.
keys
(
params
.
producer
).
length
>
0
)
{
count
=
Object
.
keys
(
params
.
producer
).
length
;
htmlAbout
=
""
;
$
.
each
(
params
.
producer
,
function
(
e
,
v
){
heightImg
=
(
count
>
1
)
?
35
:
25
;
imgIcon
=
(
typeof
v
.
profilThumbImageUrl
!=
"
undefined
"
&&
v
.
profilThumbImageUrl
!=
""
)
?
baseUrl
+
"
/
"
+
v
.
profilThumbImageUrl
:
assetPath
+
"
/images/thumb/default_
"
+
v
.
type
+
"
.png
"
;
// htmlAbout+='<a href="#page.type.'+v.type+'.id.'+e+'" class="lbh tooltips" target="_blank" ';
// if(count>1) htmlAbout+= 'data-toggle="tooltip" data-placement="left" title="'+v.name+'"';
// htmlAbout+=">"+
htmlAbout
+=
'
<span
'
;
if
(
count
>
1
)
htmlAbout
+=
'
data-toggle="tooltip" data-placement="left" title="
'
+
v
.
name
+
'
"
'
;
htmlAbout
+=
"
>
"
+
'
<img src="
'
+
imgIcon
+
'
" class="img-circle margin-right-10" width=
'
+
heightImg
+
'
height=
'
+
heightImg
+
'
/>
'
;
if
(
count
==
1
)
htmlAbout
+=
v
.
name
;
//htmlAbout+="</a>";
htmlAbout
+=
"
</span>
"
;
});
htmlHeader
=
((
params
.
type
==
typeObj
.
event
.
col
)
?
trad
[
"
Planned on
"
]
:
tradCategory
.
carriedby
)
;
htmlHeader
+=
"
:
"
+
htmlAbout
;
str
+=
htmlHeader
;
}
// STATE OF THE PROPOSAL
...
...
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