/** @jsx React.DOM */

define([
  'underscore',
  'i18n!external_tools',
  'react',
  'react-router'
], function (_, I18n, React, {Link}) {

  return React.createClass({
    displayName: 'Header',

    render() {

      var paragraph = I18n.t(
        '*See some LTI tools* that work great with Canvas. You can also check out the **Canvas Community topics about LTI tools**.',
        { wrappers: [
          '<a href="https://www.eduappcenter.com/">$1</a>',
          '<a href="http://help.instructure.com/entries/20878626-lti-tools-and-examples">$1</a>'
        ]}
      );

      return (
        <div className="Header">
          <h2 className="page-header" ref="pageHeader">
            <span className="externalApps_label_text">{I18n.t('External Apps')}</span>
            <div className="externalApps_buttons_container">
              {this.props.children}
            </div>
          </h2>

          <div className="well well-sm">
            <p>{I18n.t('Apps are an easy way to add new features to Canvas. They can be added to individual courses, or to all courses in an account. Once configured, you can link to them through course modules and create assignments for assessment tools.')}</p>
            <p dangerouslySetInnerHTML={{ __html: paragraph }}></p>
          </div>
        </div>
      )
    }
  });
});

/** @jsx React.DOM */

define([
  'underscore',
  'i18n!external_tools',
  'react',
  'react-router'
], function (_, I18n, React, {Link}) {

  return React.createClass({
    displayName: 'Header',

    render() {

      var paragraph = I18n.t(
        '*See some LTI tools* that work great with Canvas.',
        { wrappers: [
          '<a href="https://www.eduappcenter.com/">$1</a>',
        ]}
      );

      return (
        <div className="Header">
          <h2 className="page-header" ref="pageHeader">
            <span className="externalApps_label_text">{I18n.t('External Apps')}</span>
            <div className="externalApps_buttons_container">
              {this.props.children}
            </div>
          </h2>

          <div className="well well-sm">
            <p>{I18n.t('Apps are an easy way to add new features to Canvas. They can be added to individual courses, or to all courses in an account. Once configured, you can link to them through course modules and create assignments for assessment tools.')}</p>
            <p dangerouslySetInnerHTML={{ __html: paragraph }}></p>
          </div>
        </div>
      )
    }
  });
});

Remove Link to Community in Apps Page
Remove Link to Community in Apps Page

Fixes PLAT-1120

Test Plan
 - Make sure the link labeled 'Canvas Community topics about Lti topics'
   is no longer in the paragraph at the top of the external apps settings page.

Change-Id: Icf14d1a1c3fbbc702a41c1435abcc48972409de2
Reviewed-on: https://gerrit.instructure.com/57037
Tested-by: Jenkins
Reviewed-by: Brad Horrocks <7b5c5d1f2eba6c540b8e53f17d87a9bd7dbf604b@instructure.com>
QA-Review: August Thornton <9adc7a1161ddf32ff608de792a7e50179545f026@instructure.com>
Product-Review: Weston Dransfield <e9203059795dc94e28a8831c65eb7869e818825e@instructure.com>
