2018-01-02 15:30:50 +01:00
< a * ngIf = "module && module.visibleoncoursepage !== 0" ion-item text-wrap id = "core-course-module-{{module.id}}" class = "core-course-module-handler {{module.handlerData.class}}" ( click ) = " moduleClicked ( $ event ) " [ ngClass ] = " { ' item-media ' : module . handlerData . icon , ' core-not-clickable ' : ! module . handlerData . action | | ! module . uservisible = == false , ' item-dimmed ' : module . visible = == 0 | | module . uservisible = == false } " title = "{{ module.handlerData.title }}" >
2018-01-02 08:47:21 +01:00
< img item-start * ngIf = "module.handlerData.icon" [ src ] = " module . handlerData . icon " alt = "" role = "presentation" >
< core-format-text [ text ] = " module . handlerData . title " > < / core-format-text >
2018-01-02 15:30:50 +01:00
< div item-end * ngIf = "module.uservisible !== false && ((module.handlerData.buttons && module.handlerData.buttons.length > 0) || spinner || module.completionstatus)" class = "buttons core-module-buttons" [ ngClass ] = " { ' core-button-completion ' : module . completionstatus } " >
2018-01-02 12:21:53 +01:00
< core-course-module-completion * ngIf = "module.completionstatus" [ completion ] = " module . completionstatus " [ moduleName ] = " module . name " ( completionChanged ) = " completionChanged . emit ( ) " > < / core-course-module-completion >
2018-01-02 08:47:21 +01:00
2018-01-02 15:30:50 +01:00
< button ion-button icon-only clear * ngFor = "let button of module.handlerData.buttons" [ hidden ] = " button . hidden " ( click ) = " buttonClicked ( $ event , button ) " class = "core-animate-show-hide" [ attr . aria-label ] = " button . label | translate " >
2018-01-02 08:47:21 +01:00
< ion-icon [ name ] = " button . icon " [ ios ] = " button . iosIcon | | ' ' " [ md ] = " button . mdIcon | | ' ' " > < / ion-icon >
< / button >
2018-01-02 15:30:50 +01:00
< ion-spinner * ngIf = "module.handlerData.spinner" class = "core-animate-show-hide" > < / ion-spinner >
2018-01-02 08:47:21 +01:00
< / div >
< div * ngIf = "module.visible === 0 || module.availabilityinfo" >
< ion-badge item-end * ngIf = "module.visible === 0" > {{ 'core.course.hiddenfromstudents' | translate }}< / ion-badge >
< ion-badge item-end * ngIf = "module.availabilityinfo" > < core-format-text [ text ] = " module . availabilityinfo " > < / core-format-text > < / ion-badge >
< / div >
< core-format-text * ngIf = "module.description" maxHeight = "80" [ text ] = " module . description " > < / core-format-text >
< / a >