mirror of
https://github.com/LBRYFoundation/lbry.com.git
synced 2025-08-23 17:47:26 +00:00
Change roadmap item display
This commit is contained in:
parent
4ccefe9074
commit
ddc43e7f81
2 changed files with 14 additions and 14 deletions
15
lib/thirdparty/Asana.class.php
vendored
15
lib/thirdparty/Asana.class.php
vendored
|
@ -14,6 +14,8 @@ class Asana
|
||||||
161514803479899 => ['Blockchain and Wallets', 'https://github.com/lbryio/lbrycrd'],
|
161514803479899 => ['Blockchain and Wallets', 'https://github.com/lbryio/lbrycrd'],
|
||||||
136290697597644 => ['Integration and Building', null],
|
136290697597644 => ['Integration and Building', null],
|
||||||
158602294500249 => ['Documentation', null],
|
158602294500249 => ['Documentation', null],
|
||||||
|
658477315612493 => ['Complete', null],
|
||||||
|
658477315612495 => ['In progress', null]
|
||||||
];
|
];
|
||||||
|
|
||||||
$tasks = [];
|
$tasks = [];
|
||||||
|
@ -21,7 +23,8 @@ class Asana
|
||||||
$tags = [
|
$tags = [
|
||||||
192699565737944 => 'Open Beta',
|
192699565737944 => 'Open Beta',
|
||||||
542803886522122 => 'Upcoming',
|
542803886522122 => 'Upcoming',
|
||||||
542803886522120 => 'Future'
|
658477315612491 => ' 2018 ',
|
||||||
|
659021359433311 => ' 2025 '
|
||||||
];
|
];
|
||||||
|
|
||||||
foreach ($tags as $tagId => $tagLabel)
|
foreach ($tags as $tagId => $tagLabel)
|
||||||
|
@ -39,7 +42,7 @@ class Asana
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
$projectName = 'Other';
|
$projectName = 'Planned';
|
||||||
$projectId = null;
|
$projectId = null;
|
||||||
}
|
}
|
||||||
$tasks[$tagLabel][] = array_intersect_key($fullTask, ['name' => null]) + [
|
$tasks[$tagLabel][] = array_intersect_key($fullTask, ['name' => null]) + [
|
||||||
|
@ -59,18 +62,10 @@ class Asana
|
||||||
{
|
{
|
||||||
usort($groupTasks, function ($tA, $tB)
|
usort($groupTasks, function ($tA, $tB)
|
||||||
{
|
{
|
||||||
if ($tA['group'] != $tB['group'])
|
|
||||||
{
|
|
||||||
return $tA['group'] <= $tB['group'] ? -1 : 1;
|
|
||||||
}
|
|
||||||
if ($tA['date'] xor $tB['date'])
|
if ($tA['date'] xor $tB['date'])
|
||||||
{
|
{
|
||||||
return $tA['date'] ? -1 : 1;
|
return $tA['date'] ? -1 : 1;
|
||||||
}
|
}
|
||||||
if ($tA['project_id'] xor $tB['project_id'])
|
|
||||||
{
|
|
||||||
return $tA['project_id'] ? -1 : 1;
|
|
||||||
}
|
|
||||||
return $tA['date'] < $tB['date'] ? -1 : 1;
|
return $tA['date'] < $tB['date'] ? -1 : 1;
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
|
@ -49,9 +49,14 @@
|
||||||
<span class="roadmap-item-assignee"><?php echo $item['assignee'] ?></span>
|
<span class="roadmap-item-assignee"><?php echo $item['assignee'] ?></span>
|
||||||
<?php endif ?>
|
<?php endif ?>
|
||||||
<?php if (isset($item['badge'])): ?>
|
<?php if (isset($item['badge'])): ?>
|
||||||
|
<?php switch($item['badge']): case "Complete": ?>
|
||||||
|
<span class=" badge badge-primary"><?php echo $item['badge'] ?></span><br/>
|
||||||
|
<?php break; case "In progress":?>
|
||||||
|
<span class="badge badge-info"><?php echo $item['badge']?></span><br/>
|
||||||
|
<?php break; case "Planned": ?>
|
||||||
<span class="badge"><?php echo $item['badge']?></span><br/>
|
<span class="badge"><?php echo $item['badge']?></span><br/>
|
||||||
|
<?php break; endswitch;?>
|
||||||
<?php endif ?>
|
<?php endif ?>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<?php endif ?>
|
<?php endif ?>
|
||||||
<h3 class="roadmap-item-title">
|
<h3 class="roadmap-item-title">
|
||||||
|
|
Loading…
Add table
Reference in a new issue