Skip to content
This repository has been archived by the owner on Apr 5, 2019. It is now read-only.

Resolving Issue #36: "Create a Collection_MainScreen class and template" #99

Merged
merged 2 commits into from Aug 16, 2012
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
45 changes: 40 additions & 5 deletions SmartyTemplates/Collection_MainScreen.html.tpl
Expand Up @@ -39,11 +39,19 @@ padding: 0;
</head>

<body>
<!--SM:foreach $Collection_MainScreen as $Timetable:SM-->
<div data-role="page">
<div data-role="content">
<table id="wrap">
<tr height="20%">
<div data-role="content" id="wrap">
<h1><!--SM:$SiteConfig.Site_Name:SM--></h1>
<table width="100%">
<tr>
<!--SM:if isset($SiteConfig.SMSNumber):SM--><td width="33%" style="text-align:left;">SMS "help" to: <!--SM:$SiteConfig.SMSNumber:SM--></td><!--SM:/if:SM-->
<td width="33%" style="text-align:center;">Browse to: <!--SM:$SiteConfig.baseurl:SM--></td>
<!--SM:if isset($SiteConfig.TwitterAccount):SM--><td width="33%" style="text-align:right;">Follow on Twitter then DM "help" to: @<!--SM:$SiteConfig.TwitterAccount:SM--></td><!--SM:/if:SM-->
</tr>
</table>
<!--SM:foreach $Collection_MainScreen as $Timetable:SM-->
<table height="90%">
<tr>
<th>&nbsp;</th>
<!--SM:if $Timetable.x_axis == 'room':SM-->
<!--SM:assign var="xaxis" value=$Timetable.arrRooms:SM-->
Expand All @@ -65,7 +73,7 @@ padding: 0;

<!--SM:foreach $yaxis as $yaxis_value:SM-->
<!--SM:if $Timetable.y_axis == 'room':SM-->
<tr height="20%" class="room" id="<!--SM:$yaxis_value@key:SM-->">
<tr class="room" id="<!--SM:$yaxis_value@key:SM-->">
<th class="room" id="<!--SM:$yaxis_value@key:SM-->"><!--SM:$yaxis_value.strRoom:SM--></th>
<!--SM:else:SM-->
<tr class="slot<!--SM:if isset($yaxis_value.isNow) && $yaxis_value.isNow:SM--> slot_now<!--SM:elseif isset($yaxis_value.isNext) && $yaxis_value.isNext:SM--> slot_next<!--SM:/if:SM-->" id="<!--SM:$yaxis_value@key:SM-->">
Expand All @@ -80,6 +88,33 @@ padding: 0;
<!--SM:/foreach:SM-->
</tr>
<!--SM:/foreach:SM-->
<!--SM:assign var="limbo" value="false":SM-->
<!--SM:foreach $Timetable.arrTimetable as $arrRoom:SM-->
<!--SM:if strpos($arrRoom@key, 'limbo') !== false && $limbo == "false":SM-->
<tr class="room" id="limbo">
<th>Limbo</th>
<!--SM:assign var="limbo" value="true":SM-->
<!--SM:/if:SM-->
<!--SM:/foreach:SM-->

<!--SM:if $limbo == "true":SM-->
<!--SM:foreach $Timetable.arrSlots as $arrSlot:SM-->
<td class="talk <!--SM:if $arrSlot['isNow'] == 1:SM-->slot_now<!--SM:elseif $arrSlot['isNext'] == 1:SM-->slot_next<!--SM:/if:SM-->">
<!--SM:assign var="limbo" value="false":SM-->
<!--SM:foreach $Timetable.arrTimetable as $arrRoom:SM-->
<!--SM:if strpos($arrRoom@key, 'limbo') !== "false":SM-->
<!--SM:foreach $arrRoom as $arrTalk:SM-->
<!--SM:if $arrTalk@key == $arrSlot@key && $arrTalk.intRoomID == '-1':SM-->
<div><!--SM:include file="Timetable_TalkCell.tpl" cell=$arrTalk:SM--></div>
<!--SM:/if:SM-->
<!--SM:/foreach:SM-->
<!--SM:/if:SM-->
<!--SM:/foreach:SM-->
<!--SM:if $limbo == "false":SM-->&nbsp;<!--SM:/if:SM-->
</td>
<!--SM:/foreach:SM-->
</tr>
<!--SM:/if:SM-->
</table>
<!--SM:/foreach:SM-->
</div>
Expand Down
1 change: 1 addition & 0 deletions SmartyTemplates/Timetable_TalkCell.tpl
Expand Up @@ -12,3 +12,4 @@
<!--SM:/foreach:SM-->
</span>
<!--SM:/if:SM-->
<div style="text-align:left;"><!--SM:if isset($cell.hasNsfwMaterial) && $cell.hasNsfwMaterial:SM--><img src="<!--SM:$SiteConfig.baseurl:SM-->media/images/alert-triangle-red.png" /><!--SM:/if:SM--><!--SM:if isset($cell.hasExcessAttendees) && $cell.hasExcessAttendees:SM--><img src="<!--SM:$SiteConfig.baseurl:SM-->media/images/alert-triangle-blue.png" /><!--SM:/if:SM--></div>