Changeset 636 for trunk/app/views/news

Show
Ignore:
Timestamp:
07/09/08 21:55:19 (5 months ago)
Author:
aarkerio
Message:

Updates genrali

Location:
trunk/app/views/news
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • trunk/app/views/news/display.ctp

    r621 r636  
    11<?php 
    2 // die(debug($_SERVER)); 
     2//die(debug($data)); 
    33 
    44echo $html->div('title_portal', __('News on Campus', true)); 
     
    2626 
    2727  if ($val['News']['comments'] == 1 ):  // comments enabled on this new 
    28      echo $html->para(null, $html->link(__('Put your comment', true), '/news/view/'.$val['News']['id'])); 
     28     e($html->para(null,$html->link(__('Put your comment', true).' ('. count($val['Discussion']).')','/news/view/'.$val['News']['id']))); 
    2929  endif; 
    3030?> 
  • trunk/app/views/news/view.ctp

    r620 r636  
    11<?php 
    2 // die(debug($data)); 
     2//die(debug($data)); 
    33 
    44echo $html->div('news_title', $html->link($data['News']['title'], '/news/view/'. $data['News']['id'])); 
     
    4747      $bg = ($i%2 == 0) ? "#e2e2e2" : "#fff"; 
    4848           
    49       $tmp  = $html->para(null,$time->timeAgoInWords($v['created']) . ' <b>'. $v['username']    . '</b> wrote:<br />', array('style'=>'font-size:8pt;font-family:Georgia;')); 
     49      $tmp  = $html->para(null,$time->timeAgoInWords($v['created']) . ' <b>'. $v['User']['username']    . '</b> wrote:<br />', array('style'=>'font-size:8pt;font-family:Georgia;')); 
    5050      $tmp .= $html->para(null, $v['comment']); 
    5151      echo $html->div('divblock', $tmp, array('style'=>'background-color:'.$bg));