Commits

Stefan Saasen committed 4d1cdc1

Updated placeholder text, changed table style slightly

Comments (0)

Files changed (3)

src/main/resources/atlassian-plugin.xml

         <dependency>${project.groupId}.${project.artifactId}:soy-resources</dependency>
     </web-resource>
 
-    <web-resource name="Web Resources" key="macro-resources">
+    <web-resource name="Macro Resources" key="macro-resources">
         <resource type="download" name="hipchat-macro.js" location="/js/hipchat-macro.js"/>
+        <resource type="download" name="hipchat.css" location="/css/hipchat.css"/>
         <dependency>com.atlassian.auiplugin:ajs</dependency>
         <dependency>com.atlassian.soy.soy-template-plugin:soy-deps</dependency>
         <dependency>${project.groupId}.${project.artifactId}:soy-resources</dependency>

src/main/resources/css/hipchat.css

+#hipchat-room-history span {
+    background: transparent url(img/hipchat-icon-small.png) no-repeat top left;
+    padding-left: 20px;
+    display: block;
+}
+
+/* Zebra striping */
+#hipchat-room-history table tr:nth-of-type(odd) {
+    background: #FFFBE8;
+    border-top-color: #ECDCBD;
+    border-collapse: collapse;
+}

src/main/resources/templates/macro/hipchat-history.vm

 $webResourceManager.requireResource("com.atlassian.plugins.polyglot.scala.scala-example-plugin:macro-resources")
 
-<div id="hipchat-room-history" data-room-id="$!roomId">
-    Room history
-</div>
+<div id="hipchat-room-history" data-room-id="$!roomId"><span class="loading">Loading room history...</span></div>
+
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.