version 1.568, 2025/01/31 16:07:31
|
version 1.569, 2025/02/03 00:08:31
|
Line 1594 sub render {
|
Line 1594 sub render {
|
my $printKey = $args->{'printKey'}; |
my $printKey = $args->{'printKey'}; |
my $printCloseAll = $args->{'printCloseAll'}; |
my $printCloseAll = $args->{'printCloseAll'}; |
if (!defined($printCloseAll)) { $printCloseAll = 1; } |
if (!defined($printCloseAll)) { $printCloseAll = 1; } |
|
|
# Print key? |
# Print key? |
if ($printKey) { |
if ($printKey) { |
$result .= '<table border="0" cellpadding="2" cellspacing="0">'; |
my $location = &Apache::loncommon::lonhttpdurl("/adm/lonMisc"); |
$result.='<tr><td align="right" valign="bottom">Key: </td>'; |
$result .= '<table border="0" cellpadding="2" cellspacing="0">'. |
my $location=&Apache::loncommon::lonhttpdurl("/adm/lonMisc"); |
'<tr><td align="right" valign="bottom">Key: </td>'. |
if ($navmap->{LAST_CHECK}) { |
'<td align="center" valign="bottom"> '. |
$result .= |
'<img src="'.$location.'/chat.gif" alt="" /> '.&mt('Unread Discussion'). |
'<img src="'.$location.'/chat.gif" alt="" /> '.&mt('New discussion since').' '. |
'</td><td align="center" valign="bottom">'. |
strftime("%A, %b %e at %I:%M %P", localtime($navmap->{LAST_CHECK})). |
' <img src="'.$location.'/feedback.gif" alt="" /> '. |
'</td><td align="center" valign="bottom"> '. |
&mt('New message (click to open)'). |
'<img src="'.$location.'/feedback.gif" alt="" /> '.&mt('New message (click to open)').'<p>'. |
'</td></tr></table>'."\n"; |
'</td>'; |
|
} else { |
|
$result .= '<td align="center" valign="bottom"> '. |
|
'<img src="'.$location.'/chat.gif" alt="" /> '.&mt('Discussions').'</td><td align="center" valign="bottom">'. |
|
' <img src="'.$location.'/feedback.gif" alt="" /> '.&mt('New message (click to open)'). |
|
'</td>'; |
|
} |
|
|
|
$result .= '</tr></table>'; |
|
} |
} |
|
|
if ($printCloseAll && !$args->{'resource_no_folder_link'}) { |
if ($printCloseAll && !$args->{'resource_no_folder_link'}) { |