diff options
author | 2019-02-12 08:41:33 +0100 | |
---|---|---|
committer | 2019-02-12 15:41:33 +0800 | |
commit | 23e0512dda9979a0593577d0143d95a0fb1cacaa (patch) | |
tree | 4f3ab9ee7e361e16616853cf517bcd10fcc21e4d /source/features/milestone-navigation.tsx | |
parent | b70cecf2f842dab5c22fb7e4df0e2bbab782fa1d (diff) | |
download | refined-github-23e0512dda9979a0593577d0143d95a0fb1cacaa.tar.gz refined-github-23e0512dda9979a0593577d0143d95a0fb1cacaa.tar.zst refined-github-23e0512dda9979a0593577d0143d95a0fb1cacaa.zip |
Drop feature `milestone-navigation` (#1769)
Now part of GitHub
Diffstat (limited to 'source/features/milestone-navigation.tsx')
-rw-r--r-- | source/features/milestone-navigation.tsx | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/source/features/milestone-navigation.tsx b/source/features/milestone-navigation.tsx deleted file mode 100644 index a42e57ea..00000000 --- a/source/features/milestone-navigation.tsx +++ /dev/null @@ -1,26 +0,0 @@ -import {React} from 'dom-chef/react'; -import select from 'select-dom'; -import features from '../libs/features'; -import {getRepoURL} from '../libs/utils'; - -const repoUrl = getRepoURL(); - -function init() { - select('.repository-content').before( - <div class="subnav"> - <div class="subnav-links float-left" role="navigation"> - <a href={`/${repoUrl}/labels`} class="subnav-item">Labels</a> - <a href={`/${repoUrl}/milestones`} class="subnav-item">Milestones</a> - </div> - </div> - ); -} - -features.add({ - id: 'milestone-navigation', - include: [ - features.isMilestone - ], - load: features.onAjaxedPages, - init -}); |