Sha256: 499b84bdde878f75b163eee34e98710e69fef9722e5027cff70c3f1f5167222e

Contents?: true

Size: 652 Bytes

Versions: 1

Compression:

Stored size: 652 Bytes

Contents

<% if request.image? %>
  <div class="image"><%= image_tag request.image %></div>
<% end %>

<div class="text"><%= request.text %></div>
<div class="description"><%= request.description %></div>

<% if request.completed_by? current_author %>
  <%= t 'tasks.taskables.urls.responses.already_answered' %>
  <div class="response url">
    <% request.responses.by(current_user).each do |response| %>
      <%= embed_video(response, Tasks.config.video_width, Tasks.config.video_height) %>
    <% end %>
  </div>
<% else %>
  <div class="form">
    <%= render partial: 'tasks/taskables/url/responses/form', locals: { request: request } %>
  </div>
<% end %>

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
tasuku-0.0.1 app/views/tasks/taskables/url/requests/_request.html.erb