mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-24 11:08:45 +02:00
N°2847 - Work on the ActivityPanel and PopoverMenu features
- Deprecate cmdbAbstractObject::DisplayBareHistory() as history will be replace by ActivityPanel - Rename illustrations to original filenames to find source more easily - Remove unused "max_history_case_log_entry_length" config. parameter - Activity panel: Introduce iCMDBChangeOp and iCMDBChangeOpSetAttribute interface for better dependency injection - Activity panel: Add placeholder when no entry - Activity panel: Fix tab toolbar icons color - Activity panel: Add history entries (entries after the first 50 are not loaded yet) - Popover menu: Fix no border-radius on first/last entries hover
This commit is contained in:
@@ -31,7 +31,22 @@
|
||||
* @package iTopORM
|
||||
*/
|
||||
|
||||
class CMDBChangeOp extends DBObject
|
||||
/**
|
||||
* Interface iCMDBChangeOp
|
||||
*
|
||||
* @since 2.8.0
|
||||
*/
|
||||
interface iCMDBChangeOp
|
||||
{
|
||||
/**
|
||||
* Describe (as a text string) the modifications corresponding to this change
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function GetDescription();
|
||||
}
|
||||
|
||||
class CMDBChangeOp extends DBObject implements iCMDBChangeOp
|
||||
{
|
||||
public static function Init()
|
||||
{
|
||||
@@ -156,13 +171,22 @@ class CMDBChangeOpDelete extends CMDBChangeOp
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Interface iCMDBChangeOpSetAttribute
|
||||
*
|
||||
* @since 2.8.0
|
||||
*/
|
||||
interface iCMDBChangeOpSetAttribute
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* Record the modification of an attribute (abstract)
|
||||
*
|
||||
* @package iTopORM
|
||||
*/
|
||||
class CMDBChangeOpSetAttribute extends CMDBChangeOp
|
||||
class CMDBChangeOpSetAttribute extends CMDBChangeOp implements iCMDBChangeOpSetAttribute
|
||||
{
|
||||
public static function Init()
|
||||
{
|
||||
@@ -799,7 +823,6 @@ class CMDBChangeOpSetAttributeCaseLog extends CMDBChangeOpSetAttribute
|
||||
}
|
||||
$oObj = $oMonoObjectSet->Fetch();
|
||||
$oCaseLog = $oObj->Get($this->Get('attcode'));
|
||||
$iMaxVisibleLength = MetaModel::getConfig()->Get('max_history_case_log_entry_length', 0);
|
||||
$sTextEntry = '<div class="history_entry history_entry_truncated"><div class="history_html_content">'.$oCaseLog->GetEntryAt($this->Get('lastentry')).'</div></div>';
|
||||
|
||||
$sResult = Dict::Format('Change:AttName_EntryAdded', $sAttName, $sTextEntry);
|
||||
|
||||
@@ -967,15 +967,6 @@ class Config
|
||||
'source_of_value' => '',
|
||||
'show_in_conf_sample' => false,
|
||||
),
|
||||
'max_history_case_log_entry_length' => array(
|
||||
'type' => 'integer',
|
||||
'description' => 'The length (in number of characters) at which to truncate the (expandable) display (in the history) of a case log entry. If zero, the display in the history is not truncated.',
|
||||
// examples... not used
|
||||
'default' => 60,
|
||||
'value' => 60,
|
||||
'source_of_value' => '',
|
||||
'show_in_conf_sample' => false,
|
||||
),
|
||||
'full_text_chunk_duration' => array(
|
||||
'type' => 'integer',
|
||||
'description' => 'Delay after which the results are displayed.',
|
||||
|
||||
Reference in New Issue
Block a user