Commits

Fabian Kraemer  committed 40f2b37

added CSS resource

  • Participants
  • Parent commits 0358eb5
  • Tags cssresource

Comments (0)

Files changed (3)

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

         <resource name="view" type="velocity" location="templates/hello-world.vm"/>
     </web-panel>
     
+    <web-resource key="hello-world-stylesheets">
+        <resource type="download" name="hello-world.css" location="css/hello-world.css"/>
+        <context>atl.userprofile</context>
+    </web-resource>
+    
 </atlassian-plugin>

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

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

File src/main/resources/templates/hello-world.vm

-<h1>Hello World!</h1>
+<h1 class="hello-world">Hello World!</h1>