Changeset 1128


Ignore:
Timestamp:
04/22/10 11:23:17 (2 years ago)
Author:
vlad_x2
Message:
  • Added support for custom CSS class for table header.
  • Removed hard-coded new feature indicator, added a CSS class "new_feature".

http://reviewboard.infoarena.ro/r/150/

Location:
trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk

    • Property reviewboard:url set to http://reviewboard.infoarena.ro
  • trunk/www/format/table.php

    r1073 r1128  
    8787            if (isset($column['css_class'])) { 
    8888                $args['class'] = $column['css_class']; 
     89                if (isset($column['title_css_class'])) { 
     90                    $args['class'] .= ' ' . $column['title_css_class']; 
     91                } 
    8992            } 
    9093            if (isset($column['css_style'])) { 
  • trunk/www/macros/macro_tasks.php

    r1119 r1128  
    194194    if ($show_ratings) { 
    195195        $column_infos[] = array( 
    196                 'html_title' => 'Dificultate<span style="color: red; font-weight:bold;"><sup>nou!</sup></span>', 
     196                'html_title' => 'Dificultate', 
     197                'title_css_class' => 'new_feature', 
    197198                'css_class' => 'rating', 
    198199                'key' => 'rating', 
  • trunk/www/static/css/screen.css

    r1119 r1128  
    15621562    display: none; 
    15631563} 
     1564 
     1565.new_feature:after { 
     1566    color: red; 
     1567    font-weight: bold; 
     1568    content: "nou!"; 
     1569    font-size: 10px; 
     1570    vertical-align: super; 
     1571} 
Note: See TracChangeset for help on using the changeset viewer.