mirror of
https://github.com/wekan/wekan.git
synced 2026-02-04 07:31:47 +01:00
Export Board to Zip file
* Extracts Card covers * Labels * Re-works some CSS & HTML * Produces deployable assets (minus WebFonts)
This commit is contained in:
parent
c22eaa26cd
commit
5ef83ab236
5 changed files with 253 additions and 1 deletions
|
|
@ -363,7 +363,7 @@ template(name="boardMenuPopup")
|
|||
template(name="exportBoard")
|
||||
ul.pop-over-list
|
||||
li
|
||||
a(href="{{exportUrl}}", download="{{exportJsonFilename}}")
|
||||
a.download-json-link(href="{{exportUrl}}", download="{{exportJsonFilename}}")
|
||||
i.fa.fa-share-alt
|
||||
| {{_ 'export-board-json'}}
|
||||
li
|
||||
|
|
@ -374,6 +374,10 @@ template(name="exportBoard")
|
|||
a(href="{{exportTsvUrl}}", download="{{exportTsvFilename}}")
|
||||
i.fa.fa-share-alt
|
||||
| {{_ 'export-board-tsv'}}
|
||||
li
|
||||
a.html-export-board
|
||||
i.fa.fa-archive
|
||||
| {{_ 'export-board-html'}}
|
||||
|
||||
template(name="labelsWidget")
|
||||
.board-widget.board-widget-labels
|
||||
|
|
|
|||
|
|
@ -463,6 +463,13 @@ BlazeComponent.extendComponent({
|
|||
},
|
||||
}).register('exportBoardPopup');
|
||||
|
||||
Template.exportBoard.events({
|
||||
'click .html-export-board': async event => {
|
||||
event.preventDefault();
|
||||
await ExportHtml(Popup)();
|
||||
}
|
||||
});
|
||||
|
||||
Template.labelsWidget.events({
|
||||
'click .js-label': Popup.open('editLabel'),
|
||||
'click .js-add-label': Popup.open('createLabel'),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue