Skip to content
Snippets Groups Projects
Commit 6ee051ba authored by Ghislain Loas's avatar Ghislain Loas
Browse files

hotline #32189 fix rt comments

parent 8ac2375e
Branches
Tags
5 merge requests!1267Master,!1266Master,!1265Hotline master,!1263Stable,!1261Hotline#32189 new reviews widget ux
<?php
if ($this->display_all)
echo $this->tag('h1', $this->_('Tous les avis de notices modérés')) .
$this->tagAnchor(['action' => 'avisnotice'], 'Afficher les avis non modérés');
$this->tagAnchor(['action' => 'avisnotice'], $this->_('Afficher les avis non modérés'));
if (!$this->display_all)
echo $this->tag('h1', $this->_('Modération des avis sur les notices')) .
$this->tagAnchor(['action' => 'allreviews'],"Afficher tous les avis modérés");
$this->tagAnchor(['action' => 'allreviews'], $this->_('Afficher tous les avis modérés'));
echo $this->tag('div',
$this->avisBloc('Avis de bibliothécaires ('.$this->nb_bib.')',
$this->avisBloc($this->_('Avis de bibliothécaires (%s)', $this->nb_bib),
$this->list_avis_bibliothecaires,
$this->page,
$this->nb_bib,
0) .
$this->avisBloc('Avis d\'abonnés ('. $this->nb_abo.')',
$this->avisBloc($this->_('Avis d\'abonnés (%s)', $this->nb_abo),
$this->list_avis_utilisateurs,
$this->page,
$this->nb_abo,
1) .
$this->avisBloc('Avis orphelins ('.$this->nb_orphans.')',
$this->avisBloc($this->_('Avis orphelins (%s)', $this->nb_orphans),
$this->list_orphan_reviews,
$this->page,
$this->nb_orphans,
2) .
$this->avisBloc('Avis archivés ('.$this->nb_archived.')',
$this->avisBloc($this->_('Avis archivés (%s)', $this->nb_archived),
$this->list_archived_reviews,
$this->page,
$this->nb_archived,
......
......@@ -24,7 +24,7 @@ class ZendAfi_View_Helper_AvisBloc extends Zend_View_Helper_HtmlElement {
public function avisBloc($label, $list, $page = 0, $nb_items = 0, $index = 0) {
$this->_label = $this->view->_($label);
$this->_label = $label;
$this->_list = $list;
$this->_page = $page;
$this->_nb_items = $nb_items;
......@@ -43,8 +43,8 @@ class ZendAfi_View_Helper_AvisBloc extends Zend_View_Helper_HtmlElement {
protected function renderBlock() {
if(!count($this->_list))
return $this->view->tag('p',
$this->view->_('Aucun avis ' . ($this->_label ? $this->_label . ' ' : '') . 'à modérer.'),
['class' => 'error']);
$this->view->_('Aucun avis %s à modérer.', ($this->_label ? $this->_label . ' ' : '')),
['class' => 'error']);
return $this->injectPager($this->view->partialCycle('modo/_avis_partial.phtml',
'avis',
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment