Skip to content
Snippets Groups Projects
Commit b8488569 authored by Hahn Axel (hahn)'s avatar Hahn Axel (hahn)
Browse files

projectlist.class: php8 only; added variable types; short array syntax

parent 8c95acd8
No related branches found
No related tags found
1 merge request!66php8 only; added variable types; short array syntax; remove glyphicons
......@@ -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()) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment