2014 Men's Skiing Schedule

Date Teams Event Results Links Notes
 
January
Thu. 9
There was a problem with a Velocity script
Pageschedule-template
ErrorInvocation of method 'get' in class java.util.Collections$CheckedRandomAccessList threw exception java.lang.ArrayIndexOutOfBoundsException: Array index out of range: 0 at schedule-template[line 471, column 36]
Page source:
1: #if ($browser.getIphone() || $browser.getMobile())
2: ## MOBILE
3: 	#set ($includeURL = "${page.url}?tmpl=mobile-schedule-template&$!request.getQueryString()")
4: 	$website.includeAgain($includeURL)
5: 	#stop
6: #else
7: ## DESKTOP
8: 
9: $website.addCss("/info/schedule-styles.css")
10: 
11: ## PICK UP OPTIONS
12: $website.include("options")
13: #set ($options = $request.getAttribute("options"))
14: 
15: ## CONFERENCE TEAM LINKING
16: #set ($confmemberIDs = $page.teamIDs)
17: 
18: ## DEFAULT SETTINGS
19: #set ($linkTarget = "_self")
20: #set ($restrictLinks = true)
21: 
22: #if ($options.get("schedule_restrict_links") == false)
23: 	#set ($restrictLinks = false)
24: #end
25: 
26: #set ($showVsAt = true)
27: #if ($options.get("schedule_hide_vs_at") == true)
28: 	#set ($showVsAt = false) 
29: #end
30: 
31: #set ($showTeamStats = true)
32: #if ($options.get("schedule_hide_team_stats") == true)
33: 	#set ($showTeamStats = false)
34: #end
35: 
36: #set ($showExhibitionGames = true)
37: #if ($options.get("schedule_hide_exhibition_events") == true)
38: 	#set ($showExhibitionGames = false)
39: #end
40: 
41: #set ($showRegularGames = true)
42: #if ($request.getParameter("confonly").equals("1"))
43: 	#set ($showRegularGames = false)
44: #end
45: 
46: #set ($confNotation = "*")
47: #set ($divisionNotation = "^")
48: #set ($exhibitionNotation = "#")
49: 
50: ## MACROS
51: 
52: #macro (renderEventLinks $event)
53:   #set ($linksCounter = 0)
54:   #foreach ($link in $event.links)
55:     #if ($restrictLinks && $event.statusCode >= 0 && (
56:       $link.name.equalsIgnoreCase("live stats") || 
57:       $link.name.equalsIgnoreCase("preview") || 
58:       $link.name.equalsIgnoreCase("directions") || 
59:       $link.name.equalsIgnoreCase("tickets") || 
60:       $link.name.equalsIgnoreCase("audio")))
61:     #else
62:       #set ($linksCounter = $linksCounter + 1)
63: 								
64:       #if ($linksCounter > 1)<span class="sep">&nbsp;|&nbsp;</span>#end
65: 								
66:       <a href="$link.url" class="e_link e_link_${link.getMapType().toLowerCase()}" #if ($website.isExternalLink($link.url)) target="_blank" #else target="${linkTarget}" #end>$link.name</a>
67:     #end
68:   #end
69: #end
70: 
71: #macro (displayNotation $type)
72:   #if ($type == "exhibition")
73:     <span class="notation" title="Exhibition">$exhibitionNotation</span>
74:   #elseif ($type == "conference")
75:     <span class="notation" title="Conference">$confNotation</span>
76:   #elseif ($type == "division")
77:     <span class="notation" title="Division">$divisionNotation</span>
78:   #end
79: #end
80: 
81: ## END MACROS
82: 
83: <div id="schedule-list" class="schedule-list clearfix">
84: 
85: $wiki
86: 
87: #set ($scheduleLayout = 1)
88: #if ($tool.math.toInteger($options.get("schedule_default_layout")) > 1)
89:   #set ($scheduleLayout = $tool.math.toInteger($options.get("schedule_default_layout")))
90: #end
91: 
92: ## SET DEFAULT LABELS AND FIELDS FOR NUMERIC vs. NON-NUMERIC SCHEDULES
93: #if ($schedule.team.length() > 0)
94: ## TEAM VIEW
95:   #if($schedule.numericResults) ## team h2h
96:     #if ($scheduleLayout == 1)
97:       #set ($scheduleFields = ["date", "opponent+neutralsite", "notes", "result", "status", "links"])
98:       #set ($scheduleLabels = ["Date", "Opponent", "Notes", "Result", "Status", "Links"])
99:     #elseif ($scheduleLayout == 2)	
100:       #set ($scheduleFields = ["date", "opponent+neutralsite", "result", "status", "links", "_notes"])
101:       #set ($scheduleLabels = ["Date", "Opponent", "Result", "Status", "Links", "Notes"])
102: 	#elseif ($scheduleLayout == 3)
103: 	  #set ($scheduleFields = ["date", "opponent", "notes+neutralsite", "result", "status", "links"])
104:       #set ($scheduleLabels = ["Date", "Opponent", "Notes", "Result", "Status", "Links"])
105:     #end
106:   #else
107:     #if ($scheduleLayout == 1)
108:       #set ($scheduleFields = ["date", "opponent+neutralsite", "notes", "status", "team_away_result", "links"])
109:       #set ($scheduleLabels = ["Date", "Event", "Notes", "Status", "Result", "Links"])
110:     #elseif ($scheduleLayout == 2)
111:       #set ($scheduleFields = ["date", "opponent", "status", "team_away_result", "links", "_notes+neutralsite"])
112:       #set ($scheduleLabels = ["Date", "Event", "Status", "Result", "Links", "Notes"])
113:     #elseif ($scheduleLayout == 3)
114:       #set ($scheduleFields = ["date", "opponent+neutralsite",  "status", "team_away_result", "links", "_notes"])
115:       #set ($scheduleLabels = ["Date", "Event", "Status", "Result", "Links", "Notes"])
116:     #end
117:   #end
118: #else
119: ## CONFERENCE VIEW
120:   #if($schedule.numericResults) ## conf h2h
121:     #if ($scheduleLayout == 1)
122:       #set ($scheduleFields = ["date", "team_away", "team_away_result", "team_home", "team_home_result", "status", "links", "_notes+neutralsite"])
123:       #set ($scheduleLabels = ["Date", "Away", "", "Home", "", "Status", "Links", "Notes"])
124:     #elseif ($scheduleLayout == 2)
125:       #set ($scheduleFields = ["_date", "team_away+team_away_result", "team_home+team_home_result", "notes+neutralsite", "status", "links"])
126:       #set ($scheduleLabels = ["Date", "Away", "Home", "Notes", "Status", "Links"])
127: 	#elseif ($scheduleLayout == 3)
128: 	  #set ($scheduleFields = ["date", "team_away", "team_away_result", "team_home", "team_home_result", "notes+neutralsite", "status", "links"])
129:       #set ($scheduleLabels = ["Date", "Away", "", "Home", "", "Notes", "Status", "Links"])
130:     #end
131:   #else
132:     #if ($scheduleLayout == 1)
133:       #set ($scheduleFields = ["date", "team_away", "neutralsite", "status", "team_away_result", "links", "_notes"])
134:       #set ($scheduleLabels = ["Date", "Teams", "Event", "Status", "Results", "Links", "Notes"])
135:     #elseif ($scheduleLayout == 2)
136:       #set ($scheduleFields = ["date", "team_away", "neutralsite", "team_away_result", "links", "_notes"])
137:       #set ($scheduleLabels = ["Date", "Teams", "Event", "Results", "Links", "Notes"])
138: 	#elseif ($scheduleLayout == 3)
139: 	  #set ($scheduleFields = ["date", "team_away", "neutralsite", "team_away_result", "links", "notes"])
140:       #set ($scheduleLabels = ["Date", "Teams", "Event", "Results", "Links", "Notes"])
141:     #end
142:   #end
143: #end
144: 
145: ## SET FIELDS AND LABELS FROM OPTIONS IF AVAILABLE AND SANITIZE THEM
146: #if ($options.get("schedule_fields") && $options.get("schedule_labels"))
147:   #set ($scheduleFields = $options.get("schedule_fields"))
148:   #set ($scheduleFields = $scheduleFields.split(","))
149:   #foreach ($field in $scheduleFields)
150:     #set ($field = $field.trim())
151:     $tool.list.set($scheduleFields, $tool.math.sub($velocityCount, 1), $field)
152:   #end
153: 
154:   #set ($scheduleLabels = $options.get("schedule_labels"))
155:   #set ($scheduleLabels = $scheduleLabels.split(","))
156:   #foreach ($label in $scheduleLabels)
157:     #set ($label = $label.trim())
158:     #if ($label.equals("-"))
159:       #set ($label = "&nbsp;")
160:     #end
161:     $tool.list.set($scheduleLabels, $tool.math.sub($velocityCount, 1), $label)
162:   #end
163:   
164:   #if ($tool.list.size($scheduleFields) != $tool.list.size($scheduleLabels))
165: 	<h2 style="color:#FF0000">Error: Size of the fields and labels must match in options</h2>
166: 	#stop
167:   #end
168:   
169: #end
170: 
171: #set ($dateFormat = "EEE. d")
172: #set ($groupByMonths = true)
173: 
174: #if ($options.get("schedule_date_format").equals("Thu. 3"))
175:   #set ($dateFormat = "EEE. d")
176: #elseif ($options.get("schedule_date_format").equals("Mar. 15"))
177:   #set ($dateFormat = "MMM. dd")
178: #elseif ($options.get("schedule_date_format").equals("Mar. 15, 2013"))
179:   #set ($dateFormat = "MMM. dd, yyyy")
180: #elseif ($options.get("schedule_date_format").equals("March 15, 2013"))
181:   #set ($dateFormat = "MMMM dd, yyyy")
182: #elseif ($options.get("schedule_date_format").equals("March 15"))
183:   #set ($dateFormat = "MMMM dd")
184: #elseif ($options.get("schedule_date_format").equals("03/15/2013"))
185:   #set ($dateFormat = "MM/dd/yyyy")
186: #elseif ($options.get("schedule_date_format").equals("03/15"))
187:   #set ($dateFormat = "MM/dd")
188: #elseif ($options.get("schedule_date_format").equals("Thursday, March 15, 2013"))
189:   #set ($dateFormat = "EEEE, MMMM dd, yyyy")
190: #elseif ($options.get("schedule_date_format").equals("Thursday, Mar. 15, 2013"))
191:   #set ($dateFormat = "EEEE, MMM. dd, yyyy")
192: #elseif ($options.get("schedule_date_format").equals("Thursday, March 15"))
193:   #set ($dateFormat = "EEEE, MMMM dd")
194: #elseif ($options.get("schedule_date_format").equals("Thursday, Mar. 15"))
195:   #set ($dateFormat = "EEEE, MMM. dd")
196: #elseif ($options.get("schedule_date_format").equals("Thu., March 15"))
197:   #set ($dateFormat = "EEE., MMMM dd")
198: #elseif ($options.get("schedule_date_format").equals("Thu., Mar. 15"))
199:   #set ($dateFormat = "EEE., MMM. dd")
200: #end
201: 
202: #if ($options.get("schedule_group_by_months") == false)
203:   #set ($groupByMonths = false)
204: #end
205: 
206: #set ($resultFormat = "AP1")
207: #if ($options.get("schedule_result_format").equals("L, 2-1"))
208:   #set ($resultFormat = "AP1")
209: #elseif ($options.get("schedule_result_format").equals("L, 1-2"))
210:   #set ($resultFormat = "AP2")
211: #end
212: 
213: ## LOOK TO INCLUDE ARCHIVE SCHEDULES DROPDOWN
214: $website.include("navbar-schedule-archive?tmpl=schedule-archive-list-template&selected=${tool.esc.url($page.url)}")
215: 
216: ## LOOK TO INCLUDE SCHEDULE NOTE
217: #set ($scheduleNoteURL = "${page.url}-note")
218: #if ($website.exists($scheduleNoteURL))
219:   $website.include($scheduleNoteURL)
220: #end
221: 
222: #if ($page.title.length() > 0)
223:   #if ($schedule.team.length() > 0 && $request.getParameter("teamId"))
224:     <h1>$page.title : $schedule.team</h1>
225:   #else
226:     <h1>$page.title</h1>
227:   #end
228: #end
229: 
230: #if ($schedule.team.length() > 0 && $schedule.numericResults)
231: <div class="schedule-record clearfix">
232: <table>
233: <tr>
234:   <th>Overall</th>
235:   <th>Pct.</th>
236:   <th>Conf.</th>
237:   <th>Pct.</th>
238:   <th>Streak</th>
239:   <th>Home</th>
240:   <th>Away</th>
241:   <th>Neutral</th>
242: </tr>
243: <tr>
244:   <td>$schedule.Record</td>
245:   #set ($number = $schedule.Record.winPercentage)
246:   <td>$formatter.formatNumber($number, "#.000")</td>
247:   <td>$schedule.ConferenceRecord</td>
248:   #set ($confnumber = $schedule.conferenceRecord.winPercentage)
249:   <td>$formatter.formatNumber($confnumber, "#.000")</td>
250:   <td>$schedule.streak</td>
251:   <td>$schedule.homeRecord</td>
252:   <td>$schedule.awayRecord</td>
253:   <td>$schedule.neutralRecord</td>
254: </tr>
255: </table>
256: </div>
257: #end
258: 
259: ## SHOW SPLITS DATA FOR TEAM VIEW H2H SCHEDULES
260: #if ($showTeamStats && $schedule.team.length() > 0 && $schedule.numericResults)
261:   #set ($sectionPath = $page.sectionPage.url)
262:   #set ($teamInfoFilename = $schedule.team.toLowerCase().replace(" ", ""))
263:   #set ($teamStatsPath = "${sectionPath}/teams/${teamInfoFilename}")
264:     
265:   #if ($website.exists($teamStatsPath))
266:     ## HACK TO GET TEAM SPLITS
267: 	$website.includeAgain("${teamStatsPath}?tmpl=team-highlight-stats-template")
268:     #set ($splits = $!request.getAttribute("team_splits"))
269:     #set ($highlights = $!request.getAttribute("team_highlights"))
270:     #set ($formats = $!request.getAttribute("formats"))
271: 		
272:     <div class="schedule-record clearfix">
273:     <table>
274: 	<tr>
275: 	#foreach ($highlight in $highlights.keySet())
276:       <th>$!highlights.get($highlight)</th>
277:     #end
278: 	</tr>
279:     <tr>
280:     #foreach ($highlight in $highlights.keySet())
281:       #set ($value = "-")
282:       #set ($value = $!formatter.formatNumber($splits.get($highlight), $formats.get($highlight)))
283:       <td>#if ($value.length() > 0) $value #else - #end</td>
284:     #end
285:     </tr>
286:     </table>
287:     </div>
288:   #end
289: #end
290: 
291: ## FILTER LINKS FOR CONFERENCE SCHEDULES (don't print on team view)
292: #if ($schedule.team.length() == 0 && $schedule.numericResults) ## ONLY H2H SCHEDULES
293: <div class="conf-links">
294: 	
295:   #if ($showRegularGames)
296:     <a href="${page.url}?confonly=1">Conference Schedule</a>
297:   #else 
298:     <a href="${page.url}">Composite Schedule</a>
299:   #end
300: 	
301:   ## LINK TO STANDINGS IF PRESENT
302:   #if($website.exists("standings")) | <a href="standings">Standings</a>#end
303: 
304: </div>
305: #end ## numeric
306: 
307: <div class="schedule-content clearfix">
308: <table>
309: 	
310: <tr>
311: #set ($colCount = 0)
312: #foreach ($label in $scheduleLabels)
313:   #if (!$tool.list.get($scheduleFields, $tool.math.sub($velocityCount, 1)).startsWith("_"))
314:     <th>$label</th>
315: 	#set ($colCount = $colCount + 1)
316:   #end
317: #end
318: </tr>
319: 	
320: #set ($lastdate = "")
321: #set ($lastMonth = "")
322: #set ($counter = 0)
323: #set ($showConfNotation = false)
324: #set ($showExhibitionNotation = false)
325: #set ($showHomeNotation = false)
326: #set ($showDivisionNotation = false)
327: 	
328: #foreach ($event in $schedule.events)
329: #if ($event.overall || $showExhibitionGames)
330: #if ($event.conference || $showRegularGames)
331:         				
332:   #set ($theDate = $formatter.formatDate($event.date, $dateFormat))
333:   #set ($theMonth = $formatter.formatDate($event.date, "MMMM"))
334:         	
335:   #if ($groupByMonths && !$lastMonth.equals($theMonth))
336:     <tr class="month-sep"><td colspan="${colCount}">&nbsp;</td></tr> ## show empty row
337:     <tr class="month-title"><td colspan="${colCount}">$theMonth</td></tr>
338: 					
339:     ## EVENTS ARE GROUPED WHEN HERE SO RESET COUNTER BACK TO 0
340:     #set ($counter = 0)
341:   #end
342: 				
343:   #if ($scheduleFields.contains("_date") && !$lastDate.equals($theDate))
344:     <tr class="date-sep"><td colspan="${colCount}">&nbsp;</td></tr> ## show empty row
345:     <tr class="date-title"><td colspan="${colCount}">$theDate</td></tr>
346: 					
347:     ## EVENTS ARE GROUPED WHEN HERE SO RESET COUNTER BACK TO 0
348:     #set ($counter = 0)
349:   #end
350: 				
351:   #set ($counter = $counter + 1)
352:   #if ($counter % 2 == 0)
353:     #set ($rowClass = "even")
354:   #else
355:     #set ($rowClass = "odd")
356:   #end
357: 				
358:   #if ($event.inProgress)
359:     #set ($rowClass = "${rowClass} in-progress")
360:   #end
361: 				
362:   <tr class="${rowClass}" #if ($event.inProgress) title="In Progress" #end>
363: 					
364:   #foreach ($field in $scheduleFields)
365:         				
366:   ## DATE
367:   #if ($field.equals("date"))
368:     <td class="e_date">#if (!$lastDate.equals($theDate)) $theDate #else &nbsp; #end</td>
369:   #end
370:         				
371:   ## OPPONENT
372:   #if ($field.equals("opponent") || $field.equals("opponent+neutralsite"))
373:     <td class="e_team e_opponent">					
374:       #if ($showVsAt)
375:         #if ($event.neutralSite.length() > 0) 
376:           <span class="e_va">vs. </span> 
377:         #else 
378:           #if (!$event.home)<span class="e_va">at </span>#end 
379:         #end
380:       #end
381: 									
382:       #set ($opponentName = "")
383:       #if ($event.opponent.name.length() > 0)
384:         #set ($opponentName = $event.opponent.name)
385:       #elseif ($event.teams.size() > 0)
386:         #set ($opponentName = $event.teams.get(0).name)
387:       #end
388: 								
389:       #set ($class = "e_teamname e_opponent_name")
390:       #if ($event.home && $event.neutralSite.length() == 0)
391:         #set ($class = "${class} e_home")
392:         #set ($showHomeNotation = true)
393:       #end
394:         						
395:       #if ($confmemberIDs.contains($event.opponent.teamId))
396: 		<a href="${page.url}?teamId=${event.opponent.teamId}" class="${class}" title="${opponentName}">$opponentName</a>
397:       #else
398: 		<span class="${class}" title="${opponentName}">$opponentName</span>
399: 	  #end
400: 	  
401: 	  #if ($event.conference)
402:         #displayNotation("conference")
403:         #set ($showConfNotation = true)
404:       #end
405: 							
406:       #if ($event.division)
407:         #displayNotation("division")
408:         #set ($showDivisionNotation = true)
409:       #end
410: 								
411:       #if (!$event.overall)
412:         #displayNotation("exhibition")
413:         #set ($showExhibitionNotation = true)
414:       #end
415:         						
416:       #if ($field.equals("opponent+neutralsite") && $event.neutralSite.length() > 0)
417:         <span class="e_neutralsite">@ $event.neutralSite</span>
418:       #end
419:     </td>
420:   #end
421:         				
422:   ## RESULT
423:   #if ($field.equals("result") || $field.equals("result+status"))
424:     <td class="e_result">
425: 							
426:     #set ($result = "")
427:     #if ($resultFormat.equals("AP1"))
428:       #set ($APResult = $event.APResult)
429:     #elseif ($resultFormat.equals("AP2"))
430:       #set ($APResult = $event.AP2Result)
431:     #end
432: 
433:     #if ($event.inProgress) 
434:       #set ($result = $event.result)
435:     #elseif ($APResult.length() > 0)
436:       #set ($result = $APResult)
437:     #else
438:       #set ($result = $event.result)
439:     #end
440: 								
441:     #if ($field.equals("result+status"))
442:       #set ($status = $formatter.formatStatus($event))
443:       #if ($status.length() > 0)
444:         #set ($result = "${result} (${status})")
445:       #end
446:     #end
447: 								
448:     $!result
449: 							
450:     </td>
451:   #end
452: 						
453:   ## TEAM AWAY
454:   #if ($field.equals("team_away") || $field.equals("team_away+team_away_result"))
455:     #set ($class = "e_team e_awayteam")
456:     #if ($field.equals("team_away+team_away_result"))
457:       #set ($class = "e_team_result e_awayteam")
458:     #end
459:     <td class="$class">
460: 	
461: 	#set ($class = "e_teamname")
462: 	## FOR FLEXIBLE RESULTS LOOK TO DISPLAY THE TEAMNAME AS BOLD IF MARKED AS A HOME EVENT
463: 	#if (!$schedule.numericResults)
464:       #if ($event.home && $event.neutralSite.length() == 0)
465:         #set ($class = "${class} e_home")
466:         #set ($showHomeNotation = true)
467: 	  #end
468:     #end
469: 						
470:     #set ($teamName = "")
471:     #set ($teamName = $event.teams.get(0).name)
472:     #if ($teamName.length() > 0)
473:       #if ($confmemberIDs.contains($event.teams.get(0).teamId))
474: 		<a href="${page.url}?teamId=${event.teams.get(0).teamId}" class="${class}" title="${teamName}">$teamName</a>
475:       #else
476:         <span class="${class}" title="${teamName}">$teamName</span>
477:       #end
478: 							
479:       #if ($field.equals("team_away+team_away_result"))
480:         #set ($teamResult = "")
481:         #set ($teamResult = $event.teams.get(0).result)
482:         #if ($teamResult.length() > 0) <span class="e_result">$teamResult</span> #end
483:       #end							
484:     #else
485:       &nbsp;
486: 	#end
487: 	
488: 	#if (!$schedule.numericResults)
489:       #if ($event.conference)
490:         #displayNotation("conference")
491:         #set ($showConfNotation = true)
492:       #end
493: 						
494:       #if ($event.division)
495:         #displayNotation("division")
496:         #set ($showDivisionNotation = true)
497:       #end
498: 								
499:       #if (!$event.overall)
500:         #displayNotation("exhibition")
501:         #set ($showExhibitionNotation = true)
502: 	  #end
503: 	#end
504: 	
505:     </td>
506:   #end
507: 						
508:   ## TEAM AWAY RESULT
509:   #if ($field.equals("team_away_result"))
510:     <td class="e_result e_awayresult">
511:     #set ($teamResult = "")
512:     #set ($teamResult = $event.teams.get(0).result)
513:     #if ($teamResult.length() > 0) $teamResult #else &nbsp; #end
514:     </td>
515:   #end
516: 						
517:   ## TEAM HOME
518:   #if ($field.equals("team_home") || $field.equals("team_home+team_home_result"))
519:     #set ($class = "e_team e_hometeam")
520:     #if ($field.equals("team_home+team_home_result"))
521:       #set ($class = "e_team_result e_hometeam")
522:     #end
523:     <td class="$class">
524:     						
525:     #set ($teamName = "")
526:     #if ($event.teams.size() > 1)
527:       #set ($teamName = $event.teams.get(1).name)
528: 	#end
529: 	
530: 	#set ($class = "e_teamname")
531: 	## FOR FLEXIBLE RESULTS LOOK TO DISPLAY THE TEAMNAME AS BOLD IF MARKED AS A HOME EVENT
532: 	#if (!$schedule.numericResults)
533:       #if ($event.home && $event.neutralSite.length() == 0)
534:         #set ($class = "${class} e_home")
535:         #set ($showHomeNotation = true)
536: 	  #end
537:     #end
538:     							
539:     #if ($teamName.length() > 0)
540:       #if ($confmemberIDs.contains($event.teams.get(1).teamId))
541:         <a href="${page.url}?teamId=${event.teams.get(1).teamId}" class="${class}" title="${teamName}">$teamName</a>
542:       #else
543:         <span class="${class}" title="${teamName}">$teamName</span>
544:       #end
545: 							
546:       #if ($field.equals("team_home+team_home_result"))
547:         #set ($teamResult = "")
548:         #set ($teamResult = $event.teams.get(1).result)
549:         #if ($teamResult.length() > 0) <span class="e_result">$teamResult</span> #end
550:       #end
551: 							
552:     #else
553:       &nbsp;
554:     #end
555:     </td>
556:   #end
557: 						
558:   ## TEAM HOME RESULT
559:   #if ($field.equals("team_home_result") && $event.teams.size() > 1)
560:     <td class="e_result e_homeresult">
561:     #set ($teamResult = "")
562:     #set ($teamResult = $event.teams.get(1).result)
563:     #if ($teamResult.length() > 0) $teamResult #else &nbsp; #end
564:     </td>					
565:   #end
566:         				
567:   ## BOTH TEAMS AND THEIR RESULT
568:   #if ($field.equals("teams+result"))
569:     <td class="e_teams_result">    					
570:     #foreach ($team in $event.teams)					
571:       #if ($velocityCount == 1)
572:         #if ($event.conference)
573:           #displayNotation("conference")
574:           #set ($showConfNotation = true)
575:         #end
576: 								
577:         #if ($event.division)
578:           #displayNotation("division")
579:           #set ($showDivisionNotation = true)
580:         #end
581: 								
582:         #if (!$event.overall)
583:           #displayNotation("exhibition")
584:           #set ($showExhibitionNotation = true)
585:         #end
586: 	  #end
587: 	  
588: 	  #if ($velocityCount > 1) &nbsp;&nbsp; #end
589: 								
590:       #if ($confmemberIDs.contains($team.teamId))
591:         <a href="${page.url}?teamId=${team.teamId}" class="e_teamname" title="${team.name}">$team.name</a>
592:       #else 
593:         <span class="e_teamname" title="${team.name}">$team.name</span>
594: 	  #end
595: 	  
596: 	  &nbsp;
597: 								
598:       #if ($team.result.length() > 0) $team.result #end
599:     #end						
600:     </td>
601:   #end
602:         				
603:   ## STATUS
604:   #if ($field.equals("status") || $field.equals("status+neutralsite"))
605:     <td class="e_status">
606: 						
607:     #set ($status = $formatter.formatStatus($event))
608:     #if ($field.equals("status+neutralsite") && $event.neutralSite.length() > 0)
609:       #set ($status = "${status} @ ${event.neutralSite}")
610:     #end
611: 						
612:     #if ($status.length() > 0) $status #else &nbsp; #end
613:         					
614:     </td>
615:   #end
616:         				
617:   ## LINKS (SAME ROW)
618:   #if ($field.equals("links"))
619:     <td class="e_links">					
620:       #renderEventLinks($event)			
621:       $wiki.event($event)			
622:     </td>
623:   #end
624: 						
625:   ## NOTES (SAME ROW)
626:   #if ($field.equals("notes") || $field.equals("notes+neutralsite"))
627:     <td class="e_notes">$!event.notes #if ($field.equals("notes+neutralsite") && $event.neutralSite.length() > 0) @ $event.neutralSite #end</td>
628:   #end
629: 						
630:   ## NEUTRALSITE
631:   #if ($field.equals("neutralsite"))
632:     <td class="e_neutralsite">						
633:     #if ($event.neutralSite.length() > 0)
634:       ## DISPLAY THE @ CHARACTER ONLY FOR HEAD-TO-HEAD SCHEDULES (non numeric schedules sometimes use neutralSite field for event name)
635:       #if ($schedule.numericResults) @ #end $event.neutralSite 
636:     #else 
637:       &nbsp;
638: 	#end
639:     </td>
640:   #end
641: 
642:   #end ## fields loop
643:   </tr>
644: 				
645:   #foreach ($field in $scheduleFields)
646: 					
647:   ## NOTES (NEW ROW)
648:   #if (($field.equals("_notes") && $event.notes.length() > 0) || ($field.equals("_notes+neutralsite") && ($event.notes.length() > 0 || $event.neutralSite.length() > 0)))
649:     <tr class="${rowClass}" #if ($event.inProgress) title="In Progress" #end>
650:       <td>&nbsp;</td>					
651:       <td colspan="${tool.math.sub($colCount, 1)}" class="e_notes">$!event.notes #if ($field.equals("_notes+neutralsite") && $event.neutralSite.length() > 0) @ $event.neutralSite #end</td>
652:     </tr>
653:   #end
654: 					
655:   ## LINKS (NEW ROW)
656:   #if ($field.equals("_links") && $event.links.size() > 0)
657:     <tr class="${rowClass}" #if ($event.inProgress) title="In Progress" #end>
658:       <td>&nbsp;</td>
659:       <td colspan="${tool.math.sub($colCount, 1)}" class="e_links">						
660:         #renderEventLinks($event)
661:         $wiki.event($event)				
662:       </td>
663:     </tr>
664:   #end
665: 					
666:   ## NEUTRAL SITE (NEW ROW)
667:   #if ($field.equals("_neutralsite") && $event.neutralSite.length() > 0)
668:     <tr class="${rowClass}" #if ($event.inProgress) title="In Progress" #end>
669:       <td>&nbsp;</td>
670:       <td colspan="${tool.math.sub($colCount, 1)}" class="e_neutralsite">#if ($schedule.numericResults) @ #end $event.neutralSite</td>
671:     </tr>
672:   #end
673: 					
674:   #end ## fields loop
675:         		
676:   #set ($lastDate = $theDate)
677:   #set ($lastMonth = $theMonth)
678: 		
679: #end ## SHOW CONF ONLY EVENTS?
680: #end ## SHOW EXHIBITION GAMES?
681: #end ## EVENTS LOOP
682: 	
683: </table>
684: </div>
685: 
686: ## LOOK TO INCLUDE SCHEDULE POST FILE
687: #set ($schedulePostURL = "${page.url}-post")
688: #if ($website.exists($schedulePostURL))
689:   $website.include($schedulePostURL)
690: #end
691: 
692: #if ($showExhibitionNotation || $showConfNotation || $showHomeNotation)
693: <div class="notations">
694:   #if ($showExhibitionNotation)
695:     <div class="exhibition_notation"><span><b>$exhibitionNotation</b> Exhibition</span></div>
696:   #end
697:   #if ($showConfNotation)
698:     <div class="conf_notation"><span><b>$confNotation</b> Conference</span></div>
699:   #end
700:   #if ($showDivisionNotation)
701:     <div class="div_notation"><span><b>$divisionNotation</b> Division</span></div>
702:   #end
703:   #if ($showHomeNotation)
704:     <div class="home_notation"><span><b>Bold:</b> Home event</span></div>
705:   #end
706: </div>
707: #end
708: 
709: <div class="subscribe_links">
710:   <a href="$icalURL"><img src="/info/images/icon_schedule.gif" alt="iCalendar" /> <b>iCalendar</b></a> ## iCalendar
711:   <a href="$rssURL"><img src="/info/images/icon_rss.gif" alt="rss feed" /> <b>RSS Feed</b></a> ## RSS
712: </div>
713: 
714: ## LOOK TO INCLUDE SCHEDULE FOOTER FILE
715: #set ($scheduleFooterURL = "${page.url}-footer")
716: #if ($website.exists($scheduleFooterURL))
717: 	$website.include($scheduleFooterURL)
718: #end
719: 
720: 
721: $sfs
722: $wiki
723: $rss
724: 
725: </div> ## schedule-list
726: 
727: #if ($request.getParameter("ajax").equals("true"))
728:   $!request.setAttribute("decorator", "")
729: #end
730: 
731: #end ## MOBILE CHECK

View: Mobile | Desktop