Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

only show video preview if a video host is present

  • Loading branch information...
commit 114a00326fcf5b602e0b7d08aeead32e3350e9da 1 parent 8a69f56
@graemerocher graemerocher authored
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">
Please sign in to comment.
Something went wrong with that request. Please try again.