Changeset 881


Ignore:
Timestamp:
12/28/07 19:21:38 (4 years ago)
Author:
bogdanpasoi@…
Message:

Diff & calendar macro fixes.

Location:
trunk/www
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/www/macros/macro_calendar.php

    r879 r881  
    5959            $html .= '<div class="event">'; 
    6060            $html .= '&raquo'; 
    61                         $html .=  $event['link'] . (!$event['is_last'] ? ', ' : ''); 
     61                        $html .=  $event['link']; 
    6262            $html .= '</div>'; 
    6363                } 
  • trunk/www/static/css/screen.css

    r879 r881  
    147147    width: 191px; 
    148148    float: left; 
     149    border-right: 1px solid #d0d0d0; 
    149150} 
    150151 
     
    692693    display: block; 
    693694} 
    694  
     695     
    695696.diff .added { 
    696697    background-color: #DDFFDD; 
     
    699700} 
    700701 
    701 .diff span { 
     702.diff .normal { 
     703    display: block; 
     704} 
     705.diff pre { 
    702706    margin: .2em .2em; 
     707    white-space: pre-wrap;       /* css-3 */ 
     708    white-space: -moz-pre-wrap;  /* Mozilla, since 1999 */ 
     709    white-space: -pre-wrap;      /* Opera 4-6 */ 
     710    white-space: -o-pre-wrap;    /* Opera 7 */ 
     711    word-wrap: break-word;       /* Internet Explorer 5.5+ */ 
    703712} 
    704713 
     
    711720    background-color: #99EE99; 
    712721    text-decoration: none; 
     722     
    713723} 
    714724 
  • trunk/www/views/textblock_diff.php

    r878 r881  
    1616        echo '<div class="diff">'; 
    1717        foreach ($block as $op) { 
    18             echo '<span class="'.$op['type'].'">'; 
     18            echo '<pre class="'.$op['type'].'">'; 
    1919            foreach ($op['lines'] as $line) { 
    2020                $output = ""; 
     
    3434                } 
    3535 
    36                 // make sure we display whitespace correctly 
    37                 $output = str_replace('  ', '&nbsp;&nbsp;', $output); 
    38                 echo $output.'<br/>'; 
     36                $output = str_replace("\n", '', $output); 
     37                $output = str_replace("\r", '', $output); 
     38                echo $output."\n"; 
    3939            } 
    40             echo '</span>'; 
     40            echo '</pre>'; 
    4141        } 
    4242        echo '</div>'; 
Note: See TracChangeset for help on using the changeset viewer.