4-url-linking-2.patch 697 B

1234567891011121314151617181920
  1. --- new-file-modal.pug
  2. +++ new-file-modal.pug
  3. @@ -21,11 +21,12 @@ script(type='text/ng-template', id='newFileModalTemplate')
  4. i.fa.fa-fw.fa-folder-open
  5. |
  6. | From Another Project
  7. - li(ng-class="type == 'url' ? 'active' : null")
  8. - a(href, ng-click="type = 'url'")
  9. - i.fa.fa-fw.fa-globe
  10. - |
  11. - | From External URL
  12. + if hasFeature('link-url')
  13. + li(ng-class="type == 'url' ? 'active' : null")
  14. + a(href, ng-click="type = 'url'")
  15. + i.fa.fa-fw.fa-globe
  16. + |
  17. + | From External URL
  18. != moduleIncludes("newFileModal:selector", locals)
  19. td(class="modal-new-file--body modal-new-file--body-{{type}}")