Changeset 11147
- Timestamp:
- 07/22/2021 12:45:52 AM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/style/trac/wp-trac.js
r10509 r11147 55 55 // Other Bug Trackers which the WordPress project uses for various things. 56 56 bugTrackerLocations = { 57 /* 58 * Fields & options are... 59 * tracker: The URL to redirect the reporter to 60 * tracker_text: The Text to display 61 * Optional: 62 * prevent_changing_to: Set to true to prevent an existing ticket being changed to it. 63 * enable_copy: Enable copy-to for the report, GitHub /choose cannot use this. 64 * allow_bypass: Set to true to allow ignoring the notice. 65 */ 57 66 'WordPress.org Site': { 58 67 tracker: 'https://meta.trac.wordpress.org/newticket', 59 68 tracker_text: 'WordPress.org Meta Trac', 60 prevent_changing_to: true 69 prevent_changing_to: true, 70 enable_copy: true, 71 allow_bypass: true 61 72 }, 62 73 'Editor': { … … 64 75 tracker_text: 'Gutenberg GitHub Repository', 65 76 bug_text: "the Gutenberg Editor", 66 disable_copy: true, // Gutenberg has a bug-report flow.67 77 allow_bypass: true, 68 78 }, … … 70 80 tracker: 'https://github.com/WordPress/wordcamp.org/issues/new/choose', 71 81 tracker_text: 'WordCamp.org GitHub Repository', 72 disable_copy: true // WordCamp has a bug-report flow.73 82 }, 74 83 'Five For The Future': { 75 84 tracker: 'https://github.com/WordPress/five-for-the-future/issues/new', 76 tracker_text: 'Five for the Future GitHub Repository' 85 tracker_text: 'Five for the Future GitHub Repository', 86 enable_copy: true 77 87 }, 78 88 'learn.wordpress.org': { 79 89 tracker: 'https://github.com/WordPress/learn/issues/new', 80 tracker_text: 'WordPress.org Learn GitHub Repository' 90 tracker_text: 'WordPress.org Learn GitHub Repository', 91 enable_copy: true 92 }, 93 'Pattern Directory': { 94 tracker: 'https://github.com/WordPress/pattern-directory/issues/new/choose', 95 tracker_text: 'WordPress.org Pattern Directory GitHub Repository', 81 96 } 82 97 }; … … 763 778 var tracker = bugTrackerLocations[ selectedComponent ]; 764 779 765 // If the component (ie. Editor) allows bypassing the warning .. or if it's a Bug Gardener,show the create buttons.766 if ( tracker.allow_bypass || wpTrac.gardener) {780 // If the component (ie. Editor) allows bypassing the warning show the create buttons. 781 if ( tracker.allow_bypass ) { 767 782 toggle.show(); 768 783 } … … 774 789 '</p><p>' + 775 790 'Would you mind opening this ticket over there instead? ' + 776 ( tracker. disable_copy ? '' : '<a href="' + tracker.tracker + '" id="new-tracker-ticket">Click here to copy your summary and description over</a>.' ) +791 ( tracker.enable_copy ? '<a href="' + tracker.tracker + '" id="new-tracker-ticket">Click here to copy your summary and description over</a>.' : '' ) + 777 792 '</p>' + 778 793 ( tracker.allow_bypass ? '<p>If this isn\'t related to ' + ( tracker.bug_text || selectedComponent ) + ', please continue to open this ticket here.</p>' : '' ) +
Note: See TracChangeset
for help on using the changeset viewer.