Show More
Commit Description:
utf8mb4
Commit Description:
utf8mb4
File last commit:
Show/Diff file:
Action:
app/helpers/main_helper.rb | 14 lines | 375 B | text/x-ruby | RubyLexer |
pramook
initial commit...
r0 module MainHelper
better user import
r798 def link_to_description_if_any(name, problem)
Jittat Fakcharoenphol
imports task description as pdf
r271 if !problem.url.blank?
better user import
r798 return link_to name, problem.url
Jittat Fakcharoenphol
imports task description as pdf
r271 elsif !problem.description_filename.blank?
basename, ext = problem.description_filename.split('.')
better user import
r798 return link_to name, download_task_path(problem.id,basename,ext), target: '_blank'
Jittat Fakcharoenphol
imports task description as pdf
r271 else
return ''
end
end
pramook
initial commit...
r0 end