Changeset 114

Show
Ignore:
Timestamp:
02/07/06 16:44:01
Author:
johnsa
Message:

fixing up date and time listings in listViews for public clients

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/calendar3/deployment/webpublic/webapp/resources/demoskins/default/default/blue.css

    r106 r114  
    742742  background-color: transparent; 
    743743} 
     744 
     745.center { 
     746  text-align: center; 
     747} 
     748.left { 
     749  text-align: left; 
     750} 
     751.right { 
     752  text-align: right; 
     753} 
  • trunk/calendar3/deployment/webpublic/webapp/resources/demoskins/default/default/default.xsl

    r108 r114  
    656656                <xsl:variable name="dateRangeStyle"> 
    657657                  <xsl:choose> 
    658                     <xsl:when test="substring(start/utcdate,1,8) = parent::day/date"> 
     658                    <xsl:when test="start/shortdate = parent::day/shortdate"> 
    659659                      <xsl:choose> 
    660660                        <xsl:when test="start/allday = 'true'">dateRangeCrossDay</xsl:when> 
     
    668668                  </xsl:choose> 
    669669                </xsl:variable> 
    670                 <td class="{$dateRangeStyle}" style="text-align:right;"> 
    671                   <xsl:choose> 
    672                     <xsl:when test="start/allday = 'true'"> 
    673                       <a href="{$eventView}?subid={$subscriptionId}&amp;guid={$guid}&amp;recurrenceId={$recurrenceId}"> 
    674                         All day 
    675                       </a> 
    676                     </xsl:when> 
    677                     <xsl:when test="start/time!=''"> 
     670                <xsl:choose> 
     671                  <xsl:when test="start/allday = 'true' and 
     672                                  start/shortdate = end/shortdate"> 
     673                    <td class="{$dateRangeStyle} center" colspan="3"> 
     674                      all day 
     675                    </td> 
     676                  </xsl:when> 
     677                  <xsl:otherwise> 
     678                    <td class="{$dateRangeStyle} right"> 
    678679                      <a href="{$eventView}?subid={$subscriptionId}&amp;guid={$guid}&amp;recurrenceId={$recurrenceId}"> 
    679680                      <xsl:choose> 
     681                        <xsl:when test="start/allday = 'true' and 
     682                                        parent::day/shortdate = start/shortdate"> 
     683                          today 
     684                        </xsl:when> 
    680685                        <xsl:when test="parent::day/shortdate != start/shortdate"> 
    681686                          <span class="littleArrow">&#171;</span>&#160; 
     
    687692                      </xsl:choose> 
    688693                      </a> 
    689                     </xsl:when> 
    690                   </xsl:choose> 
    691                 </td> 
    692                 <td class="{$dateRangeStyle}" style="text-align:center;padding:0em;"> 
    693                   <xsl:choose> 
    694                     <xsl:when test="end/allday = 'true'"><!-- do nothing --> 
    695                     </xsl:when> 
    696                     <xsl:when test="end/time!=''"> 
     694                    </td> 
     695                    <td class="{$dateRangeStyle} center"> 
    697696                      <a href="{$eventView}?subid={$subscriptionId}&amp;guid={$guid}&amp;recurrenceId={$recurrenceId}">-</a> 
    698                     </xsl:when> 
    699                     <xsl:otherwise> 
    700                       &#160; 
    701                     </xsl:otherwise> 
    702                   </xsl:choose> 
    703                 </td> 
    704                 <td class="{$dateRangeStyle}" style="text-align:left;"> 
    705                   <xsl:choose> 
    706                     <xsl:when  test="end/time!=''"> 
     697                    </td> 
     698                    <td class="{$dateRangeStyle} left"> 
    707699                      <a href="{$eventView}?subid={$subscriptionId}&amp;guid={$guid}&amp;recurrenceId={$recurrenceId}"> 
    708700                      <xsl:choose> 
     701                        <xsl:when test="end/allday = 'true' and 
     702                                        parent::day/shortdate = end/shortdate"> 
     703                          today 
     704                        </xsl:when> 
    709705                        <xsl:when test="parent::day/shortdate != end/shortdate"> 
    710706                          <xsl:value-of select="end/month"/>/<xsl:value-of select="end/day"/> 
     
    716712                      </xsl:choose> 
    717713                      </a> 
    718                     </xsl:when> 
    719                     <xsl:otherwise> 
    720                       &#160; 
    721                     </xsl:otherwise> 
    722                   </xsl:choose> 
    723                 </td> 
     714                    </td> 
     715                  </xsl:otherwise> 
     716                </xsl:choose> 
    724717                <xsl:variable name="descriptionClass"> 
    725718                  <xsl:choose> 
  • trunk/calendar3/deployment/webpublic/webapp/resources/demoskins/default/default/green.css

    r106 r114  
    741741  font-style: italic; 
    742742} 
     743.center { 
     744  text-align: center; 
     745} 
     746.left { 
     747  text-align: left; 
     748} 
     749.right { 
     750  text-align: right; 
     751} 
  • trunk/calendar3/deployment/webpublic/webapp/resources/demoskins/default/default/red.css

    r106 r114  
    745745  font-style: italic; 
    746746} 
     747.center { 
     748  text-align: center; 
     749} 
     750.left { 
     751  text-align: left; 
     752} 
     753.right { 
     754  text-align: right; 
     755} 
  • trunk/calendar3/deployment/webpublic/webapp/resources/demoskins/default/default/rensselaer.css

    r112 r114  
    747747  font-style: italic; 
    748748} 
     749.center { 
     750  text-align: center; 
     751} 
     752.left { 
     753  text-align: left; 
     754} 
     755.right { 
     756  text-align: right; 
     757} 
  • trunk/calendar3/deployment/webpublic/webapp/resources/demoskins/default/default/rensselaer.xsl

    r112 r114  
    626626                <xsl:variable name="dateRangeStyle"> 
    627627                  <xsl:choose> 
    628                     <xsl:when test="substring(start/utcdate,1,8) = parent::day/date"> 
     628                    <xsl:when test="start/shortdate = parent::day/shortdate"> 
    629629                      <xsl:choose> 
    630630                        <xsl:when test="start/allday = 'true'">dateRangeCrossDay</xsl:when> 
     
    638638                  </xsl:choose> 
    639639                </xsl:variable> 
    640                 <td class="{$dateRangeStyle}" style="text-align:right;"> 
    641                   <xsl:choose> 
    642                     <xsl:when test="start/allday = 'true'"> 
    643                       <a href="{$eventView}?subid={$subscriptionId}&amp;guid={$guid}&amp;recurrenceId={$recurrenceId}"> 
    644                         All day 
    645                       </a> 
    646                     </xsl:when> 
    647                     <xsl:when test="start/time!=''"> 
     640                <xsl:choose> 
     641                  <xsl:when test="start/allday = 'true' and 
     642                                  start/shortdate = end/shortdate"> 
     643                    <td class="{$dateRangeStyle} center" colspan="3"> 
     644                      all day 
     645                    </td> 
     646                  </xsl:when> 
     647                  <xsl:otherwise> 
     648                    <td class="{$dateRangeStyle} right"> 
    648649                      <a href="{$eventView}?subid={$subscriptionId}&amp;guid={$guid}&amp;recurrenceId={$recurrenceId}"> 
    649650                      <xsl:choose> 
     651                        <xsl:when test="start/allday = 'true' and 
     652                                        parent::day/shortdate = start/shortdate"> 
     653                          today 
     654                        </xsl:when> 
    650655                        <xsl:when test="parent::day/shortdate != start/shortdate"> 
    651656                          <span class="littleArrow">&#171;</span>&#160; 
     
    657662                      </xsl:choose> 
    658663                      </a> 
    659                     </xsl:when> 
    660                   </xsl:choose> 
    661                 </td> 
    662                 <td class="{$dateRangeStyle}" style="text-align:center;padding:0em;"> 
    663                   <xsl:choose> 
    664                     <xsl:when test="end/allday = 'true'"><!-- do nothing --> 
    665                     </xsl:when> 
    666                     <xsl:when test="end/time!=''"> 
     664                    </td> 
     665                    <td class="{$dateRangeStyle} center"> 
    667666                      <a href="{$eventView}?subid={$subscriptionId}&amp;guid={$guid}&amp;recurrenceId={$recurrenceId}">-</a> 
    668                     </xsl:when> 
    669                     <xsl:otherwise> 
    670                       &#160; 
    671                     </xsl:otherwise> 
    672                   </xsl:choose> 
    673                 </td> 
    674                 <td class="{$dateRangeStyle}" style="text-align:left;"> 
    675                   <xsl:choose> 
    676                     <xsl:when  test="end/time!=''"> 
     667                    </td> 
     668                    <td class="{$dateRangeStyle} left"> 
    677669                      <a href="{$eventView}?subid={$subscriptionId}&amp;guid={$guid}&amp;recurrenceId={$recurrenceId}"> 
    678670                      <xsl:choose> 
     671                        <xsl:when test="end/allday = 'true' and 
     672                                        parent::day/shortdate = end/shortdate"> 
     673                          today 
     674                        </xsl:when> 
    679675                        <xsl:when test="parent::day/shortdate != end/shortdate"> 
    680676                          <xsl:value-of select="end/month"/>/<xsl:value-of select="end/day"/> 
     
    686682                      </xsl:choose> 
    687683                      </a> 
    688                     </xsl:when> 
    689                     <xsl:otherwise> 
    690                       &#160; 
    691                     </xsl:otherwise> 
    692                   </xsl:choose> 
    693                 </td> 
     684                    </td> 
     685                  </xsl:otherwise> 
     686                </xsl:choose> 
    694687                <xsl:variable name="descriptionClass"> 
    695688                  <xsl:choose> 
  • trunk/calendar3/deployment/webpublic/webapp/resources/demoskins/default/default/washington.xsl

    r109 r114  
    295295                          <xsl:when test="/bedework/title!=''"> 
    296296                            Calendar: <xsl:value-of select="/bedework/title"/> 
    297                             <span class="link">[<a href="{$selectView}?calId=">show all calendars</a>]</span> 
     297                            <span class="link">[<a href="{$setSelection}?calId=">show all calendars</a>]</span> 
    298298                          </xsl:when> 
    299299                          <xsl:when test="/bedework/search!=''"> 
    300300                            Current filter: <xsl:value-of select="/bedework/search"/> 
    301                             <span class="link">[<a href="{$selectView}?calId=">clear</a>]</span> 
     301                            <span class="link">[<a href="{$setSelection}?calId=">clear</a>]</span> 
    302302                          </xsl:when> 
    303303                          <xsl:otherwise> 
     
    336336            </thead> 
    337337            <xsl:choose> 
    338               <xsl:when test="count(/bedework/eventscalendar/year/month/week/day/event)=0"> 
    339                 <tr> 
    340                   <td class="eventlist-desc"> 
    341                     No events this time period 
    342                   </td> 
    343                 </tr> 
    344               </xsl:when> 
    345               <xsl:otherwise> 
     338              <xsl:when test="/bedework/eventscalendar/year/month/week/day/event"> 
    346339                <xsl:choose> 
    347340                  <xsl:when test="/bedework[periodname!='Day']"> 
     
    352345                  </xsl:otherwise> 
    353346                </xsl:choose> 
     347              </xsl:when> 
     348              <xsl:otherwise> 
     349                <tr> 
     350                  <td class="eventlist-desc"> 
     351                    No events this time period 
     352                  </td> 
     353                </tr> 
    354354              </xsl:otherwise> 
    355355            </xsl:choose> 
     
    371371                      <span class="std-text">Show only events that contain this text: 
    372372                      </span>&#160; 
    373                       <form name="searchForm" method="get" action="{$selectView}"> 
     373                      <form name="searchForm" method="get" action="{$setSelection}"> 
    374374                        <input type="text" name="searchString" size="30" value=""/> 
    375375                        <input type="submit" value="Go"/> 
     
    427427                          <td colspan="2"> 
    428428                            <div class="std-text"> 
    429                               <a href="{$selectView}">All Events</a> 
     429                              <a href="{$setSelection}">All Events</a> 
    430430                            </div> 
    431431                          </td> 
     
    531531          <span class="aux"> 
    532532            <span class="aux"> 
     533              <xsl:variable name="subscriptionId" select="subscription/id"/> 
     534              <xsl:variable name="guid" select="guid"/> 
     535              <xsl:variable name="recurrenceId" select="recurrenceId"/> 
    533536              <a href="{$eventView}?subid={$subscriptionId}&amp;guid={$guid}&amp;recurrenceId={$recurrenceId}">More</a> &#160; 
    534537            </span> 
     
    609612              </td> 
    610613              <td class='eventlist-links'> 
     614                 <xsl:variable name="subscriptionId" select="subscription/id"/> 
     615                 <xsl:variable name="guid" select="guid"/> 
     616                 <xsl:variable name="recurrenceId" select="recurrenceId"/> 
    611617                 <span class='aux'><span class='aux'><a href="{$eventView}?subid={$subscriptionId}&amp;guid={$guid}&amp;recurrenceId={$recurrenceId}">More</a> &#160;</span></span> 
    612618              </td> 
     
    720726  <xsl:template match="calendar" mode="fullList"> 
    721727    <xsl:variable name="id" select="id"/> 
    722     <h2><a href="{$selectView}?calId={$id}"><xsl:value-of select="title"/></a></h2> 
     728    <h2><a href="{$setSelection}?calId={$id}"><xsl:value-of select="title"/></a></h2> 
    723729    <ul> 
    724730      <xsl:for-each select="calendar"> 
    725         <li><a href="{$selectView}?calId={$id}"><xsl:value-of select="title"/></a></li> 
     731        <li><a href="{$setSelection}?calId={$id}"><xsl:value-of select="title"/></a></li> 
    726732      </xsl:for-each> 
    727733    </ul> 
     
    823829    <xsl:variable name="id" select="id"/> 
    824830    <div class="std-text"> 
    825       <a href="{$selectView}?calId={$id}"><xsl:value-of select="title"/></a> 
     831      <a href="{$setSelection}?calId={$id}"><xsl:value-of select="title"/></a> 
    826832    </div> 
    827833  </xsl:template>