-
Notifications
You must be signed in to change notification settings - Fork 24
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use new BaseObjectHeader class to create detail view header #1104
base: dependencies
Are you sure you want to change the base?
Use new BaseObjectHeader class to create detail view header #1104
Conversation
b5c9062
to
3382816
Compare
3382816
to
9c4b4de
Compare
9c4b4de
to
47f5a74
Compare
6ebc500
to
7a39522
Compare
- Adjust RedundancyHeader class - Use this class to create object header for host and service - Remove previous implementation - Add required changes to `object-header.less` - StateList: Remove now unused NoSubjectLink
- Introduce trait CommentHeaderUtils
- Introduce trait DowntimeHeaderUtils
- Introduce EventHeaderUtils
7a39522
to
045ed2c
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Haven't looked at everything yet, CSS not at all even.
Though, I'm already quite puzzled anyway. My expectation, and I told you this many times, was that nothing (or only with good reasoning) must change in the UI. As can be seen on the screenshots in my comments, this isn't the case.
->setDetailActionsDisabled() | ||
->setCaptionDisabled() | ||
->setNoSubjectLink()); | ||
$this->addControl(new CommentHeader($this->comment)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
{ | ||
$detail = new DowntimeDetail($this->downtime); | ||
$this->addControl(new DowntimeHeader($this->downtime)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
->setCaptionDisabled() | ||
->setNoSubjectLink() | ||
->setDetailActionsDisabled()); | ||
$this->addControl(new EventHeader($this->event)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
$this->addContent(Html::tag('h2', null, t('Hosts'))); | ||
} else { | ||
$this->addControl(new HostgroupTableRow($hostgroup)); | ||
$this->addControl(new HostgroupHeader($hostgroup)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
->setViewMode('objectHeader') | ||
->setDetailActionsDisabled() | ||
->setNoSubjectLink()); | ||
$this->addControl(new ServiceHeader($this->service)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
$this->addContent(Html::tag('h2', null, t('Services'))); | ||
} else { | ||
$this->addControl(new ServicegroupTableRow($servicegroup)); | ||
$this->addControl(new ServicegroupHeader($servicegroup)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@@ -40,7 +40,7 @@ public function init() | |||
|
|||
public function indexAction() | |||
{ | |||
$this->addControl(new UserTableRow($this->user)); | |||
$this->addControl(new UserHeader($this->user)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@@ -40,7 +40,7 @@ public function init() | |||
|
|||
public function indexAction() | |||
{ | |||
$this->addControl(new UsergroupTableRow($this->usergroup)); | |||
$this->addControl(new UsergroupHeader($this->usergroup)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
->setNoSubjectLink() | ||
->setObjectLinkDisabled() | ||
->setDetailActionsDisabled(); | ||
$comment = new CommentHeader($comment, false, true); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No description provided.