Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Open sidebar
xiphon
CCS Backend
Commits
f37b758e
Commit
f37b758e
authored
Jan 28, 2019
by
xiphon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
implement 'contributions' exported proposal property
parent
f856d4fb
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
0 deletions
+1
-0
app/Console/Commands/UpdateSiteProposals.php
app/Console/Commands/UpdateSiteProposals.php
+1
-0
No files found.
app/Console/Commands/UpdateSiteProposals.php
View file @
f37b758e
...
...
@@ -109,6 +109,7 @@ class UpdateSiteProposals extends Command
$prop
->
{
'donate-url'
}
=
url
(
"projects/
{
$proposal
->
subaddr_index
}
/donate"
);
$prop
->
{
'gitlab-url'
}
=
$proposal
->
gitlab_url
;
$prop
->
{
'local-url'
}
=
'/proposals/'
.
pathinfo
(
$proposal
->
filename
,
PATHINFO_FILENAME
)
.
'.html'
;
$prop
->
contributions
=
$proposal
->
contributions
;
$prop
->
milestones
=
$proposal
->
milestones
;
$prop
->
{
'milestones-completed'
}
=
$proposal
->
milestones_completed
;
$milestones_percentage
=
min
(
100
,
(
int
)((
$proposal
->
milestones_completed
*
100
)
/
$proposal
->
milestones
));
...
...
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