if (action.target === undefined) {
action.target = '_self';
}
+ action.isHtmlName = true;
}
actions[key] = action;
});
$.each(actions, function (key, action) {
- if(action!=='---------') {
- items[key] = {name: action.label};
- }else{
- items[key]=action;
+ if (action !== '---------') {
+ items[key] = {name: action.label, isHtmlName: true};
+ } else {
+ items[key] = action;
}
});
];
foreach (\App\Models\FluidbookPublication::getDownloadVersions() as $k=>$v) {
$actions['sep_download']='---------';
- if($allVersions || $entry->{'download_'.$k}){
+ if($entry->{'download_'.$k}){
$actions['download_'.$k]=[
'label'=>$v['label'],
'url'=>$basePackage.'/download/'.$k
];
}
}
- if(can('fluibook-publication:download:install-hosting')){
+ if(can('fluibook-publication:download:install-hosting') && ($entry->install_online_hosting || $entry->install_online_ftp || $entry->scorm_enable)){
$actions['sep_install']='---------';
- $actions['install_hosting']=[
- 'label'=>__('Installer sur le serveur d\'hébergement'),
- 'url'=> $basePackage.'/install_hosting/online',
- ];
+ if($entry->install_online_hosting){
+ $actions['install_online_hosting']=[
+ 'label'=>__('Installer sur le serveur d\'hébergement').' <span class="small"><span class="grey">https://hosting.fluidbook.com/</span>'.$entry->install_online_hosting.'</span>',
+ 'url'=> $basePackage.'/install_hosting/online',
+ ];
+ }
- $actions['install_ftp']=[
- 'label'=>__('Installer sur un serveur FTP'),
- 'url'=> $basePackage.'/install_ftp/online',
- ];
+ if($entry->install_online_ftp){
+ $actions['install_online_ftp']=[
+ 'label'=>__('Installer sur un serveur FTP').' <span class="small"><span class="grey">ftp://</span>'.$entry->install_online_ftp.'</span>',
+ 'url'=> $basePackage.'/install_ftp/online',
+ ];
+ }
if($entry->scorm_enable){
$actions['scormcloud']=['label'=>__('Tester sur SCORM Cloud'),