Sha256: 1f1fd17d04de5b3f1ac2155d8e240a27d52b5e245b6fb05fa51d944dd533057b

Contents?: true

Size: 590 Bytes

Versions: 1

Compression:

Stored size: 590 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.texts.responses.already_responded' %>
  <div class="response">
    <% request.responses.by(current_user).each do |response| %>
      <%= response.text %>
    <% end %>
  </div>
<% else %>
  <div class="form">
    <%= render partial: 'tasks/taskables/text/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/text/requests/_request.html.erb