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
julien balaka
co2
Commits
ad014005
Commit
ad014005
authored
Jan 23, 2019
by
Tibor Katelbach
Browse files
tweaks
parent
92daf525
Changes
1
Hide whitespace changes
Inline
Side-by-side
assets/js/default/directory.js
View file @
ad014005
...
...
@@ -2637,11 +2637,18 @@ var directory = {
str
+=
'
<a href="javascript:"
'
+
linkParams
+
'
class="btn-openVoteDetail bg-green btn col-sm-
'
+
btnSize
+
'
"><i class="fa fa-gavel"></i>
'
+
trad
.
Vote
+
'
</a>
'
;
else
if
(
(
params
.
status
==
"
tovote
"
||
params
.
status
==
"
amendementAndVote
"
)
&&
params
.
hasVote
!==
false
)
str
+=
'
<a href="javascript:;"
'
+
linkParams
+
'
data-coop-section="vote" class="openCoopPanelHtml btn btn-default col-sm-
'
+
btnSize
+
'
"><i class="fa fa-eye"></i>
'
+
trad
[
"
See votes
"
]
+
'
</a>
'
;
if
(
params
.
status
==
"
amendementAndVote
"
||
params
.
status
==
"
amendable
"
){
}
else
{
var
btnSize
=
(
params
.
status
==
"
amendementAndVote
"
)
?
"
6
"
:
"
12
"
;
if
(
(
params
.
status
==
"
tovote
"
||
params
.
status
==
"
amendementAndVote
"
)
&&
params
.
hasVote
===
false
)
str
+=
'
<a href="javascript:" data-toggle="modal" data-target="#modalLogin" class="btn-menu-connect bg-green btn col-sm-
'
+
btnSize
+
'
"><i class="fa fa-gavel"></i>
'
+
trad
.
Vote
+
'
</a>
'
;
}
if
(
params
.
status
==
"
amendementAndVote
"
||
params
.
status
==
"
amendable
"
){
amendCount
=
(
params
.
amendements
)
?
"
(
"
+
Object
.
keys
(
params
.
amendements
).
length
+
"
)
"
:
""
;
str
+=
'
<a href="javascript:;"
'
+
linkParams
+
'
data-coop-section="amendments" class="openCoopPanelHtml btn btn-default text-purple col-sm-6 "><i class="fa fa-list"></i>
'
+
trad
.
Amendements
+
amendCount
+
'
</a>
'
;
}
}
str
+=
'
</div>
'
;
...
...
@@ -2652,7 +2659,8 @@ var directory = {
//BTN toggle description
str
+=
'
<a href="javascript:" data-coop-id="
'
+
thisId
+
'
" class="btn-openVoteDetail"><i class="text-dark fa fa-arrow-circle-left"></i></a>
'
;
if
((
params
.
auth
||
typeof
params
.
idParentRoom
==
"
undefined
"
)
&&
(
params
.
status
==
"
tovote
"
||
params
.
status
==
"
amendementAndVote
"
)
)
if
((
params
.
auth
||
typeof
params
.
idParentRoom
==
"
undefined
"
)
&&
(
params
.
status
==
"
tovote
"
||
params
.
status
==
"
amendementAndVote
"
)
)
{
//str += '<span class="col-xs-12 no-padding"><hr></span>';
...
...
@@ -2709,7 +2717,8 @@ var directory = {
str
+=
'
</div>
'
;
});
}
}
str
+=
'
</div>
'
;
str
+=
"
</div>
"
;
...
...
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