From cb607e8551cb5ff9ec4322e45128ef2448f816c2 Mon Sep 17 00:00:00 2001 From: tomasz1986 <twilczynski@naver.com> Date: Thu, 21 Oct 2021 06:06:03 +0900 Subject: [PATCH] gui: Add direct link to Ignore Patterns from folder panel (fixes #4293) (#7993) --- gui/default/index.html | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/gui/default/index.html b/gui/default/index.html index 0549f5cb1..07cd90d69 100644 --- a/gui/default/index.html +++ b/gui/default/index.html @@ -419,12 +419,15 @@ <tr ng-if="!folder.paused"> <th><span class="fas fa-fw fa-home"></span> <span translate>Local State</span></th> <td class="text-right"> - <span tooltip data-original-title="{{model[folder.id].localFiles | alwaysNumber | localeNumber}} {{'files' | translate}}, {{model[folder.id].localDirectories | alwaysNumber | localeNumber}} {{'directories' | translate}}, ~{{model[folder.id].localBytes | binary}}B"> + <div> + <span tooltip data-original-title="{{model[folder.id].localFiles | alwaysNumber | localeNumber}} {{'files' | translate}}, {{model[folder.id].localDirectories | alwaysNumber | localeNumber}} {{'directories' | translate}}, ~{{model[folder.id].localBytes | binary}}B"> <span class="far fa-copy"></span> {{model[folder.id].localFiles | alwaysNumber | localeNumber}}  <span class="far fa-folder"></span> {{model[folder.id].localDirectories | alwaysNumber | localeNumber}}  - <span class="far fa-hdd"></span> ~{{model[folder.id].localBytes | binary}}B<!-- get rid of the annoying trailing whitespace - --><span ng-if="model[folder.id].ignorePatterns"><br/><i><small translate class="text-muted">Reduced by ignore patterns</small></i></span> - </span> + <span class="far fa-hdd"></span> ~{{model[folder.id].localBytes | binary}}B + </div> + <div ng-if="model[folder.id].ignorePatterns"> + <a href="" ng-click="editFolderExisting(folder, '#folder-ignores')"><i class="small" translate>Reduced by ignore patterns</i></a> + </div> </td> </tr> <tr ng-if="model[folder.id].needTotalItems > 0">