Skip to content

Commit

Permalink
SAK-48206 File titles in Resources are doubled (sakaiproject#11128)
Browse files Browse the repository at this point in the history
Co-authored-by: Kunal Jaykam <[email protected]>
  • Loading branch information
kunaljaykam and Kunal Jaykam authored Dec 20, 2022
1 parent ef1cba1 commit f314c26
Showing 1 changed file with 4 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -430,24 +430,20 @@
&#169;
#elseif($item.isCollection())
#if($item.isTooBigNav())
<span class="resource-name visible-sm-inline-block visible-xs-inline-block truncate">$formattedText.escapeHtml($item.name)</span>
<span class="resource-name hidden-sm hidden-xs">$formattedText.escapeHtml($item.name)</span>
<span class="resource-name d-inline-block text-truncate">$formattedText.escapeHtml($item.name)</span>
#else
<a href="#"
onclick="document.getElementById('sakai_action').value='doNavigate';document.getElementById('collectionId').value='$qid';document.getElementById('navRoot').value='$formattedText.escapeUrl($item.root)';document.getElementById('showForm').submit();"
title= "$item.hoverText">
<span class="resource-name visible-sm-inline-block visible-xs-inline-block truncate">$formattedText.escapeHtml($item.name)</span>
<span class="resource-name hidden-sm hidden-xs">$formattedText.escapeHtml($item.name)</span>
<span class="resource-name d-inline-block text-truncate">$formattedText.escapeHtml($item.name)</span>
</a>
#end
#else
#if($item.isTooBigNav())
<span class="resource-name visible-sm-inline-block visible-xs-inline-block truncate">$formattedText.escapeHtml($item.name)</span>
<span class="resource-name hidden-sm hidden-xs">$formattedText.escapeHtml($item.name)</span>
<span class="resource-name d-inline-block text-truncate">$formattedText.escapeHtml($item.name)</span>
#else
<a href="$item.accessUrl" target="$item.target" title="$item.hoverText">
<span class="resource-name visible-sm-inline-block visible-xs-inline-block truncate">$formattedText.escapeHtml($item.name)</span>
<span class="resource-name hidden-sm hidden-xs">$formattedText.escapeHtml($item.name)</span>
<span class="resource-name d-inline-block text-truncate">$formattedText.escapeHtml($item.name)</span>
</a>
#end
#end
Expand Down

0 comments on commit f314c26

Please sign in to comment.