Dotclear

Changeset 1508:60c4414bcd87


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

Comments list table, clarification and harmonization.

Files:
5 edited

Legend:

Unmodified
Added
Removed
  • admin/post.php

    r1468 r1508  
    733733     echo 
    734734     '<table class="comments-list"><tr>'. 
    735      '<th colspan="2">'.__('Author').'</th>'. 
     735     '<th colspan="2" class="first">'.__('Author').'</th>'. 
    736736     '<th>'.__('Date').'</th>'. 
    737737     '<th class="nowrap">'.__('IP address').'</th>'. 
    738738     '<th>'.__('Status').'</th>'. 
    739      '<th>&nbsp;</th>'. 
     739     '<th>'.__('Edit').'</th>'. 
    740740     '</tr>'; 
    741741      
     
    771771          '<td class="nowrap status">'.$img_status.'</td>'. 
    772772          '<td class="nowrap status"><a href="'.$comment_url.'">'. 
    773           '<img src="images/edit-mini.png" alt="" title="'.__('Edit this comment').'" /></a></td>'. 
     773          '<img src="images/edit-mini.png" alt="" title="'.__('Edit this comment').'" /> '.__('Edit').'</a></td>'. 
    774774           
    775775          '</tr>'; 
  • admin/style/default.css

    r1499 r1508  
    11801180     border-style: solid; 
    11811181     border-color: #e3e3e3; 
    1182      padding: .4rem .5rem; 
     1182     padding: .3em .5em; 
    11831183     vertical-align: top; 
    11841184} 
     
    11881188     border-color: #ccc; 
    11891189     background: #f3f3ff; 
    1190      padding: .4rem .5rem; 
     1190     padding: .3em .5em; 
    11911191     vertical-align: top; 
    11921192     text-align: left; 
     1193} 
     1194th.first img { 
     1195     padding-right: 24px; 
    11931196} 
    11941197.noborder td, td.noborder, .noborder th, th.noborder { 
     
    12401243     border: none; 
    12411244} 
    1242  
    1243 tr.line img.expand { 
    1244      margin-right: 10px; 
     1245tr.line img.expand, th img.expand { 
     1246     margin-right: 6px; 
    12451247     margin-bottom: -2px; 
    12461248} 
     
    17201722     #info-box2 {float:none;} 
    17211723     #dashboard-items div {display: block;margin-bottom: 1em; padding: 0 1em;} 
     1724     #help-button {height:26px; width:26px; background-color: #A2CBE9; padding: 0; margin:0;font-size: 1rem;line-height: 68px} 
    17221725} 
    17231726@media screen and (max-width: 492px) { 
     
    17281731     #info-box1 select {width: 12rem; margin-right: .6rem;} 
    17291732     #info-box1 p.nomobile, label.nomobile {display: none;} 
    1730      #help-button {height:26px; width:26px; background-color: #A2CBE9; padding: 0; margin:0;font-size: 1rem;line-height: 68px} 
    1731 } 
     1733} 
  • 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>'; 
  • locales/fr/main.po

    r1499 r1508  
    31383138msgid "Back to Blog themes" 
    31393139msgstr "Retour à Apparence du blog" 
     3140 
     3141msgid "Edit" 
     3142msgstr "Modifier" 
  • plugins/pages/page.php

    r1480 r1508  
    587587     if ($can_edit_page && $core->auth->check('delete,contentadmin',$core->blog->id)) 
    588588     { 
    589           $combo_action[__('delete')] = 'delete'; 
     589          $combo_action[__('Delete')] = 'delete'; 
    590590     } 
    591591      
     
    619619          '<p class="col checkboxes-helpers"></p>'. 
    620620           
    621           '<p class="col right"><label for="action">'.__('Selected comments action:').'</label> '. 
     621          '<p class="col right"><label for="action" class="classic">'.__('Selected comments action:').'</label> '. 
    622622          form::combo('action',$combo_action). 
    623623          form::hidden('redir',html::escapeURL($redir_url).'&amp;id='.$post_id.'&amp;co=1'). 
     
    692692     echo 
    693693     '<table class="comments-list"><tr>'. 
    694      '<th colspan="2">'.__('Author').'</th>'. 
     694     '<th colspan="2" class="nowrap first">'.__('Author').'</th>'. 
    695695     '<th>'.__('Date').'</th>'. 
    696696     '<th class="nowrap">'.__('IP address').'</th>'. 
    697697     '<th>'.__('Status').'</th>'. 
    698      '<th>&nbsp;</th>'. 
     698     '<th>'.__('Edit').'</th>'. 
    699699     '</tr>'; 
    700700      
     
    730730          '<td class="nowrap status">'.$img_status.'</td>'. 
    731731          '<td class="nowrap status"><a href="'.$comment_url.'">'. 
    732           '<img src="images/edit-mini.png" alt="" title="'.__('Edit this comment').'" /></a></td>'. 
     732          '<img src="images/edit-mini.png" alt="" title="'.__('Edit this comment').'" /> '.__('Edit').'</a></td>'. 
    733733           
    734734          '</tr>'; 
Note: See TracChangeset for help on using the changeset viewer.

Sites map