Skip to content

Commit

Permalink
MDL-16265, add a preview link under each icon.
Browse files Browse the repository at this point in the history
  • Loading branch information
dongsheng committed Aug 29, 2008
1 parent a67af35 commit 8a1d4a4
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion repository/lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -641,6 +641,7 @@ function repository_get_client($context){
$strsearch = get_string('search', 'repository');
$strsearching = get_string('searching', 'repository');
$strsubmit = get_string('submit', 'repository');
$strpreview = get_string('preview', 'repository');
$strupload = get_string('upload', 'repository');
$struploading = get_string('uploading', 'repository');
$css = <<<EOD
Expand Down Expand Up @@ -932,7 +933,9 @@ function _client(){
if(list[k].children){
title.innerHTML = '<i><u>'+list[k].title+'</i></u>';
} else {
title.innerHTML = list[k].title;
if(list[k].url)
title.innerHTML = '<p><a target="_blank" href="'+list[k].url+'">$strpreview</a></p>';
title.innerHTML += list[k].title;
}
title.className = 'label';
el.appendChild(frame);
Expand Down

0 comments on commit 8a1d4a4

Please sign in to comment.