Skip to content

Commit 1db24f8

Browse files
committed
Show cert descriptions in server page
1 parent 51a8944 commit 1db24f8

File tree

2 files changed

+13
-1
lines changed

2 files changed

+13
-1
lines changed

lib/Brass/Config/Cert.pm

+7
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,12 @@ has type => (
5353
builder => sub { $_[0]->_rset && $_[0]->_rset->type; },
5454
);
5555

56+
has description => (
57+
is => 'rw',
58+
lazy => 1,
59+
builder => sub { $_[0]->_rset && $_[0]->_rset->description; },
60+
);
61+
5662
has expiry => (
5763
is => 'rw',
5864
isa => Maybe[DateAndTime],
@@ -158,6 +164,7 @@ sub inflate_result {
158164
type => $data->{type},
159165
expiry => $expiry,
160166
usedby => $data->{usedby},
167+
description => $data->{description},
161168
filename => $data->{filename},
162169
file_user => $data->{file_user},
163170
file_group => $data->{file_group},

views/config/server.tt

+6-1
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,12 @@
8888
</a>
8989
</td>
9090
[% END %]
91-
<td>[% cert.cert.cn | html %]</td>
91+
<td>
92+
[% cert.cert.cn | html %]
93+
[% IF cert.cert.description %]
94+
([% cert.cert.description | html %])
95+
[% END %]
96+
</td>
9297
<td>[% cert.cert.type | html %]</td>
9398
<td>[% cert.cert.usedby | html %]</td>
9499
<td>[% cert.use.name | html %]</td>

0 commit comments

Comments
 (0)