Sha256: a606b46d1f788e8891fb34b10c1722c93d712adedc045438de80a76f30fda7d9

Contents?: true

Size: 806 Bytes

Versions: 2

Compression:

Stored size: 806 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 'tasuku.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 'tasuku/taskables/questions/answers/statistics', question: question %>
    <% end %>
  </div>
<% else %>
  <div class="options">
    <%= render 'tasuku/taskables/questions/answers/form', question: question %>
  </div>
<% end %>

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
tasuku-0.1.1 app/views/tasuku/taskables/questions/_question.html.erb
tasuku-0.1.0 app/views/tasuku/taskables/questions/_question.html.erb