canvas-lms/public/javascripts
Nate Armstrong ea3bab6d46 Hide download button on internal links
closes LS-2055
flag=rce_better_file_downloading

test plan: automated :)

If you want extra credit:
- Enable 'RCE Better File Downloading'
- Create a new page with:
  - course link (like a page)
    - edit html and add class='instructure_file_link' to the `a` tag
  - external link (like http://google.com)
  - link to a document (like a pdf) and keep it a link
- The Course Link should not have a download button
- The external link should not have a download button
- The document link should have a download button

Change-Id: I8136175164341cb844ad9036b371b956db810ff0
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/261507
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Jonathan Guardado <jonathan.guardado@instructure.com>
QA-Review: Jonathan Guardado <jonathan.guardado@instructure.com>
Product-Review: Nate Armstrong <narmstrong@instructure.com>
2021-03-24 19:43:07 +00:00
..
bower/ember Move k5uplodaer to /packages 2019-05-10 18:30:51 +00:00
custom_moment_locales add support for catalan (CA) locale 2020-09-02 15:49:02 +00:00
custom_timezone_locales add support for catalan (CA) locale 2020-09-02 15:49:02 +00:00
eportfolios Run prettier and add in public/javascripts to prettier whitelist 2019-10-10 22:09:33 +00:00
lti Fix "invalid messageType LtiDeepLinkingResponse" 2021-01-15 17:46:05 +00:00
mediaelement sanitize data-* attributes from subtitles 2020-08-18 20:04:25 +00:00
quizzes fix pressing enter update quiz question scores in SpeedGrader 2020-06-10 18:33:27 +00:00
str recursively escape objects 2020-08-18 19:06:36 +00:00
tinymce_plugins LTI icon shows as a 'bomb' instead of the tool's icon 2021-03-12 17:58:07 +00:00
translations switch _core_en.js to rails 6 2021-02-09 15:16:59 +00:00
vendor modernize canvas_quizzes 2021-01-14 22:45:10 +00:00
.i18nignore (re) decentralize i18nliner configuration 2021-03-10 18:52:49 +00:00
.i18nrc (re) decentralize i18nliner configuration 2021-03-10 18:52:49 +00:00
.xssignore modernize canvas_quizzes 2021-01-14 22:45:10 +00:00
Backbone.js Run prettier and add in public/javascripts to prettier whitelist 2019-10-10 22:09:33 +00:00
INST.js Run prettier and add in public/javascripts to prettier whitelist 2019-10-10 22:09:33 +00:00
LtiThumbnailLauncher.js Run prettier and add in public/javascripts to prettier whitelist 2019-10-10 22:09:33 +00:00
account_authorization_configs.js fix <Select> deprecation in AuthTypePicker 2019-08-02 16:44:07 +00:00
account_settings.js remove "responsive_admin_settings" flag 2020-07-22 21:08:43 +00:00
account_statistics.js Run prettier and add in public/javascripts to prettier whitelist 2019-10-10 22:09:33 +00:00
ajax_errors.js Run prettier and add in public/javascripts to prettier whitelist 2019-10-10 22:09:33 +00:00
alerts.js Run prettier and add in public/javascripts to prettier whitelist 2019-10-10 22:09:33 +00:00
authentication_provider_debugging.js Run prettier and add in public/javascripts to prettier whitelist 2019-10-10 22:09:33 +00:00
authentication_providers.js Run prettier and add in public/javascripts to prettier whitelist 2019-10-10 22:09:33 +00:00
axios.js Run prettier and add in public/javascripts to prettier whitelist 2019-10-10 22:09:33 +00:00
calcCmd.js Run prettier and add in public/javascripts to prettier whitelist 2019-10-10 22:09:33 +00:00
calendar_move.js Run prettier and add in public/javascripts to prettier whitelist 2019-10-10 22:09:33 +00:00
collaborations.js Collaborations: support deep linking response 2021-01-20 16:14:06 +00:00
communication_channels.js Run prettier and add in public/javascripts to prettier whitelist 2019-10-10 22:09:33 +00:00
content_exports.js Run prettier and add in public/javascripts to prettier whitelist 2019-10-10 22:09:33 +00:00
content_locks.js show correct reason for date locked assignments being unavailable 2021-02-17 16:10:14 +00:00
context_modules.js Support MathML render on new modules 2021-02-03 16:44:13 +00:00
context_modules_helper.js sanitize data-item-href in rich text 2020-01-23 17:24:17 +00:00
convert_case.js Run prettier and add in public/javascripts to prettier whitelist 2019-10-10 22:09:33 +00:00
course.js Run prettier and add in public/javascripts to prettier whitelist 2019-10-10 22:09:33 +00:00
course_settings.js Hide course update_default_pages setting if n/a 2020-09-02 15:58:54 +00:00
course_settings_helper.js Run prettier and add in public/javascripts to prettier whitelist 2019-10-10 22:09:33 +00:00
dummyI18nResource.js Run prettier and add in public/javascripts to prettier whitelist 2019-10-10 22:09:33 +00:00
easy_student_view.js Hide student view button on syllabus/assignment edit 2020-11-30 16:46:52 +00:00
edit_rubric.js account rubrics edited in courses should use course scale 2020-12-15 15:22:29 +00:00
ember.js auto-lint some of gradebook 2019-03-04 13:55:35 +00:00
eportfolio.js properly display submission in eportfolio 2019-11-15 21:37:53 +00:00
file_inline.js Run prettier and add in public/javascripts to prettier whitelist 2019-10-10 22:09:33 +00:00
findLinkForService.js Run prettier and add in public/javascripts to prettier whitelist 2019-10-10 22:09:33 +00:00
find_outcome.js Run prettier and add in public/javascripts to prettier whitelist 2019-10-10 22:09:33 +00:00
fullcalendar_locales.js add support for catalan (CA) locale 2020-09-02 15:49:02 +00:00
global_announcements.js Run prettier and add in public/javascripts to prettier whitelist 2019-10-10 22:09:33 +00:00
gradebook_uploads.js Show override score changes on confirm screen 2020-12-22 23:03:40 +00:00
grading_standards.js fix whitespace in grading standards 2020-04-10 15:12:04 +00:00
i18nObj.js add support for catalan (CA) locale 2020-09-02 15:49:02 +00:00
instructure.js Hide download button on internal links 2021-03-24 19:43:07 +00:00
instructure_helper.js Run prettier and add in public/javascripts to prettier whitelist 2019-10-10 22:09:33 +00:00
jquery.ajaxJSON.js Run prettier and add in public/javascripts to prettier whitelist 2019-10-10 22:09:33 +00:00
jquery.disableWhileLoading.js add progress bar for content migration uploads 2020-06-19 05:30:56 +00:00
jquery.doc_previews.js Better file URLs for viewing, not downloading 2020-10-21 18:48:33 +00:00
jquery.dropdownList.js Run prettier and add in public/javascripts to prettier whitelist 2019-10-10 22:09:33 +00:00
jquery.fancyplaceholder.js Run prettier and add in public/javascripts to prettier whitelist 2019-10-10 22:09:33 +00:00
jquery.google-analytics.js Run prettier and add in public/javascripts to prettier whitelist 2019-10-10 22:09:33 +00:00
jquery.inst_tree.js Run prettier and add in public/javascripts to prettier whitelist 2019-10-10 22:09:33 +00:00
jquery.instructure_date_and_time.js add support for catalan (CA) locale 2020-09-02 15:49:02 +00:00
jquery.instructure_forms.js Enable usage rights on discussion topic files 2020-10-07 22:40:04 +00:00
jquery.instructure_jquery_patches.js remove “while(1);” json protection 2021-03-23 16:21:44 +00:00
jquery.instructure_misc_helpers.js Run prettier and add in public/javascripts to prettier whitelist 2019-10-10 22:09:33 +00:00
jquery.instructure_misc_plugins.js Change assignment delete confirmation to danger on calendar 2019-12-13 16:42:55 +00:00
jquery.keycodes.js Run prettier and add in public/javascripts to prettier whitelist 2019-10-10 22:09:33 +00:00
jquery.loadingImg.js New better file previewing UI 2021-02-16 17:56:18 +00:00
jquery.scrollToVisible.js Run prettier and add in public/javascripts to prettier whitelist 2019-10-10 22:09:33 +00:00
jquery.templateData.js Run prettier and add in public/javascripts to prettier whitelist 2019-10-10 22:09:33 +00:00
jquery.toJSON.js Run prettier and add in public/javascripts to prettier whitelist 2019-10-10 22:09:33 +00:00
jquery.ui.menu.inputmenu.js Run prettier and add in public/javascripts to prettier whitelist 2019-10-10 22:09:33 +00:00
ldap_settings_test.js Run prettier and add in public/javascripts to prettier whitelist 2019-10-10 22:09:33 +00:00
link_enrollment.js Run prettier and add in public/javascripts to prettier whitelist 2019-10-10 22:09:33 +00:00
lock_reason.js show correct reason for date locked assignments being unavailable 2021-02-17 16:10:14 +00:00
login.js Put focus on the password recovery flash (a11y) 2020-03-25 19:12:05 +00:00
manage_avatars.js Run prettier and add in public/javascripts to prettier whitelist 2019-10-10 22:09:33 +00:00
mathml.js Formula alignment gets ignored when Math: Updated Equation flag is on 2021-03-18 17:32:17 +00:00
mathquill.js [codemod] convert functions to fat arrows 2019-08-26 22:20:33 +00:00
media_comments.js create media submission comments in user context 2020-11-13 16:15:14 +00:00
mergeI18nTranslations.js Run prettier and add in public/javascripts to prettier whitelist 2019-10-10 22:09:33 +00:00
message_students.js fix string translation in “Message students who” 2019-07-31 23:06:45 +00:00
moderate_quiz.js do not show 0 points for moderated quizzes 2020-04-09 14:54:54 +00:00
moment_formats.js Run prettier and add in public/javascripts to prettier whitelist 2019-10-10 22:09:33 +00:00
oauth2_confirm.js Run prettier and add in public/javascripts to prettier whitelist 2019-10-10 22:09:33 +00:00
page_views.js [codemod] convert functions to fat arrows 2019-08-26 22:20:33 +00:00
plugins.js Run prettier and add in public/javascripts to prettier whitelist 2019-10-10 22:09:33 +00:00
prerequisites_lookup.js Run prettier and add in public/javascripts to prettier whitelist 2019-10-10 22:09:33 +00:00
profile.js Run prettier and add in public/javascripts to prettier whitelist 2019-10-10 22:09:33 +00:00
question_bank.js Run prettier and add in public/javascripts to prettier whitelist 2019-10-10 22:09:33 +00:00
question_banks.js Run prettier and add in public/javascripts to prettier whitelist 2019-10-10 22:09:33 +00:00
quiz_arrows.js Run prettier and add in public/javascripts to prettier whitelist 2019-10-10 22:09:33 +00:00
quiz_formula_solution.js Run prettier and add in public/javascripts to prettier whitelist 2019-10-10 22:09:33 +00:00
quiz_history.js fix pressing enter update quiz question scores in SpeedGrader 2020-06-10 18:33:27 +00:00
quiz_inputs.js Run prettier and add in public/javascripts to prettier whitelist 2019-10-10 22:09:33 +00:00
quiz_labels.js Run prettier and add in public/javascripts to prettier whitelist 2019-10-10 22:09:33 +00:00
quiz_rubric.js reduce quiz_show bundle size 2020-02-20 15:37:02 +00:00
quiz_show.js Add direct share feature to quizzes show page 2019-12-17 21:47:39 +00:00
quiz_timing.js Run prettier and add in public/javascripts to prettier whitelist 2019-10-10 22:09:33 +00:00
quizzes.js RCE is not responsive in comments for Answers in Quiz page 2021-02-01 21:31:01 +00:00
react-dnd-test-backend.js da licença part 51 2017-04-28 19:05:00 +00:00
react-modal.js Run prettier and add in public/javascripts to prettier whitelist 2019-10-10 22:09:33 +00:00
reminders.js Run prettier and add in public/javascripts to prettier whitelist 2019-10-10 22:09:33 +00:00
rubricEditBinding.js Run prettier and add in public/javascripts to prettier whitelist 2019-10-10 22:09:33 +00:00
rubric_assessment.js Run prettier and add in public/javascripts to prettier whitelist 2019-10-10 22:09:33 +00:00
rubric_delete_confirmation.js Run prettier and add in public/javascripts to prettier whitelist 2019-10-10 22:09:33 +00:00
section.js Run prettier and add in public/javascripts to prettier whitelist 2019-10-10 22:09:33 +00:00
select_content_dialog.js add ability to add NQ from modules 2021-01-26 15:54:30 +00:00
setWebpackCdnHost.js Run prettier and add in public/javascripts to prettier whitelist 2019-10-10 22:09:33 +00:00
setupAndFocusTinyMCEConfig.js Run prettier and add in public/javascripts to prettier whitelist 2019-10-10 22:09:33 +00:00
sis_import.js Run prettier and add in public/javascripts to prettier whitelist 2019-10-10 22:09:33 +00:00
slickgrid.long_text_editor.js prettify slickgrid (ha) 2019-01-11 13:37:11 +00:00
speed_grader.js Limit reassigning on max allowed attempts 2021-02-26 01:16:50 +00:00
speed_grader_helpers.js persist resource_link_lookup_uuid at homework submission 2021-02-19 17:58:11 +00:00
speed_grader_select_menu.js add label to select menu in speedgrader 2020-08-04 19:26:03 +00:00
sub_accounts.js Run prettier and add in public/javascripts to prettier whitelist 2019-10-10 22:09:33 +00:00
submission_download.js make quiz_submissions.submissions valid 2020-04-24 15:29:05 +00:00
submissions.js Run prettier and add in public/javascripts to prettier whitelist 2019-10-10 22:09:33 +00:00
submit_assignment.js Add student view for annotated document assignment 2021-03-24 18:57:36 +00:00
submit_assignment_helper.js submit lti item from more tab without trouble 2020-01-07 18:30:08 +00:00
supercalc.js some mathematical formulas not rounding correctly 2021-02-17 19:12:08 +00:00
take_quiz.js removes unwanted auto-generated decimal places 2021-02-17 19:12:46 +00:00
timezone_core.js Run prettier and add in public/javascripts to prettier whitelist 2019-10-10 22:09:33 +00:00
tinymce.config.js Fancy HTML editor for the RCE 2021-01-07 16:03:16 +00:00
tool_inline.js Run prettier and add in public/javascripts to prettier whitelist 2019-10-10 22:09:33 +00:00
underscore.flattenObjects.js Run prettier and add in public/javascripts to prettier whitelist 2019-10-10 22:09:33 +00:00
underscore.js Run prettier and add in public/javascripts to prettier whitelist 2019-10-10 22:09:33 +00:00
user.js Run prettier and add in public/javascripts to prettier whitelist 2019-10-10 22:09:33 +00:00
user_grades.js Run prettier and add in public/javascripts to prettier whitelist 2019-10-10 22:09:33 +00:00
user_logins.js Run prettier and add in public/javascripts to prettier whitelist 2019-10-10 22:09:33 +00:00
user_name.js Expose deletion of users through the UI 2021-01-15 17:09:52 +00:00
user_notes.js Run prettier and add in public/javascripts to prettier whitelist 2019-10-10 22:09:33 +00:00
user_sortable_name.js Run prettier and add in public/javascripts to prettier whitelist 2019-10-10 22:09:33 +00:00
user_utils.js Run prettier and add in public/javascripts to prettier whitelist 2019-10-10 22:09:33 +00:00