Show
Ignore:
Timestamp:
03/01/10 09:59:27 (6 months ago)
Author:
mchernyshev
Message:

LJSUP-5539: There is no question preview

  • show question preview when there is no answers;
  • remove 'answer' link below block so there is such button inside block.
Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/cgi-bin/LJ/Widget/QotDResponses.pm

    r15793 r16287  
    5252 
    5353    my $ret = ""; 
     54 
     55    unless ($hide_question) { 
     56        my $widget_html = LJ::Widget::QotD->render(question => $q, nocontrols => 1); 
     57        $ret .= "<div class='qotd-container'>$widget_html</div>"; 
     58    } 
     59 
    5460    unless (@responses) { 
    55         my $answer_url = LJ::Widget::QotD->answer_url($q); 
    56  
    5761        $ret .= "<?p " . $class->ml('widget.qotdresponses.there.are.no.answers') . " p?>"; 
    5862        $ret .= "<ul>"; 
    59         $ret .= "<li><a href='$answer_url'>" . $class->ml('widget.qotdresponses.answer.the.question') . "</a></li>" if $answer_url; 
    6063        $ret .= "<li><a href='" . $remote->journal_base . "/friends'>" . $class->ml('widget.qotdresponses.read.your.friends.page') . "</a></li>" 
    6164            if $remote; 
     
    6366        $ret .= "</ul>"; 
    6467        return $ret; 
    65     } 
    66  
    67  
    68     unless ($hide_question) { 
    69        my $widget_html = LJ::Widget::QotD->render(question => $q, nocontrols => 1); 
    70  
    71         $ret .= "<div class='qotd-container'>$widget_html</div>"; 
    7268    } 
    7369