Sha256: 99db002812417c77ad459195487b03d6bcdbfcd5f72b90e8013544165dafcba3

Contents?: true

Size: 803 Bytes

Versions: 1

Compression:

Stored size: 803 Bytes

Contents

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

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

<% if question.completed_by? current_author %>
  <%= t 'tasks.taskables.questions.answers.already_answered' %>
  <div class="answer">
    <% question.answers.by(current_author).each do |answer| %>
      <ul>
	  	<% answer.votes.each do |vote| %>
        <%= vote.option.text %>
      <% end %>
      </ul>
    <% end %>

    <% if question.show_statistics? %>
      <%= render 'tasks/taskables/questions/answers/statistics', question: question %>
    <% end %>
  </div>
<% else %>
  <div class="options">
    <%= render 'tasks/taskables/questions/answers/form', question: question %>
  </div>
<% end %>

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
tasuku-0.0.1 app/views/tasks/taskables/questions/_question.html.erb