parent
d79fbbdc8b
commit
d44f939d2f
@ -1,5 +0,0 @@ |
||||
de: |
||||
js: |
||||
label_format_xls: "XLS" |
||||
label_format_xls_with_descriptions: "XLS mit Beschreibungen" |
||||
label_format_xls_with_relations: "XLS mit Beziehungen" |
@ -1,5 +0,0 @@ |
||||
en: |
||||
js: |
||||
label_format_xls: "XLS" |
||||
label_format_xls_with_descriptions: "XLS with descriptions" |
||||
label_format_xls_with_relations: "XLS with relations" |
@ -0,0 +1,30 @@ |
||||
module OpenProject::XlsExport::Patches |
||||
module Api::V3::ExportFormats |
||||
def representation_formats |
||||
super + [ |
||||
representation_format_xls, |
||||
representation_format_xls_descriptions, |
||||
representation_format_xls_relations |
||||
] |
||||
end |
||||
|
||||
def representation_format_xls |
||||
representation_format('xls', |
||||
'application/vnd.ms-excel') |
||||
end |
||||
|
||||
def representation_format_xls_descriptions |
||||
representation_format('xls', |
||||
'application/vnd.ms-excel', |
||||
'xls_with_descriptions', |
||||
'show_descriptions=true') |
||||
end |
||||
|
||||
def representation_format_xls_relations |
||||
representation_format('xls', |
||||
'application/vnd.ms-excel', |
||||
'xls_with_relations', |
||||
'show_relations=true') |
||||
end |
||||
end |
||||
end |
Loading…
Reference in new issue