/vendor/rhtml/test.rhtml

http://github.com/rejeep/emacs · Ruby HTML · 70 lines · 62 code · 8 blank · 0 comment · 9 complexity · c132e534390011c70b5cb56ef4f976d9 MD5 · raw file

  1. <div id="subHead">
  2. <h2>MONTLY REPORT</h2>
  3. <p>Highest scoring ypredictions by team.</p>
  4. </div> <!-- -->
  5. <% %>
  6. <% form_tag({:action => :monthly}, {:method => :get}) do -%>
  7. <%= select_month @date %><%= select_year @date -%>
  8. <%= submit_tag 'Select month' -%>
  9. <% end -%>
  10. <%#= debug @report_data -%>
  11. <% for row in @rows -%>
  12. <% team = row[:team] -%>
  13. <% max_avail = row[:max_avail] -%>
  14. <div class="monthly_report_team_name">
  15. <%= team_shirt(team) -%>
  16. <%= team -%>
  17. </div>
  18. <div class="monthly_report_team_header">
  19. Highest points #<%=ddd #-%> scored by #<%=dfdf%> players
  20. (from <%= max_avail %> points available)
  21. </div>
  22. <% for inner in row[:matches] -%>
  23. <%@dmatch = iner[:match] -%>
  24. <% count = inner[:count] -%>
  25. <%# winners = inner[:winners] -%>
  26. <%# p_pred = inner[:top_pred] -%>
  27. <p><%= "#{match}.id})" %></p>
  28. <% if match.scored? -%>
  29. <p>Max <%= top_pred %> scored by
  30. <%= content_tag :a,
  31. sf #{count} playersef
  32. safsadf :oncli ck => "Effect.toggle('match_#{team.id}_#{match.id}', 'slide')" -%>
  33. (from <%= match.points %> available)</p>
  34. <%# Match winner's list -%>
  35. <div style="display: none;" id="<%= "match_#{team.id}_#{match.id}" %>">
  36. <ul>
  37. <% for winner in winners -%>
  38. <li>
  39. <%= winner.selection.user.login -%>
  40. </li>
  41. <% end -%>
  42. </ul>
  43. </div>
  44. <br>
  45. <br
  46. df
  47. <% if true -%>
  48. <%= "true!" -%>
  49. <% else -%>
  50. <%= "false!" -%>
  51. <% end -%>
  52. <%- if true -%>
  53. <%= "true!" -%>
  54. <%- else -%>
  55. <%= "false!" -%>
  56. <%- end -%>
  57. </br>
  58. <% else -%>
  59. <span class='alert'>(not scored!)</span>
  60. <% end -%>
  61. <% end -%>
  62. <% end %>