Commits

Fabian Kraemer committed f1ea887

add PDL switch

  • Participants
  • Parent commits 40f2b37
  • Tags pdl-switch

Comments (0)

Files changed (3)

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

     </web-panel>
     
     <web-resource key="hello-world-stylesheets">
-        <resource type="download" name="hello-world.css" location="css/hello-world.css"/>
+        <resource type="download" name="hello-world.css" location="css/${pdl.dir}hello-world.css"/>
         <context>atl.userprofile</context>
+        <condition class="com.atlassian.confluence.plugin.descriptor.web.conditions.BuildNumberCondition">
+            <param name="minBuildNumber">4035</param> <!-- 5.0-m9 -->
+        </condition>
+    </web-resource>
+    
+    <web-resource key="legacy-hello-world-stylesheets">
+        <resource type="download" name="hello-world.css" location="css/old/hello-world.css"/>
+        <context>atl.userprofile</context>
+        <condition class="com.atlassian.confluence.plugin.descriptor.web.conditions.BuildNumberCondition" invert="true">
+            <param name="minBuildNumber">4035</param> <!-- 5.0-m9 -->
+        </condition>
     </web-resource>
     
 </atlassian-plugin>

File src/main/resources/css/hello-world.css

 h1.hello-world
 {
-    color: red;
+    color: green;
 }

File src/main/resources/css/old/hello-world.css

+h1.hello-world
+{
+    color: red;
+}