Skip to content

Commit

Permalink
Improve crl and certificate display
Browse files Browse the repository at this point in the history
  • Loading branch information
oliwel committed Jan 30, 2015
1 parent 5161080 commit 7f5b057
Show file tree
Hide file tree
Showing 12 changed files with 218 additions and 144 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ main:
entries:
- key: information!issuer
label: CA certificates
- key: information!crl
- key: crl!index
label: Revocation lists

- key: certificate!search
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ main:
entries:
- key: information!issuer
label: CA certificates
- key: information!crl
- key: crl!index
label: Revocation lists


Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ main:
entries:
- key: information!issuer
label: CA certificates
- key: information!crl
- key: crl!index
label: Revocation lists

- key: certificate!search
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ main:
entries:
- key: information!issuer
label: CA certificates
- key: information!crl
- key: crl!index
label: Revocation lists

- key: certificate!search
Expand Down
2 changes: 1 addition & 1 deletion core/htdocs_source/style/oxi-grid.css
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ tr.gridrow-issued > td {}
tr.gridrow-issued:hover > td {background-color: #E7E7E7 !important;}
tr.gridrow-expired > td {background-color:#fcf8e3 !important;}
tr.gridrow-expired:hover > td {background-color: #E7E7E7 !important;}
tr.gridrow-revoked > td {background-color: ##f2dede !important;}
tr.gridrow-revoked > td {background-color: #f2dede !important;}
tr.gridrow-revoked:hover > td {background-color: #e6c1c7 !important;}

/* ca certificat/token specific classes: online, offline, upcomging */
Expand Down
28 changes: 9 additions & 19 deletions core/i18n/en_GB/openxpki.po
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ msgstr ""
"Project-Id-Version: OpenXPKI 0.9\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2004-09-08 14:02+0200\n"
"PO-Revision-Date: 2015-01-30 11:08+0100\n"
"PO-Revision-Date: 2015-01-30 14:55+0100\n"
"Last-Translator: OpenXPKI Team <i18n@openxpki.org>\n"
"Language-Team: OpenXPKI developers list <openxpki-devel@lists.sourceforge."
"net>\n"
Expand Down Expand Up @@ -131,19 +131,6 @@ msgstr ""
msgid "I18N_OPENXPKI_BACKEND_OPENSSL_INSTANTIATE_CLI_FAILED"
msgstr "OpenXPKI::Crypto::Backend::OpenSSL::__init_cli() failed"

# Delete this!!!
msgid "I18N_OPENXPKI_CERT_"
msgstr "This message should never be displayed. Please delete the translation."

msgid "I18N_OPENXPKI_CERT_EXPIRED"
msgstr "Expired"

msgid "I18N_OPENXPKI_CERT_ISSUED"
msgstr "Issued"

msgid "I18N_OPENXPKI_CERT_REVOKED"
msgstr "Revoked"

# Should probably be deleted. It appears only in a commented-out block of code.
#, fuzzy
msgid "I18N_OPENXPKI_CLIENT_CLI_INIT_AUTH_STACK_ENTER_ID"
Expand Down Expand Up @@ -3933,16 +3920,16 @@ msgid "I18N_OPENXPKI_UI_CERT_STATUS_CRL_PENDING"
msgstr "revocation pending"

msgid "I18N_OPENXPKI_UI_CERT_STATUS_EXPIRED"
msgstr "expired"
msgstr "Expired"

msgid "I18N_OPENXPKI_UI_CERT_STATUS_ISSUED"
msgstr "issued"
msgstr "Issued"

msgid "I18N_OPENXPKI_UI_CERT_STATUS_REVOKED"
msgstr "revoked"
msgstr "Revoked"

msgid "I18N_OPENXPKI_UI_CERT_STATUS_VALID"
msgstr "valid"
msgstr "Valid"

msgid "I18N_OPENXPKI_UI_COMMENT"
msgstr "Comment"
Expand Down Expand Up @@ -3987,7 +3974,10 @@ msgid "I18N_OPENXPKI_UI_DOWNLOAD_SHORT_PEM"
msgstr "PEM (CRT)"

msgid "I18N_OPENXPKI_UI_DOWNLOAD_TXT"
msgstr "TXT format"
msgstr "Download text (TXT) format"

msgid "I18N_OPENXPKI_UI_DOWNLOAD_SHORT_TXT"
msgstr "Text (txt)"

msgid "I18N_OPENXPKI_UI_ERROR_VALIDATOR_VALIDITY_TIME_FAILED"
msgstr "The entered date/time could not be validated."
Expand Down
20 changes: 10 additions & 10 deletions core/server/OpenXPKI/Client/UI/Certificate.pm
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ sub init_detail {
{ label => 'Identifier', value => $cert_identifier },
{ label => 'not before', value => $cert->{BODY}->{NOTBEFORE}, format => 'timestamp' },
{ label => 'not after', value => $cert->{BODY}->{NOTAFTER}, format => 'timestamp' },
{ label => 'Status', value => { label => i18nGettext('I18N_OPENXPKI_CERT_'.$cert->{STATUS}) , value => $cert->{STATUS} }, format => 'certstatus' },
{ label => 'Status', value => { label => i18nGettext('I18N_OPENXPKI_UI_CERT_STATUS_'.$cert->{STATUS}) , value => $cert->{STATUS} }, format => 'certstatus' },
{ label => 'Issuer', format=>'link', value => { label => $cert->{BODY}->{ISSUER}, page => 'certificate!chain!identifier!'. $cert_identifier } },
);

Expand Down Expand Up @@ -469,7 +469,7 @@ sub action_search {
my $self = shift;
my $args = shift;

my $query = { LIMIT => 100 }; # Safety barrier
my $query = { ENTITY_ONLY => 1, LIMIT => 100 }; # Safety barrier
foreach my $key (qw(subject issuer_dn profile)) {
my $val = $self->param($key);
if (defined $val && $val ne '') {
Expand Down Expand Up @@ -531,7 +531,7 @@ sub action_search {
push @result, [
$item->{CERTIFICATE_SERIAL},
$self->_escape($item->{SUBJECT}),
$item->{EMAIL} || '',
{ label => i18nGettext('I18N_OPENXPKI_UI_CERT_STATUS_'.$item->{STATUS}) , value => $item->{STATUS} },
$item->{NOTBEFORE},
$item->{NOTAFTER},
$self->_escape($item->{ISSUER_DN}),
Expand Down Expand Up @@ -567,13 +567,13 @@ sub action_search {
target => 'tab',
}],
columns => [
{ sTitle => "serial"},
{ sTitle => "subject" },
{ sTitle => "email" },
{ sTitle => "notbefore", format => 'timestamp' },
{ sTitle => "notafter", format => 'timestamp' },
{ sTitle => "issuer"},
{ sTitle => "identifier"},
{ sTitle => "Serial"},
{ sTitle => "Subject" },
{ sTitle => "Status", format => 'certstatus' },
{ sTitle => "Notbefore", format => 'timestamp' },
{ sTitle => "Notafter", format => 'timestamp' },
{ sTitle => "Issuer"},
{ sTitle => "Identifier"},
{ sTitle => "_className"},
],
data => \@result
Expand Down

0 comments on commit 7f5b057

Please sign in to comment.