jmort  committed e4176f4

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


  • 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);