Guest User

Untitled

a guest
May 27th, 2018
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.24 KB | None | 0 0
  1.  
  2. ## para sa date
  3.  
  4. date = Time.parse("January 1, 2008") # date here
  5. @date_str = date.strftime("%B_") + date.day.to_s + date.strftime("_%Y")
  6.  
  7. ##students/paid.html.erb - line 64 & students/unpaid.html.erb - line 78
  8.  
  9. <h4><% unless gs? || hs? %><%= @school.semester %><%= @school.semester == 'Summer' ? ', ' : ' Semester, '%><% end %><%= @skul_yr%></h4>
  10.  
  11. ##main\index.html.erb - line3
  12.  
  13. <h1 style="letter-spacing: 5px; color: #dadada;">News Bulletin SY <%=h @this_school.sy_from %>-<%=h @this_school.sy_to %><%unless gs? || hs?%>, <%=h @this_school.semester %><b><% @this_school.semester == 'Summer' ? '' : ' Semester'%></b><% end %></h1>
  14.  
  15.  
  16.  
  17.  
  18. ##school_classes_controller.rb - line 650
  19. if post == nil
  20. flash[:error] = 'Your file is more than 50kb.'
  21. flash[:notice] = nil
  22. elsif post == 0
  23. flash[:error] = 'There is no file to upload.'
  24. flash[:notice] = nil
  25. elsif post == -1
  26. flash[:error] = 'Unknown file format.'
  27. flash[:notice] = nil
  28. elsif post == -3
  29. flash[:error] = 'Your file is infected.'
  30. flash[:notice] = nil
  31. elsif @fake_file
  32. flash[:error] = 'There is an error on the file you uploaded.'
  33. flash[:notice] = nil
  34. else
  35. flash[:notice] = 'File uploaded.'
  36. flash[:error] = nil
  37. end
Add Comment
Please, Sign In to add comment