/** @jsx React.DOM */

define(
  [
    'react'
  ],
  function (React) {

    var resources = [
      {
        title: "User Manual",
        href: "https://pods.iplantcollaborative.org/wiki/x/Iaxm",
        description: "Complete documentation for using Atmosphere"
      },
      {
        title: "User Forums",
        href: "http://ask.iplantcollaborative.org",
        description: "Get answers from iPlant users and staff"
      },
      {
        title: "FAQs",
        href: "https://pods.iplantcollaborative.org/wiki/x/Iaxm",
        description: "Atmosphere's most frequently asked questions"
      },
      {
        title: "VNC Viewer Tutorial",
        href: "https://pods.iplantcollaborative.org/wiki/x/Iaxm",
        description: "Instructions for downloading and using VNC Viewer"
      }
    ];

    return React.createClass({

      render: function () {

        var resourceElements = _.map(resources, function (resource) {
          return (
            <li>
              <a href={resource.href} target="_blank">{resource.title}</a>
              <span>{" " + resource.description}</span>
            </li>
          );
        });

        return (
          <div>
            <div className="container">
              <h2>External resources</h2>
              <ul>
                {resourceElements}
              </ul>
              <div>
                <h2>Contact</h2>
                <p>
                  {"You can contact the Atmosphere support staff by sending an email to "}
                  <a href="mailto:support@iplantcollaborative.org">support@iplantcollaborative.org</a>
                </p>
              </div>
            </div>
          </div>
        );
      }
    });

  });

@@ -971,18 +971,39 @@
      %3Cli
+ key=%7Bresource.title%7D
 %3E%0A
-
         
@@ -1186,34 +1186,16 @@
 eturn (%0A
-          %3Cdiv%3E%0A  
         
@@ -1224,18 +1224,16 @@
 ainer%22%3E%0A
-  
         
@@ -1276,18 +1276,16 @@
         
-  
 %3Cul%3E%0A   
@@ -1295,18 +1295,16 @@
         
- 
- 
 %7Bresourc
@@ -1330,18 +1330,14 @@
     
-  
 %3C/ul%3E%0A
-  
     
@@ -1346,26 +1346,24 @@
       %3Cdiv%3E%0A
-  
             
@@ -1399,16 +1399,12 @@
     
-  
 %3Cp%3E%0A
-  
     
@@ -1488,18 +1488,16 @@
 l to %22%7D%0A
-  
         
@@ -1607,36 +1607,13 @@
     
-  
 %3C/p%3E%0A
-              %3C/div%3E%0A
     

fix react warnings on help page