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
67769575
Commit
67769575
authored
Jan 24, 2019
by
Tibor Katelbach
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/master'
parents
4ca8330f
c0a6258b
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
57 additions
and
7 deletions
+57
-7
assets/js/default/directory.js
assets/js/default/directory.js
+52
-3
config/CO2/params.json
config/CO2/params.json
+1
-1
views/admin/referenceTable.php
views/admin/referenceTable.php
+3
-3
views/translation/trad.php
views/translation/trad.php
+1
-0
No files found.
assets/js/default/directory.js
View file @
67769575
...
...
@@ -2583,10 +2583,59 @@ 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 ) {
// 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';
// 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 + " " ;
// });
// }
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
console
.
log
(
"
hasVote ?
"
,
params
.
hasVote
);
...
...
config/CO2/params.json
View file @
67769575
...
...
@@ -194,7 +194,7 @@
"#dda"
:
{
"inMenu"
:
true
,
"useHeader"
:
true
,
"useFilter"
:
true
,
"useFilter"
:
{
"scope"
:
true
,
"filters"
:
false
}
,
"open"
:
true
,
"subdomain"
:
"dda"
,
"subdomainName"
:
"Agora Citoyenne"
,
...
...
views/admin/referenceTable.php
View file @
67769575
...
...
@@ -156,17 +156,20 @@ function initMenuReference(){
$
(
"
.sourceFilter
"
).
off
().
on
(
"
click
"
,
function
(){
searchAdmin
.
mode
=
"
source
"
;
searchAdmin
.
page
=
0
;
searchAdmin
.
text
=
null
;
startAdminSearch
(
true
);
});
$
(
"
.referenceFilter
"
).
off
().
on
(
"
click
"
,
function
(){
searchAdmin
.
mode
=
"
reference
"
;
searchAdmin
.
page
=
0
;
searchAdmin
.
text
=
null
;
startAdminSearch
(
true
);
});
$
(
"
.searchOpenFilter
"
).
off
().
on
(
"
click
"
,
function
(){
searchAdmin
.
mode
=
"
open
"
;
searchAdmin
.
page
=
0
;
searchAdmin
.
text
=
null
;
startAdminSearch
(
true
);
});
}
...
...
@@ -178,14 +181,11 @@ function initPageTable(number){
currentPage
:
1
,
hrefTextPrefix
:
"
?page=
"
,
cssStyle
:
'
light-theme
'
,
//prevText: '
<
span
aria
-
hidden
=
"
true
"
>&
laquo
;
<
/span>'
,
//nextText: '
<
span
aria
-
hidden
=
"
true
"
>&
raquo
;
<
/span>'
,
onInit
:
function
()
{
// fire first page loading
},
onPageClick
:
function
(
page
,
evt
)
{
// some code
//alert(page);
searchAdmin
.
page
=
(
page
-
1
);
startAdminSearch
();
}
...
...
views/translation/trad.php
View file @
67769575
...
...
@@ -584,6 +584,7 @@ var trad = {
"generaltermsofuse": "
<?php
echo
Yii
::
t
(
"common"
,
"general terms of use"
)
?>
",
"yourcommentisempty": "
<?php
echo
Yii
::
t
(
"comment"
,
"Your comment is empty"
)
?>
",
"manageby": "
<?php
echo
Yii
::
t
(
"common"
,
"Manage by"
)
?>
",
"proposedBy" : "
<?php
echo
Yii
::
t
(
"common"
,
"Proposed by"
)
?>
",
};
var tradDynForm = {
...
...
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