Make frio more consistent by replacing textual links with icons everywhere. (#5415)
* Make frio more consistent by replacing textual links with icons everywhere I could find them. * [frio] Move profile add link to icon.
This commit is contained in:
committed by
Hypolite Petovan
parent
eded252a40
commit
303aef34f0
@@ -109,8 +109,23 @@ function message_content(App $a)
|
||||
$myprofile = System::baseUrl() . '/profile/' . $a->user['nickname'];
|
||||
|
||||
$tpl = get_markup_template('mail_head.tpl');
|
||||
if ($a->argc > 1 && $a->argv[1] == 'new') {
|
||||
$button = [
|
||||
'label' => L10n::t('Discard'),
|
||||
'url' => '/message',
|
||||
'sel' => 'close',
|
||||
];
|
||||
} else {
|
||||
$button = [
|
||||
'label' => L10n::t('New Message'),
|
||||
'url' => '/message/new',
|
||||
'sel' => 'new',
|
||||
'accesskey' => 'm',
|
||||
];
|
||||
}
|
||||
$header = replace_macros($tpl, [
|
||||
'$messages' => L10n::t('Messages'),
|
||||
'$button' => $button,
|
||||
]);
|
||||
|
||||
if (($a->argc == 3) && ($a->argv[1] === 'drop' || $a->argv[1] === 'dropconv')) {
|
||||
|
||||
Reference in New Issue
Block a user