Dotclear

Changeset 1508:60c4414bcd87 for inc


Ignore:
Timestamp:
08/21/13 10:12:58 (12 years ago)
Author:
Anne Kozlika <kozlika@…>
Branch:
default
Message:

Comments list table, clarification and harmonization.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • inc/admin/lib.pager.php

    r1476 r1508  
    5050               $html_block = 
    5151               '<table class="clear"><tr>'. 
    52                '<th colspan="2">'.__('Title').'</th>'. 
     52               '<th colspan="2" class="first">'.__('Title').'</th>'. 
    5353               '<th>'.__('Date').'</th>'. 
    5454               '<th>'.__('Category').'</th>'. 
     
    260260               $html_block = 
    261261               '<table><tr>'. 
    262                '<th colspan="2">'.__('Title').'</th>'. 
     262               '<th colspan="2" class="first">'.__('Author').'</th>'. 
    263263               '<th>'.__('Date').'</th>'. 
    264                '<th>'.__('Author').'</th>'. 
     264               '<th>'.__('Entry title').'</th>'. 
    265265               '<th>'.__('Type').'</th>'. 
    266266               '<th>'.__('Status').'</th>'. 
    267                '<th>&nbsp;</th>'. 
     267               '<th>'.__('Edit').'</th>'. 
    268268               '</tr>%s</table>'; 
    269269                
     
    324324          } 
    325325           
    326           $comment_author = html::escapeHTML($this->rs->comment_author); 
    327           if (mb_strlen($comment_author) > 20) { 
    328                $comment_author = mb_strcut($comment_author,0,17).'...'; 
     326          $post_title = html::escapeHTML($this->rs->post_title); 
     327          if (mb_strlen($post_title) > 50) { 
     328               $post_title = mb_strcut($post_title,0,47).'...'; 
    329329          } 
    330330           
     
    335335          '<td class="nowrap">'. 
    336336          form::checkbox(array('comments[]'),$this->rs->comment_id,'','','',0).'</td>'. 
    337           '<td class="maximal"><a href="'.$post_url.'">'. 
    338           html::escapeHTML($this->rs->post_title).'</a>'. 
     337          '<td class="maximal"><a href="'.$author_url.'">'.html::escapeHTML($this->rs->comment_author).'</a></td>'. 
     338          '<td class="nowrap">'.dt::dt2str(__('%Y-%m-%d %H:%M'),$this->rs->comment_dt).'</td>'. 
     339          '<td class="nowrap"><a href="'.$post_url.'">'. 
     340          html::escapeHTML($post_title).'</a>'. 
    339341          ($this->rs->post_type != 'post' ? ' ('.html::escapeHTML($this->rs->post_type).')' : '').'</td>'. 
    340           '<td class="nowrap">'.dt::dt2str(__('%Y-%m-%d %H:%M'),$this->rs->comment_dt).'</td>'. 
    341           '<td class="nowrap"><a href="'.$author_url.'">'.html::escapeHTML($comment_author).'</a></td>'. 
    342342          '<td class="nowrap">'.($this->rs->comment_trackback ? __('trackback') : __('comment')).'</td>'. 
    343343          '<td class="nowrap status">'.$img_status.'</td>'. 
    344344          '<td class="nowrap status"><a href="'.$comment_url.'">'. 
    345           '<img src="images/edit-mini.png" alt="" title="'.__('Edit this comment').'" /></a></td>'; 
     345          '<img src="images/edit-mini.png" alt="" title="'.__('Edit this comment').'" /> '.__('Edit').'</a></td>'; 
    346346           
    347347          $res .= '</tr>'; 
Note: See TracChangeset for help on using the changeset viewer.

Sites map