File tree Expand file tree Collapse file tree 4 files changed +1
-110
lines changed Expand file tree Collapse file tree 4 files changed +1
-110
lines changed Original file line number Diff line number Diff line change 19
19
use ipl \Web \Control \LimitControl ;
20
20
use ipl \Web \Control \SortControl ;
21
21
use ipl \Web \Filter \QueryString ;
22
- use ipl \Web \Url ;
23
22
use ipl \Web \Widget \ButtonLink ;
24
23
use ipl \Html \ValidHtml ;
25
24
@@ -42,8 +41,7 @@ public function init()
42
41
43
42
public function indexAction ()
44
43
{
45
- $ contacts = Contact::on ($ this ->db )
46
- ->withColumns ('has_email ' );
44
+ $ contacts = Contact::on ($ this ->db );
47
45
48
46
$ limitControl = $ this ->createLimitControl ();
49
47
$ paginationControl = $ this ->createPaginationControl ($ contacts );
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 6
6
7
7
use DateTime ;
8
8
use ipl \Orm \Behavior \BoolCast ;
9
- use Icinga \Module \Notifications \Model \Behavior \HasAddress ;
10
9
use ipl \Orm \Behavior \MillisecondTimestamp ;
11
10
use ipl \Orm \Behaviors ;
12
11
use ipl \Orm \Model ;
@@ -70,7 +69,6 @@ public function getSearchColumns(): array
70
69
71
70
public function createBehaviors (Behaviors $ behaviors ): void
72
71
{
73
- $ behaviors ->add (new HasAddress ());
74
72
$ behaviors ->add (new MillisecondTimestamp (['changed_at ' ]));
75
73
$ behaviors ->add (new BoolCast (['deleted ' ]));
76
74
}
Original file line number Diff line number Diff line change 11
11
use ipl \Html \Text ;
12
12
use ipl \Web \Common \BaseListItem ;
13
13
use ipl \Web \Url ;
14
- use ipl \Web \Widget \Icon ;
15
14
use ipl \Web \Widget \Link ;
16
15
17
16
/**
@@ -40,17 +39,6 @@ protected function assembleVisual(BaseHtmlElement $visual): void
40
39
));
41
40
}
42
41
43
- protected function assembleFooter (BaseHtmlElement $ footer ): void
44
- {
45
- $ contactIcons = new HtmlElement ('div ' , Attributes::create (['class ' => 'contact-icons ' ]));
46
-
47
- if (isset ($ this ->item ->has_email ) && $ this ->item ->has_email ) {
48
- $ contactIcons ->addHtml (new Icon ('at ' ));
49
- }
50
-
51
- $ footer ->addHtml ($ contactIcons );
52
- }
53
-
54
42
protected function assembleTitle (BaseHtmlElement $ title ): void
55
43
{
56
44
$ title ->addHtml (new Link (
You can’t perform that action at this time.
0 commit comments