瀏覽代碼

HUE-1027 [fb] Remove trash link when trash is disabled

Abraham Elmahrek 12 年之前
父節點
當前提交
c231d58127
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      apps/filebrowser/src/filebrowser/templates/fb_components.mako

+ 1 - 1
apps/filebrowser/src/filebrowser/templates/fb_components.mako

@@ -30,7 +30,7 @@ from django.utils.translation import ugettext as _
                 <input id="hueBreadcrumbText" type="text" class="input-xxlarge" style="margin-top:4px;margin-right:4px;display:none" data-bind="value: currentPath" />
             </li>
             <li class="pull-right">
-                <a href="${url('filebrowser.views.view', path=urlencode(path))}?default_to_trash" style="line-height:18px"><i class="icon-trash"></i> ${_('Trash')}</a>
+                <a href="${url('filebrowser.views.view', path=urlencode(path))}?default_to_trash" style="line-height:18px" data-bind="visible: trashEnabled"><i class="icon-trash"></i> ${_('Trash')}</a>
             </li>
         </ul>
     % else: