Skip to content
Snippets Groups Projects
Commit 67513b53 authored by Patrick Barroca's avatar Patrick Barroca :grin:
Browse files

fix #15001 : change google group urls and name in backoffice index

parent 5a38876a
Branches
Tags
6 merge requests!274Master,!272Hotline 6.47,!271Master,!270Hotline 6.47,!269Dev #15141 Merge Agenda From Bron To Opac,!255Hotline#15001 Bokeh Google Group Links
<h2><?php echo $this->traduire('Version');?>&nbsp;:
<a href='http://git.afi-sa.fr/afi/opacce/blob/master/VERSIONS'><?php echo RELEASE_NUMBER ?></a>
</h2>
<h2><?php echo $this->traduire('Paramètres du site');?>&nbsp;:</h2>
<?php
$profil = Class_Profil::getCurrentProfil();
$lien_edit_site = $lien = '';
if ($this->user->isAdmin()) {
$lien = sprintf('<a href="admin?setsiteok=%s" style="margin-left:30px">&raquo;&nbsp;%s&nbsp;&laquo;</a>',
$this->href_site, $this->lien_site);
$lien_edit_site = sprintf('<a href="%s" style="margin-left:30px" >&raquo;&nbsp;Paramétrer&nbsp;&laquo;</a>',
$this->url(array('controller' => 'profil',
'action' => 'accueil',
'id_profil' => $profil->getId())));
}
echo $this->ligneInfos("Etat du site", $this->etat_site . $lien)
. $this->ligneInfos("Profil", $profil->getLibelle() . $lien_edit_site)
. $this->ligneInfos("Thème", $profil->getSkin())
. $this->ligneInfos("Avis Babelio", $this->status_babelio);
if ($this->show_babelio_info) { ?>
<div class='ligne_info'>Le service <a href='http://www.babelio.com/'>Babelio</a> est gratuit pour une durée de
90 jours à compter de l'ouverture du portail. Veuillez contacter AFI pour souscrire à un abonnement.</div>
<?php } ?>
<h2><?php echo $this->traduire('Accès');?>&nbsp;:</h2>
<?php
$acl = new ZendAfi_Acl_AdminControllerRoles();
echo $this->ligneInfos($this->traduire("Utilisateur"), $this->user->getLogin());
echo $this->ligneInfos("Pseudo", $this->user->getNomAff());
echo $this->ligneInfos("Rôle", $acl->getLibelleRole($this->user->getRoleLevel()));
$bib = $this->user->getBib();
$bib = (!$bib) ? 'Portail' : $bib->getLibelle();
echo $this->ligneInfos("Bibliothèque", $bib);
?>
<h2><?php echo $this->traduire('Données en attente de modération');?>&nbsp;:
<a class="rss" href="<?php
echo $this->url(array('module' => 'opac',
'controller' => 'rss',
'action' => 'moderations'));
?>"><img src="<?php echo URL_ADMIN_IMG;?>/rss.gif" alt="RSS"/></a>
</h2>
<?php
$moderer = new Class_Moderer();
$modstats = $moderer->getModerationStats();
foreach ($modstats as $stat) {
$nombre = ($stat['count']) ? $stat['count'] : 'aucun';
echo $this->ligneInfos(sprintf('<a href="%s" style="font-size:10pt">%s</a>',
$stat['url'], $stat['label']),
$nombre);
}
?>
<h2>Un problème ? Contactez le support AFI:</h2>
<?php echo $this->ligneInfos('Par courriel (de préférence)', '<a href="mailto:hotline@afi-sa.fr">hotline@afi-sa.fr</a>') ?>
<?php echo $this->ligneInfos('Par téléphone', '01.60.17.12.34 en semaine, 01.60.37.01.34 le samedi') ?>
<h2>Participez à la communauté !</h2>
<div class='ligne_info'><a onclick="window.open(this.href); return false" href="https://groups.google.com/group/afi-opac2">Google group afi-opac2</a></div>
<div class='ligne_info'><a onclick="window.open(this.href); return false" href="http://bibliopedia.fr/index.php/AFI-OPAC2.0_-_Trucs_et_astuces">Wiki sur Bibliopedia</a></div>
<h2>Forum AFI-OPAC2.0:</h2>
<iframe id="forum_embed"
src="javascript:void(0)"
scrolling="no"
frameborder="0"
width="700"
height="700">
</iframe>
<script type="text/javascript">
document.getElementById("forum_embed").src =
"https://groups.google.com/forum/embed/?place=forum/afi-opac2" +
"&showsearch=true&hl=fr&hideforumtitle=true&showpopout=true";
</script>
<script>
(function() {
function supportsCanvas() {
return !!document.createElement('canvas').getContext;
}
if (!supportsCanvas())
showNotification({message: 'Votre navigateur ne permet pas d\'utiliser pleinement l\'interface d\'administration. Pour un fonctionnement optimal, nous recommandons d\'utiliser une version récente de Firefox, Chrome, Safari ou Internet Explorer',
type: 'error'});
})();
</script>
<h2><?php echo $this->traduire('Version');?>&nbsp;:
<a href='http://git.afi-sa.fr/afi/opacce/blob/master/VERSIONS'><?php echo RELEASE_NUMBER ?></a>
</h2>
<h2><?php echo $this->traduire('Paramètres du site');?>&nbsp;:</h2>
<?php
$profil = Class_Profil::getCurrentProfil();
$lien_edit_site = $lien = '';
if ($this->user->isAdmin()) {
$lien = sprintf('<a href="admin?setsiteok=%s" style="margin-left:30px">&raquo;&nbsp;%s&nbsp;&laquo;</a>',
$this->href_site, $this->lien_site);
$lien_edit_site = sprintf('<a href="%s" style="margin-left:30px" >&raquo;&nbsp;Paramétrer&nbsp;&laquo;</a>',
$this->url(array('controller' => 'profil',
'action' => 'accueil',
'id_profil' => $profil->getId())));
}
echo $this->ligneInfos("Etat du site", $this->etat_site . $lien)
. $this->ligneInfos("Profil", $profil->getLibelle() . $lien_edit_site)
. $this->ligneInfos("Thème", $profil->getSkin())
. $this->ligneInfos("Avis Babelio", $this->status_babelio);
if ($this->show_babelio_info) { ?>
<div class='ligne_info'>Le service <a href='http://www.babelio.com/'>Babelio</a> est gratuit pour une durée de
90 jours à compter de l'ouverture du portail. Veuillez contacter AFI pour souscrire à un abonnement.</div>
<?php } ?>
<h2><?php echo $this->traduire('Accès');?>&nbsp;:</h2>
<?php
$acl = new ZendAfi_Acl_AdminControllerRoles();
echo $this->ligneInfos($this->traduire("Utilisateur"), $this->user->getLogin());
echo $this->ligneInfos("Pseudo", $this->user->getNomAff());
echo $this->ligneInfos("Rôle", $acl->getLibelleRole($this->user->getRoleLevel()));
$bib = $this->user->getBib();
$bib = (!$bib) ? 'Portail' : $bib->getLibelle();
echo $this->ligneInfos("Bibliothèque", $bib);
?>
<h2><?php echo $this->traduire('Données en attente de modération');?>&nbsp;:
<a class="rss" href="<?php
echo $this->url(array('module' => 'opac',
'controller' => 'rss',
'action' => 'moderations'));
?>"><img src="<?php echo URL_ADMIN_IMG;?>/rss.gif" alt="RSS"/></a>
</h2>
<?php
$moderer = new Class_Moderer();
$modstats = $moderer->getModerationStats();
foreach ($modstats as $stat) {
$nombre = ($stat['count']) ? $stat['count'] : 'aucun';
echo $this->ligneInfos(sprintf('<a href="%s" style="font-size:10pt">%s</a>',
$stat['url'], $stat['label']),
$nombre);
}
?>
<h2>Un problème ? Contactez le support AFI:</h2>
<?php echo $this->ligneInfos('Par courriel (de préférence)', '<a href="mailto:hotline@afi-sa.fr">hotline@afi-sa.fr</a>') ?>
<?php echo $this->ligneInfos('Par téléphone', '01.60.17.12.34 en semaine, 01.60.37.01.34 le samedi') ?>
<h2>Participez à la communauté !</h2>
<div class='ligne_info'><a onclick="window.open(this.href); return false" href="https://groups.google.com/group/utilisateurs-bokeh">Google group Bokeh</a></div>
<div class='ligne_info'><a onclick="window.open(this.href); return false" href="http://bibliopedia.fr/index.php/AFI-OPAC2.0_-_Trucs_et_astuces">Wiki sur Bibliopedia</a></div>
<h2>Forum Bokeh :</h2>
<iframe id="forum_embed"
src="javascript:void(0)"
scrolling="no"
frameborder="0"
width="700"
height="700">
</iframe>
<script type="text/javascript">
document.getElementById("forum_embed").src =
"https://groups.google.com/forum/embed/?place=forum/utilisateurs-bokeh" +
"&showsearch=true&hl=fr&hideforumtitle=true&showpopout=true";
</script>
<script>
(function() {
function supportsCanvas() {
return !!document.createElement('canvas').getContext;
}
if (!supportsCanvas())
showNotification({message: 'Votre navigateur ne permet pas d\'utiliser pleinement l\'interface d\'administration. Pour un fonctionnement optimal, nous recommandons d\'utiliser une version récente de Firefox, Chrome, Safari ou Internet Explorer',
type: 'error'});
})();
</script>
......@@ -20,6 +20,29 @@
*/
require_once 'AdminAbstractControllerTestCase.php';
class IndexControllerIndexTest extends Admin_AbstractControllerTestCase {
public function setUp() {
parent::setUp();
$this->dispatch('/admin/index/index', true);
}
/** @test */
public function linkToGoogleGroupShouldBePresent() {
$this->assertXPathContentContains(
'//a[contains(@href, "utilisateurs-bokeh")]', 'Google group Bokeh');
}
/** @test */
public function embedForumShouldBePresent() {
$this->assertXPathContentContains('//script', 'embed/?place=forum/utilisateurs-bokeh');
}
}
class IndexControllerHeartBeatTest extends Admin_AbstractControllerTestCase {
/** @test */
public function adminPageShouldContainsHeartbeatScript() {
......
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