editIgnoresModalView.html 1.8 KB

1234567891011121314151617181920212223242526
  1. <modal id="editIgnores" status="default" heading="{{'Ignore Patterns' | translate}}" large="yes" closeable="yes">
  2. <div class="modal-body">
  3. <p translate>Enter ignore patterns, one per line.</p>
  4. <textarea class="form-control" rows="15"></textarea>
  5. <hr/>
  6. <p class="small"><span translate>Quick guide to supported patterns</span> (<a href="https://docs.syncthing.net/users/ignoring.html" target="_blank" translate>full documentation</a>):</p>
  7. <dl class="dl-horizontal dl-narrow small">
  8. <dt><code>!</code></dt> <dd><span translate>Inversion of the given condition (i.e. do not exclude)</span></dd>
  9. <dt><code>*</code></dt> <dd><span translate>Single level wildcard (matches within a directory only)</span></dd>
  10. <dt><code>**</code></dt> <dd><span translate>Multi level wildcard (matches multiple directory levels)</span></dd>
  11. <dt><code>//</code></dt> <dd><span translate>Comment, when used at the start of a line</span></dd>
  12. </dl>
  13. </div>
  14. <div class="modal-footer">
  15. <div class="pull-left" ng-show="editingExisting"><span translate translate-value-path="{{currentFolder.path}}{{system.pathSeparator}}.stignore">Editing {%path%}.</span></div>
  16. <div class="pull-left" ng-show="!editingExisting"><span translate translate-value-path="{{currentFolder.path}}{{system.pathSeparator}}.stignore">Creating ignore patterns, overwriting an existing file at {%path%}.</span></div>
  17. <button type="button" class="btn btn-primary btn-sm" ng-click="editingExisting ? saveIgnores() : angular.noop()" data-dismiss="modal">
  18. <span class="fa fa-check"></span>&nbsp;<span translate>Save</span>
  19. </button>
  20. <button type="button" class="btn btn-default btn-sm" data-dismiss="modal">
  21. <span class="fa fa-times"></span>&nbsp;<span translate>Close</span>
  22. </button>
  23. </div>
  24. </modal>