Changeset 194

Show
Ignore:
Timestamp:
01/23/09 22:01:52 (10 months ago)
Author:
cedenoj
Message:

refs #2827 added a little bit of css to clean up the forum topics listing

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • elgg/trunk/mod/forum/css

    r176 r194  
    33        padding: 0; 
    44        margin: 0; 
     5    margin-top:2em; 
    56} 
    67 
     
    1011        font: bold 11px "Trebuchet MS", Verdana, Arial, Helvetica, sans-serif; 
    1112        background:url({{url}}mod/forum/images/toolbar_nav_grey.gif) repeat-x bottom; 
     13    /* 
    1214        border-right: solid 1px #eeeeee; 
    1315        border-bottom: 0; 
    1416        border-top: solid 1px #eeeeee; 
    1517        border-left: solid 1px #eeeeee; 
     18    */ 
    1619        letter-spacing: 2px; 
    1720        text-transform: uppercase; 
     
    2124 
    2225#forum_table th.nobg { 
     26    /* 
    2327        border-top: 0; 
    2428        border-left: 0; 
    2529        border-right: dotted 0px #eeeeee; 
    2630        border-bottom: dotted 1px #eeeeee; 
     31    */ 
    2732        background: none; 
    2833} 
     
    3439 
    3540#forum_table td { 
     41    /* 
    3642        border-right: dotted 1px #eeeeee; 
    3743        border-bottom: dotted 1px #eeeeee; 
    3844        border-left: dotted 0px #eeeeee; 
    3945        border-top: dotted 0px #eeeeee; 
     46    */ 
    4047        padding: 6px 6px 6px 6px; 
    4148} 
     49 
     50#forum_table tr.odd { 
     51    background-color:#FBF6EA; 
     52} 
     53 
     54#forum_table tr.even { 
     55    /*background-color:#fcfcfc;*/ 
     56} 
     57 
     58#forum_table tr.odd td { 
     59        border-left: 0px #F6ECD1; 
     60        border-right:  0px #F6ECD1; 
     61    border:1px dotted #DDDDDD 
     62} 
     63#forum_table tr.even td { 
     64        border-left: 0px #fff; 
     65        border-right:  0px #fff; 
     66    border:1px dotted #DDDDDD 
     67} 
     68 
    4269 
    4370#forum_table td.cent { 
     
    5279 
    5380#forum_table td.usercol { 
     81    /* 
    5482        border-left: dotted 1px #eeeeee; 
    5583        border-right: dotted 1px #eeeeee; 
    5684        border-bottom: dotted 1px #eeeeee; 
    5785        border-top: 0; 
     86    */ 
    5887        font: bold 10px "Trebuchet MS", Verdana, Arial, Helvetica, sans-serif; 
    5988} 
  • elgg/trunk/mod/forum/forum.php

    r176 r194  
    3838                                $num = $num + 1; 
    3939                    $PAGE->menu_sub[$num]['name'] = "forum:add_discussion";  
    40                     $PAGE->menu_sub[$num]['html'] = "<a href=\"{$CFG->wwwroot}{$weblog}/weblog/edit\">" . __gettext("Add New Item") . "</a>"; 
     40                    $PAGE->menu_sub[$num]['html'] = "<a href=\"{$CFG->wwwroot}{$weblog}/weblog/edit\">" . __gettext("Add New Topic") . "</a>"; 
    4141                        } 
    4242                         
     
    9191                                        <table id=\"forum_table\" cellspacing=\"0\" summary=\"Forum Table\"> 
    9292                                        <tr> 
    93                                                 <th scope=\"col\" class=\"nobg\">" . __gettext("Discussion Topic") . "</th> 
     93                                                <th class=\"cent\">" . __gettext("Discussion Topic") . "</th> 
    9494                                                <th class=\"cent\">" . __gettext("Started by") . "</th> 
    9595                                                <th class=\"cent\">" . __gettext("Comments") . "</th> 
     
    101101                                                 
    102102                                                 
     103                        $row_class = 'odd'; 
    103104                                                foreach($posts as $post) { 
     105                            if ($row_class == 'odd') { 
     106                                $row_class = 'even'; 
     107                            } else { 
     108                                $row_class = 'odd'; 
     109                            } 
    104110                                                         
    105111                                                        $time = strftime("%B %d, %Y",$post->posted); 
     
    139145                                                         
    140146                                                        $body .= " 
    141  
    142                                                                 <tr scope=\"row\"> 
     147                                                                <tr scope=\"row\" class=\"$row_class\"> 
    143148                                                                <td><a href=\"" . $CFG->wwwroot . "mod/forum/" . $post->ident . ".html\" title=\"" . __gettext("View full discussion...") . "\">" . $post->title . "</a></td> 
    144149                                                                <td class=\"cent\"><a href=\"" . $CFG->wwwroot . user_info("username",$post->owner) . "/" . "\" title=\"" . __gettext("View profile...") . "\">" . user_info("name",$post->owner) . "</a></td> 
     
    156161 
    157162            if (run("permissions:check", "weblog")) { 
    158                 $body .= '<a href="' . $CFG->wwwroot . $weblog . '/weblog/edit" title="' . __gettext("Add New Item") . '">' . __gettext("Add New Item") . '...</a><br><br>'; 
    159          
     163                $body .= '<form action="'. $CFG->wwwroot . $weblog . '/weblog/edit">'; 
     164                $body .= '<input type="submit" value="'.__gettext("Add New Topic").'"/></form>'; 
    160165            } 
    161166                                 
  • elgg/trunk/mod/forum/forum_view_thread.php

    r176 r194  
    5757                        $num = count($PAGE->menu_sub) + 1; 
    5858            $PAGE->menu_sub[$num]['name'] = "forum:blogview";  
    59                         $PAGE->menu_sub[$num]['html'] = "<a href=\"" . $CFG->wwwroot . $weblog . "/weblog/" . $post->ident . ".html#new_weblog_comment\" title=\"" . __gettext("Add a comment...") . "\">" . __gettext("Add new comment") . "</a>"; 
     59                        $PAGE->menu_sub[$num]['html'] = "<a href=\"" . $CFG->wwwroot . $weblog . "/weblog/" . $post->ident . ".html#new_weblog_comment\" title=\"" . __gettext("Add a comment...") . "\">" . __gettext("Post Reply") . "</a>"; 
    6060        } 
    6161                 
     
    128128                                                                                                         
    129129                                                         
    130                                                         $body .= "</table><br><a href=\"" . $CFG->wwwroot . user_info('username',$post->weblog) . "/weblog/" . $post->ident . ".html#new_weblog_comment\" title=\"" . __gettext("Add new comment...") . "\">" . __gettext("Add new comment...") . "</a><br><br>"; 
     130                            $body .= "</table><br>"; 
     131                            $body .= '<form action="'. $CFG->wwwroot . $weblog . user_info('username',$post->weblog) . "/weblog/" . $post->ident . '.html#new_weblog_comment" >'; 
     132                            $body .= '<input type="submit" value="'.__gettext("Reply Post").'"/></form>'; 
    131133                                                } 
    132134