Skip to content
Snippets Groups Projects

php8 only; added variable types; short array syntax; remove glyphicons

Merged Hahn Axel (hahn) requested to merge 7359-update-php83 into master
1 file
+ 8
6
Compare changes
  • Side-by-side
  • Inline
@@ -7,7 +7,9 @@
class projectlist to render overview page
---------------------------------------------------------------------
2013-11-08 Axel <axel.hahn@iml.unibe.ch>
Axel <axel.hahn@unibe.ch>
2013-11-08 Axel
2024-08-28 Axel php8 only; added variable types; short array syntax
###################################################################### */
require_once 'base.class.php';
@@ -50,7 +52,7 @@ class projectlist extends base
* render html for overview table
* @return string
*/
public function renderOverview()
public function renderOverview(): string
{
global $renderAdminLTE;
@@ -153,26 +155,26 @@ class projectlist extends base
<td class="prj">
<span class="float-right"><i class="fa-solid fa-tag"></i> ' . $sPrjGroup . '</span>
<strong>'
. $oHtml->getLink(array(
. $oHtml->getLink([
'href' => '/deployment/' . $sPrj . '/',
// 'title' => $oPrj->getDescription(),
'icon' => 'project',
'label' => $oPrj->getLabel()
))
])
. '</strong>'
. '<div class="descr">' . $oPrj->getDescription() . '</div>'
. ($sProgress ? '<div class="deployprogress">' . $sProgress . '</div>' : '')
// . ' <br>'
. '</td>'
. '<td class="prj">'
. $oHtml->getLinkButton(array(
. $oHtml->getLinkButton([
'href' => '#',
'onclick' => 'setProjectFilter(\'' . $sPrj . '\'); return false;',
'style' => 'float: right',
'title' => t("overview-filter-hint"),
'icon' => 'filter',
'label' => t("overview-filter"),
))
])
. '</td>'
. '<td class="prj">';
if ($oPrj->canAcceptPhase()) {
Loading