myexperiment-hackers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[myexperiment-hackers] [3330] branches/wf4ever/app/views/packs/resource_


From: noreply
Subject: [myexperiment-hackers] [3330] branches/wf4ever/app/views/packs/resource_show.rhtml: Conditionally show annotations
Date: Tue, 22 Jan 2013 16:03:19 +0000 (UTC)

Revision
3330
Author
stain
Date
2013-01-22 16:03:18 +0000 (Tue, 22 Jan 2013)

Log Message

Conditionally show annotations

Modified Paths

Diff

Modified: branches/wf4ever/app/views/packs/resource_show.rhtml (3329 => 3330)


--- branches/wf4ever/app/views/packs/resource_show.rhtml	2013-01-22 15:38:50 UTC (rev 3329)
+++ branches/wf4ever/app/views/packs/resource_show.rhtml	2013-01-22 16:03:18 UTC (rev 3330)
@@ -10,7 +10,7 @@
   </ul>
 </div>
 
-<h2>Basic resource information via manifest</h2>
+<h2>Resource information</h2>
 
 <table class="simple">
 
@@ -40,32 +40,44 @@
 
 </table>
 
-<h2>Annotations specific to this resource</h2>
+<% if @title or @description or @creator or @created %>
 
-<table class="simple">
+  <h2>Annotations specific to this resource</h2>
 
-  <tr>
-    <td>Title</td>
-    <td><%=h @title -%></td>
-  </tr>
+  <table class="simple">
 
-  <tr>
-    <td>Description</td>
-    <td><%=h @description -%></td>
-  </tr>
+  <% if @title %>
+    <tr>
+      <td>Title</td>
+      <td><%=h @title -%></td>
+    </tr>
+  <% end %>
 
-  <tr>
-    <td>Creator</td>
-    <td><%=h @creator -%></td>
-  </tr>
+  <% if @description %>
+    <tr>
+      <td>Description</td>
+      <td><%=h @description -%></td>
+    </tr>
+  <% end %>    
 
-  <tr>
-    <td>Created at</td>
-    <td><%=h @created -%></td>
-  </tr>
+  <% if @creator %>
+    <tr>
+      <td>Creator</td>
+      <td><%=h @creator -%></td>
+    </tr>
+  <% end %>    
 
-</table>
+  <% if @created %>    
+    <tr>
+      <td>Created at</td>
+      <td><%=h @created -%></td>
+    </tr>
+  <% end %>
 
+    
+  </table>
+<% end %>
+
 <div class="download">
 	<h3>
 				<%= info_icon_with_tooltip("This section provides links to the download(s) for this File") %>

reply via email to

[Prev in Thread] Current Thread [Next in Thread]