Commits

jmort  committed e4176f4

AUTOPLAN-3: added some javascript to simulate a web-item on the create plan page

git-svn-id: https://adaptavist.jira.com/svn/AUTOPLAN/trunk@8732e6edf6fb-f266-4316-afb4-e53d95876a76

  • Participants
  • Parent commits caf7ccf

Comments (0)

Files changed (2)

File src/main/resources/atlassian-plugin.xml

 
     <resource type="i18n" name="i18n" location="i18n"/>
 
+    <web-resource key="autoplan-resources" name="Inject link onto page resources">
+        <resource type="download" name="sudowebui.js" location="js/sudowebui.js"/>
+        <dependency>com.atlassian.auiplugin:ajs</dependency>
+        <context>atl.general</context>
+    </web-resource>
+
     <xwork key="autoplan-actions">
         <package name="autoplan" extends="buildAdminCreate">
             <default-interceptor-ref name="buildConfigStack"/>

File src/main/resources/js/sudowebui.js

+
+var html = "<li><a id='importMavenPlan' href='/bamboo/build/admin/create/autoplan.action'><strong>Import an Atlassian Plugin pom.xml</strong><span>You can import a Plan into Bamboo from an Atlassian Plugin Maven 2 project by getting Bamboo to parse the Plan information from this project's pom.xml file.</span></a></li>"
+
+AJS.toInit(function($) {
+    $('#creationOption').append(html);
+});