|
|
@ -9,22 +9,24 @@ module OpenProject::XlsExport::Patches |
|
|
|
end |
|
|
|
end |
|
|
|
|
|
|
|
|
|
|
|
def representation_format_xls |
|
|
|
def representation_format_xls |
|
|
|
representation_format('xls', |
|
|
|
representation_format 'xls', |
|
|
|
'application/vnd.ms-excel') |
|
|
|
mime_type: 'application/vnd.ms-excel' |
|
|
|
end |
|
|
|
end |
|
|
|
|
|
|
|
|
|
|
|
def representation_format_xls_descriptions |
|
|
|
def representation_format_xls_descriptions |
|
|
|
representation_format('xls', |
|
|
|
representation_format 'xls-with-descriptions', |
|
|
|
'application/vnd.ms-excel', |
|
|
|
i18n_key: 'xls_with_descriptions', |
|
|
|
'xls_with_descriptions', |
|
|
|
mime_type: 'application/vnd.ms-excel', |
|
|
|
'show_descriptions=true') |
|
|
|
format: 'xls', |
|
|
|
|
|
|
|
url_query_extras: 'show_descriptions=true' |
|
|
|
end |
|
|
|
end |
|
|
|
|
|
|
|
|
|
|
|
def representation_format_xls_relations |
|
|
|
def representation_format_xls_relations |
|
|
|
representation_format('xls', |
|
|
|
representation_format 'xls-with-relations', |
|
|
|
'application/vnd.ms-excel', |
|
|
|
i18n_key: 'xls_with_relations', |
|
|
|
'xls_with_relations', |
|
|
|
mime_type: 'application/vnd.ms-excel', |
|
|
|
'show_relations=true') |
|
|
|
format: 'xls', |
|
|
|
|
|
|
|
url_query_extras: 'show_relations=true' |
|
|
|
end |
|
|
|
end |
|
|
|
end |
|
|
|
end |
|
|
|
end |
|
|
|
end |
|
|
|