Skip to content

Commit

Permalink
Merge pull request #200 from Icinga/remove-font-files
Browse files Browse the repository at this point in the history
Remove font files
  • Loading branch information
yhabteab authored Aug 21, 2023
2 parents 10818fd + de3d61a commit bde38d2
Show file tree
Hide file tree
Showing 12 changed files with 16 additions and 161 deletions.
32 changes: 0 additions & 32 deletions application/controllers/IconsController.php

This file was deleted.

2 changes: 0 additions & 2 deletions configuration.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,5 +37,3 @@
'label' => $this->translate('SNI'),
'url' => 'sni'
));

$this->provideCssFile('icons.less');
3 changes: 2 additions & 1 deletion library/X509/CertificateDetails.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
use Icinga\Module\X509\Model\X509Certificate;
use ipl\Html\BaseHtmlElement;
use ipl\Html\Html;
use ipl\Web\Widget\IcingaIcon;

/**
* Widget to display X.509 certificate details
Expand Down Expand Up @@ -101,7 +102,7 @@ protected function assemble()
]);

$this->add([
Html::tag('h2', [Html::tag('i', ['class' => 'x509-icon-cert']), $this->cert->subject]),
Html::tag('h2', [new IcingaIcon('certificate'), $this->cert->subject]),
Html::tag('h3', mt('x509', 'Subject Name')),
$subject,
Html::tag('h3', mt('x509', 'Issuer Name')),
Expand Down
17 changes: 5 additions & 12 deletions library/X509/CertificatesTable.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
use Icinga\Module\X509\Model\X509Certificate;
use Icinga\Web\Url;
use ipl\Html\Html;
use ipl\Web\Widget\IcingaIcon;
use ipl\Web\Widget\Icon;

/**
* Table widget to display X.509 certificates
Expand Down Expand Up @@ -37,10 +39,7 @@ protected function createColumns()
return null;
}

return Html::tag(
'i',
['class' => 'x509-icon-ca', 'title' => mt('x509', 'Is Certificate Authority')]
);
return new IcingaIcon('ca-check-circle', ['title' => mt('x509', 'Is Certificate Authority')]);
}
],

Expand All @@ -51,10 +50,7 @@ protected function createColumns()
return null;
}

return Html::tag(
'i',
['class' => 'x509-icon-self-signed', 'title' => mt('x509', 'Is Self-Signed')]
);
return new IcingaIcon('refresh-cert', ['title' => mt('x509', 'Is Self-Signed')]);
}
],

Expand All @@ -65,10 +61,7 @@ protected function createColumns()
return null;
}

return Html::tag(
'i',
['class' => 'icon icon-thumbs-up', 'title' => mt('x509', 'Is Trusted')]
);
return new Icon('thumbs-up', ['title' => mt('x509', 'Is Trusted')]);
}
],

Expand Down
19 changes: 6 additions & 13 deletions library/X509/ChainDetails.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
use Icinga\Module\X509\Model\X509Certificate;
use Icinga\Web\Url;
use ipl\Html\Html;
use ipl\Web\Widget\IcingaIcon;
use ipl\Web\Widget\Icon;

/**
* Table widget to display X.509 chain details
Expand All @@ -24,7 +26,7 @@ public function createColumns()
[
'attributes' => ['class' => 'icon-col'],
'renderer' => function () {
return Html::tag('i', ['class' => 'x509-icon-cert']);
return new IcingaIcon('certificate', ['title' => mt('x509', 'Is a x509 certificate')]);
}
],

Expand All @@ -46,10 +48,7 @@ public function createColumns()
return null;
}

return Html::tag(
'i',
['class' => 'x509-icon-ca', 'title' => mt('x509', 'Is Certificate Authority')]
);
return new IcingaIcon('ca-check-circle', ['title' => mt('x509', 'Is Certificate Authority')]);
}
],

Expand All @@ -60,10 +59,7 @@ public function createColumns()
return null;
}

return Html::tag(
'i',
['class' => 'x509-icon-self-signed', 'title' => mt('x509', 'Is Self-Signed')]
);
return new IcingaIcon('refresh-cert', ['title' => mt('x509', 'Is Self-Signed')]);
}
],

Expand All @@ -74,10 +70,7 @@ public function createColumns()
return null;
}

return Html::tag(
'i',
['class' => 'icon icon-thumbs-up', 'title' => mt('x509', 'Is Trusted')]
);
return new Icon('thumbs-up', ['title' => mt('x509', 'Is Trusted')]);
}
],

Expand Down
6 changes: 2 additions & 4 deletions library/X509/UsageTable.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

use Icinga\Module\X509\Model\X509Certificate;
use Icinga\Web\Url;
use ipl\Html\Html;
use ipl\Web\Widget\Icon;

/**
* Table widget to display X.509 certificate usage
Expand All @@ -27,9 +27,7 @@ public function createColumns()
return $data->chain->valid;
},
'renderer' => function ($valid) {
$icon = $valid ? 'check -ok' : 'block -critical';

return Html::tag('i', ['class' => "icon icon-{$icon}"]);
return new Icon($valid ? 'circle-check' : 'ban', ['class' => $valid ? '-ok' : '-critical']);
}
],

Expand Down
52 changes: 0 additions & 52 deletions public/css/icons.less

This file was deleted.

2 changes: 1 addition & 1 deletion public/css/module.less
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
@cert-segment-color-4: #6A4C93;

.cert-details {
.x509-icon-cert {
.iicon-certificate {
font-size: 5em;
}

Expand Down
Binary file removed public/font/icons.eot
Binary file not shown.
44 changes: 0 additions & 44 deletions public/font/icons.svg

This file was deleted.

Binary file removed public/font/icons.ttf
Binary file not shown.
Binary file removed public/font/icons.woff
Binary file not shown.

0 comments on commit bde38d2

Please sign in to comment.