Changeset 16287 for trunk/cgi-bin/LJ/Widget/QotDResponses.pm
- Timestamp:
- 03/01/10 09:59:27 (6 months ago)
- Files:
-
- 1 modified
-
trunk/cgi-bin/LJ/Widget/QotDResponses.pm (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/cgi-bin/LJ/Widget/QotDResponses.pm
r15793 r16287 52 52 53 53 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 54 60 unless (@responses) { 55 my $answer_url = LJ::Widget::QotD->answer_url($q);56 57 61 $ret .= "<?p " . $class->ml('widget.qotdresponses.there.are.no.answers') . " p?>"; 58 62 $ret .= "<ul>"; 59 $ret .= "<li><a href='$answer_url'>" . $class->ml('widget.qotdresponses.answer.the.question') . "</a></li>" if $answer_url;60 63 $ret .= "<li><a href='" . $remote->journal_base . "/friends'>" . $class->ml('widget.qotdresponses.read.your.friends.page') . "</a></li>" 61 64 if $remote; … … 63 66 $ret .= "</ul>"; 64 67 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>";72 68 } 73 69
