improved icon display share

skala
Juan Carlos Raña 15 years ago
parent b8190d0465
commit 6b8eb84920
  1. 2
      main/document/document.inc.php
  2. 3
      main/document/document.php

@ -177,7 +177,7 @@ function create_document_link($www, $title, $path, $filetype, $size, $visibility
return '<a href="'.$url.'" title="'.$tooltip_title_alt.'" target="'.$target.'"'.$visibility_class.' style="float:left">'.$title.'</a>'.$force_download_html;
} else {
if(preg_match('/shared_folder/', urldecode($url)) && preg_match('/shared_folder$/', urldecode($url))==false){
return '<a href="'.$url.'" title="'.$tooltip_title_alt.'" target="'.$target.'"'.$visibility_class.' style="float:left">'.Display::return_icon('shared.png', get_lang('ResourceShared'), array('hspace' => '5', 'align' => 'middle', 'height' => 22, 'width' => 22)).build_document_icon_tag($filetype, $tooltip_title).'</a>';
return '<a href="'.$url.'" title="'.$tooltip_title_alt.'" target="'.$target.'"'.$visibility_class.' style="float:left">'.build_document_icon_tag($filetype, $tooltip_title).Display::return_icon('shared.png', get_lang('ResourceShared'), array('hspace' => '5', 'align' => 'middle', 'height' => 22, 'width' => 22)).'</a>';
}
else
{

@ -884,7 +884,8 @@ $column = 0;
if (($is_allowed_to_edit || $group_member_with_upload_rights) && count($docs_and_folders) > 1) {
$table->set_header($column++, '', false);
}
$table->set_header($column++, get_lang('Type'));
$table->set_header($column++, get_lang('Type'),true,array ('style' => 'width:30px;'));
$table->set_header($column++, get_lang('Name'));
//$column_header[] = array(get_lang('Comment'), true); // Display comment under the document name

Loading…
Cancel
Save