X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;ds=sidebyside;f=modules%2Fbanana%2Fbanana.inc.php;h=722da8f99910b18eda976f6733eab373be853da2;hb=cbc1b9c058fa1abe290822d613359fb07f1b1655;hp=ddc480164099085aeea39a014948e726e41e3af8;hpb=9a102e9d18c1d8eb3607a4d38b4c3bfa9c34b9b4;p=platal.git diff --git a/modules/banana/banana.inc.php b/modules/banana/banana.inc.php index ddc4801..722da8f 100644 --- a/modules/banana/banana.inc.php +++ b/modules/banana/banana.inc.php @@ -27,7 +27,7 @@ function hook_formatDisplayHeader($_header, $_text) { $id = $banana->post->headers['x-org-id']; $_text = formatFrom($_text); return $_text . ' ' - . 'fiche'; + . ''; } } @@ -41,6 +41,21 @@ function hook_shortcuts() 'Préférences')); } +function hook_browsingAction() +{ + global $platal, $banana; + $page = $banana->state['page']; + if ((@$page != 'message' && @$page != 'group' && @$page != 'forums') + || $banana->profile['autoup']) { + return null; + } + return '

' + . 'path . '", "updateall", 1)\'>' + . 'Marquer tous les messages comme lus' + . '' + . '

'; +} + function hook_makeLink($params) { global $globals; $base = $globals->baseurl . '/banana'; @@ -96,9 +111,9 @@ function hook_getSubject(&$subject) $subject = $matches[1]; global $banana; if ($banana->state['group'] == $matches[2]) { - return ' [=> ' . $matches[2] . ']'; + return ' [=> ' . $matches[2] . ']'; } else { - return ' [=> ' . makeHREF(array('group' => $matches[2]), $matches[2]) . ']'; + return ' [=> ' . makeHREF(array('group' => $matches[2]), $matches[2]) . ']'; } } return null;