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 @@ ...@@ -7,7 +7,9 @@
class projectlist to render overview page 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'; require_once 'base.class.php';
...@@ -50,7 +52,7 @@ class projectlist extends base ...@@ -50,7 +52,7 @@ class projectlist extends base
* render html for overview table * render html for overview table
* @return string * @return string
*/ */
public function renderOverview() public function renderOverview(): string
{ {
global $renderAdminLTE; global $renderAdminLTE;
...@@ -153,26 +155,26 @@ class projectlist extends base ...@@ -153,26 +155,26 @@ class projectlist extends base
<td class="prj"> <td class="prj">
<span class="float-right"><i class="fa-solid fa-tag"></i> ' . $sPrjGroup . '</span> <span class="float-right"><i class="fa-solid fa-tag"></i> ' . $sPrjGroup . '</span>
<strong>' <strong>'
. $oHtml->getLink(array( . $oHtml->getLink([
'href' => '/deployment/' . $sPrj . '/', 'href' => '/deployment/' . $sPrj . '/',
// 'title' => $oPrj->getDescription(), // 'title' => $oPrj->getDescription(),
'icon' => 'project', 'icon' => 'project',
'label' => $oPrj->getLabel() 'label' => $oPrj->getLabel()
)) ])
. '</strong>' . '</strong>'
. '<div class="descr">' . $oPrj->getDescription() . '</div>' . '<div class="descr">' . $oPrj->getDescription() . '</div>'
. ($sProgress ? '<div class="deployprogress">' . $sProgress . '</div>' : '') . ($sProgress ? '<div class="deployprogress">' . $sProgress . '</div>' : '')
// . ' <br>' // . ' <br>'
. '</td>' . '</td>'
. '<td class="prj">' . '<td class="prj">'
. $oHtml->getLinkButton(array( . $oHtml->getLinkButton([
'href' => '#', 'href' => '#',
'onclick' => 'setProjectFilter(\'' . $sPrj . '\'); return false;', 'onclick' => 'setProjectFilter(\'' . $sPrj . '\'); return false;',
'style' => 'float: right', 'style' => 'float: right',
'title' => t("overview-filter-hint"), 'title' => t("overview-filter-hint"),
'icon' => 'filter', 'icon' => 'filter',
'label' => t("overview-filter"), 'label' => t("overview-filter"),
)) ])
. '</td>' . '</td>'
. '<td class="prj">'; . '<td class="prj">';
if ($oPrj->canAcceptPhase()) { if ($oPrj->canAcceptPhase()) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment