mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-03-11 07:03:34 +08:00
Remove typo and add hyperlink to inventories
This commit is contained in:
parent
f8b1db7f72
commit
d40096f663
1 changed files with 3 additions and 2 deletions
|
@ -168,7 +168,7 @@ class TeamZipExport < ZipExport
|
||||||
table_name = table.name.presence || 'Table'
|
table_name = table.name.presence || 'Table'
|
||||||
table_name += i.to_s
|
table_name += i.to_s
|
||||||
file = FileUtils.touch(
|
file = FileUtils.touch(
|
||||||
"#{directory}/#{handle_name(table_name)}_#{i}_Step#{step_table.step.position+1}}.csv"
|
"#{directory}/#{handle_name(table_name)}_#{i}_Step#{step_table.step.position+1}.csv"
|
||||||
).first
|
).first
|
||||||
File.open(file, 'wb') { |f| f.write(table.to_csv) }
|
File.open(file, 'wb') { |f| f.write(table.to_csv) }
|
||||||
end
|
end
|
||||||
|
@ -207,7 +207,8 @@ class TeamZipExport < ZipExport
|
||||||
assets[asset] = "#{attach_path}/#{file_name}"
|
assets[asset] = "#{attach_path}/#{file_name}"
|
||||||
|
|
||||||
asset_counter += 1
|
asset_counter += 1
|
||||||
return "#{rel_attach_path}/#{file_name}"
|
rel_path = "#{rel_attach_path}/#{file_name}"
|
||||||
|
return "=HYPERLINK(\"#{rel_path}\", \"#{rel_path}\")"
|
||||||
end
|
end
|
||||||
|
|
||||||
# Generate CSV
|
# Generate CSV
|
||||||
|
|
Loading…
Reference in a new issue