1
0
mirror of https://github.com/LaCasemate/fab-manager.git synced 2025-02-20 14:54:15 +01:00

(bug) unable to show project step image in markdown file

This commit is contained in:
Du Peng 2023-07-04 17:00:13 +02:00
parent 168d804eb9
commit ab5497dcc6
2 changed files with 4 additions and 2 deletions

View File

@ -1,5 +1,7 @@
# Changelog Fab-manager
- Fix a bug: unable to show project step image in markdown file
## v6.0.8 2023 July 03
- Improved projects list filter

View File

@ -24,7 +24,7 @@ class ProjectToMarkdown
md << ReverseMarkdown.convert(project_step.description.to_s)
project_step.project_step_images.each_with_index do |image, i|
md << "![#{I18n.t('app.shared.project.step_image')} #{i+1}](#{full_url(project.project_image.attachment.url)})"
md << "![#{I18n.t('app.shared.project.step_image')} #{i+1}](#{full_url(image.attachment.url)})"
end
end
end
@ -85,4 +85,4 @@ class ProjectToMarkdown
def full_url(path)
"#{Rails.application.routes.url_helpers.root_url[...-1]}#{path}"
end
end
end