Browse files

only show video preview if a video host is present

  • Loading branch information...
1 parent 8a69f56 commit 114a00326fcf5b602e0b7d08aeead32e3350e9da @graemerocher graemerocher committed Nov 30, 2012
Showing with 10 additions and 6 deletions.
  1. +10 −6 grails-app/views/screencastAdmin/show.gsp
View
16 grails-app/views/screencastAdmin/show.gsp
@@ -50,12 +50,16 @@
<td class="show-label" nowrap="nowrap">Description</td>
<td class="show-value">${fieldValue(bean: screencastInstance, field: "description")}</td>
</tr>
- <tr>
- <td class="show-label" nowrap="nowrap">Preview</td>
- <td class="show-value">
- <casts:embedPlayer screencast="${screencastInstance}" width="400" height="300" />
- </td>
- </tr>
+ <g:if test="${screencastInstance.videoHost}">
+
+ <tr>
+ <td class="show-label" nowrap="nowrap">Preview</td>
+ <td class="show-value">
+
+ <casts:embedPlayer screencast="${screencastInstance}" width="400" height="300" />
+ </td>
+ </tr>
+ </g:if>
<tr>
<td class="show-label" nowrap="nowrap">Tags</td>
<td class="show-value">

0 comments on commit 114a003

Please sign in to comment.