Commit f37b758e authored by xiphon's avatar xiphon

implement 'contributions' exported proposal property

parent f856d4fb
......@@ -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));
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment