PageRenderTime 24ms CodeModel.GetById 20ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 0ms

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