Commit 272a3f5e authored by Côme Bernigaud's avatar Côme Bernigaud Committed by Benoit Mortier
Browse files

Fixes #3255 Have a clear message in FAI when there are no release

parent 3d8e3040
......@@ -127,6 +127,24 @@ class faiManagement extends simpleManagement
);
}
function execute ()
{
if (empty($this->headpage->bases)) {
return $this->getHeader().
'<div class="notice">'.
'<div class="msgtitle">'.
'<h2>'.
'<img src="geticon.php?context=status&icon=dialog-warning&size=32" class="center" alt="{t}Warning{/t}"/>'.
_('There are no FAI branches').
'</h2>'.
'</div><div>'.
_(' Please add at least one repository service to create those.').
'</div>'.
'</div>';
}
return parent::execute();
}
/*! \brief Returns a list of all releases for useable for drop down boxes.
*/
static function getReleaseList()
......
Supports Markdown
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