Show More
Commit Description:
add golden submit button...
Commit Description:
add golden submit button - When the user submit more than or equal to 100 times the submit button will turn gold - Add golden-btn tag in applications.css.scss
References:
File last commit:
Show/Diff file:
Action:
app/helpers/main_helper.rb | 14 lines | 375 B | text/x-ruby | RubyLexer |
module MainHelper
def link_to_description_if_any(name, problem)
if !problem.url.blank?
return link_to name, problem.url
elsif !problem.description_filename.blank?
basename, ext = problem.description_filename.split('.')
return link_to name, download_task_path(problem.id,basename,ext), target: '_blank'
else
return ''
end
end
end