version 1.567, 2025/01/03 05:38:17
|
version 1.569, 2025/02/03 00:08:31
|
Line 1120 sub render_resource {
|
Line 1120 sub render_resource {
|
} |
} |
|
|
# Decide what to display |
# Decide what to display |
$result .= "$newBranchText$linkopen$icon$linkclose"; |
$result .= "$newBranchText$linkopen$icon"; |
|
|
my $curMarkerBegin = ''; |
my $curMarkerBegin = ''; |
my $curMarkerEnd = ''; |
my $curMarkerEnd = ''; |
Line 1160 sub render_resource {
|
Line 1160 sub render_resource {
|
$linkopen = "<a href=\"$link\">"; |
$linkopen = "<a href=\"$link\">"; |
} |
} |
} |
} |
$result .= "$curMarkerBegin$linkopen$title$partLabel$linkclose$curMarkerEnd$editmapLink$nonLinkedText</td>"; |
$result .= "$curMarkerBegin$title$partLabel$curMarkerEnd$linkclose$editmapLink$nonLinkedText</td>"; |
|
|
return $result; |
return $result; |
} |
} |
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'}) { |