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
5d0e7f8c
Commit
5d0e7f8c
authored
Jan 25, 2019
by
Tibor Katelbach
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
repared votes
parent
080fbf4c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
assets/js/default/directory.js
assets/js/default/directory.js
+3
-2
No files found.
assets/js/default/directory.js
View file @
5d0e7f8c
...
...
@@ -2683,7 +2683,8 @@ var directory = {
if
(
typeof
userId
!=
"
undefined
"
&&
userId
!=
null
&&
userId
!=
""
){
var
btnSize
=
(
params
.
status
==
"
amendementAndVote
"
)
?
"
6
"
:
"
12
"
;
if
(
(
params
.
status
==
"
tovote
"
||
params
.
status
==
"
amendementAndVote
"
)
&&
params
.
hasVote
===
false
)
str
+=
'
<a href="javascript:"
'
+
linkParams
+
'
class="btn-openVoteDetail bg-green btn col-sm-
'
+
btnSize
+
'
"><i class="fa fa-gavel"></i>
'
+
trad
.
Vote
+
'
</a>
'
;
str
+=
'
<a href="javascript:;"
'
+
linkParams
+
'
data-coop-section="vote" class="bg-green openCoopPanelHtml btn col-sm-
'
+
btnSize
+
'
"><i class="fa fa-gavel"></i>
'
+
trad
.
Vote
+
'
</a>
'
;
//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>
'
;
}
else
{
...
...
@@ -2692,7 +2693,7 @@ var directory = {
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
"
)
&&
params
.
amendements
){
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>
'
;
}
...
...
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