Skip to content

Commit

Permalink
Revert some changes
Browse files Browse the repository at this point in the history
  • Loading branch information
AlecRust committed Aug 11, 2022
1 parent d66ae44 commit a5de3f8
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 1 deletion.
8 changes: 8 additions & 0 deletions build/scss/admin.scss
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,14 @@
width: 30%;
}

.column-more_info {
width: 10%;
}

.column-more_info {
width: 10%;
}

.nav-tab-wrapper {
padding-top: 20px;
}
Expand Down
4 changes: 4 additions & 0 deletions languages/WpMailCatcher-fr_FR.po
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,10 @@ msgstr "Renvoyer"
msgid "Export"
msgstr "Exporter"

#: src/MailAdminTable.php:73
msgid "More Info"
msgstr "Plus d’information"

#: src/MailAdminTable.php:80
msgid "Sent"
msgstr "Envoyé"
Expand Down
4 changes: 4 additions & 0 deletions languages/WpMailCatcher.pot
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,10 @@ msgctxt "%s = human-readable time difference"
msgid "%s"
msgstr ""

#: ../../src/MailAdminTable.php:63
msgid "More Info"
msgstr ""

#: ../../src/MailAdminTable.php:71 ../../src/Views/NewMessageModal.php:25
msgid "To"
msgstr ""
Expand Down
8 changes: 7 additions & 1 deletion src/MailAdminTable.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,11 @@ function column_cb($item)
);
}

function column_more_info($item)
{
return '<a href="#" class="button button-secondary" data-toggle="modal" data-target="#' . $item['id'] . '">' . __('More Info' ,'WpMailCatcher') . '</a>';
}

function get_columns()
{
$columns = [
Expand All @@ -66,7 +71,8 @@ function get_columns()
'email_to' => __('To', 'WpMailCatcher'),
'subject' => __('Subject', 'WpMailCatcher'),
'email_from' => __('From', 'WpMailCatcher'),
'time' => __('Sent', 'WpMailCatcher')
'time' => __('Sent', 'WpMailCatcher'),
'more_info' => ''
];

return $columns;
Expand Down

0 comments on commit a5de3f8

Please sign in to comment.