protected function _jobDownloadFluidbook($id, $version, $dest, $options = [], $async = true, $compilerVersion = 'auto')
{
if ($compilerVersion === 'auto') {
- $compilerVersion = ($id < WorkshopMigration::WS3_BOOK_ID) ? 2 : 3;
+ $fb = FluidbookPublication::withoutGlobalScopes()->find($id);
+ $compilerVersion = $fb->version;
}
/** @var $job FluidbookPackage */
if ($compilerVersion === 2) {
public function allowsDownload()
{
- if ($this->version < 3) {
- return false;
- }
if (can('fluidbook-publication:write')) {
return true;
}
--- /dev/null
+.context-menu-item span.small {
+ display: block;
+}
+.context-menu-item span.small span.grey {
+ opacity: 0.6;
+}
+.btn-swal-context {
+ margin: 0 15px;
+ box-shadow: none !important;
+}
+.swal2-icon.swal2-info {
+ border-color: #9ec400 !important;
+ color: #9ec400 !important;
+}
+.context-menu-subtitle {
+ color: #2f2f2f;
+ font-weight: 600;
+}
+/*# sourceMappingURL=context-menu.css.map */
\ No newline at end of file
--- /dev/null
+{"version":3,"sources":["context-menu.less"],"names":[],"mappings":"AAAA,kBACI,KAAI;EACA,cAAA;;AAFR,kBACI,KAAI,MAGA,KAAI;EACA,YAAA;;AAKZ;EACI,cAAA;EACA,2BAAA;;AAGJ,WAAW;EACP,qBAAA;EACA,cAAA;;AAGJ;EACI,cAAA;EACA,gBAAA","file":"context-menu.css"}
\ No newline at end of file
- $actions['delivery']=[
- 'label'=>__('Page de téléchargement'),
- 'url'=>$base.'/delivery',
- ];
-
- $actions['sep_download']='---------';
+// $actions['delivery']=[
+// 'label'=>__('Page de téléchargement'),
+// 'url'=>$base.'/delivery',
+// ];
+//
+// $actions['sep_download']='---------';
foreach (\App\Models\FluidbookPublication::getDownloadVersions() as $k=>$v) {
if($k==='scorm'){
continue;