section image select and basic image show

This commit is contained in:
2022-12-19 09:45:47 +02:00
parent 0aca94cba2
commit 5654bb0743
7 changed files with 49 additions and 16 deletions

View File

@ -1,7 +0,0 @@
module Merged
module ImageHelper
end
end

View File

@ -0,0 +1,26 @@
module Merged
module ImagesHelper
def text_for_index
return section_text if(section_id)
return card_text if(card_id)
"All Images"
end
private
def section_id
params[:section_id]
end
def card_id
params[:card_id]
end
def section_text
section = Section.find(section_id)
"Select image for Section #{section.index} : #{section.header}"
end
end
end