Skip to content

Instantly share code, notes, and snippets.

@sabril
Created July 14, 2017 17:01
Show Gist options
  • Save sabril/059b351f111943b7f2f94f6b6ca8281c to your computer and use it in GitHub Desktop.
Save sabril/059b351f111943b7f2f94f6b6ca8281c to your computer and use it in GitHub Desktop.
Task Show view
<div class="row">
<div class="col m8 offset-m2">
<% if @task.video_url.present? %>
<div class="card z-depth-2">
<div class="card-image waves-effect waves-block waves-light">
<div class="center">
<iframe width="100%" height="315" src="<%= @task.video_url %>" frameborder="0" allowfullscreen></iframe>
</div>
</div>
</div>
<% end %>
<div class="card-content grey-text text-darken-4">
<h5><%= @task.title %></h5>
<hr/>
<%= @task.description %>
</div>
</div>
</div>
@sabril
Copy link
Author

sabril commented Jul 14, 2017

@task.video_url harus dalam format embed youtube agar bisa ditampilkan. Misal https://www.youtube.com/embed/PFkSFIiti9Y

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment