Men's Golf

 

2012-13 Men's Golf Schedule

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