Sha256: 4d8afa7dd2e6eff4d3f14bba82fd2d4bcfb14d1ab45b942bfdfa9b8348d0ce57

Contents?: true

Size: 1.46 KB

Versions: 15

Compression:

Stored size: 1.46 KB

Contents

<div data-role="header">
  <h1 class="title"><%= t('page.showing', model: t('activerecord.models.question')) -%></h1>
</div>
<div data-role="content">
  <div id="detail">

<p>
  <strong><%= t('activerecord.attributes.question.body') -%>:</strong>
  <%= raw auto_link(textilize(h(@question.body))) -%><br />
</p>

<p>
  <strong><%= t('activerecord.models.user') -%>:</strong>
  <%= link_to @question.user.username, @question.user.profile if @question.user.try(:profile) -%>
  <strong><%= t('activerecord.attributes.question.shared') -%>:</strong>
  <%= localized_boolean(@question.shared) -%>
  <strong><%= t('activerecord.attributes.question.solved') -%>:</strong>
  <%= localized_boolean(@question.solved) -%>
</p>

<p>
  <strong><%= t('page.created_at') -%>:</strong>
  <%= l(@question.created_at) -%>
  <strong><%= t('page.updated_at') -%>:</strong>
  <%= l(@question.updated_at) -%>
</p>

<ul>
  <%- @question.answers.each do |answer| -%>
    <li><%= link_to answer.user.username, answer.user.profile if answer.user.try(:profile) -%>
    (<%=l answer.updated_at %>)<br />
    <%= raw auto_link(textilize(h(answer.body))) -%><br />
    <% unless answer.items.empty? %>
      <ul>
        <% answer.items.each do |item| %>
          <li><%= link_to item.manifestation.original_title, item.manifestation %><br /></li>
        <% end %>
      </ul>
    <% end %>
    </li>
  <%- end -%>
</ul>

<h3><%= link_to t('question.answer_question'), new_question_answer_path(@question) -%></h3>
</div>
</div>

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
enju_question-0.3.2 app/views/questions/show.mobile.erb
enju_question-0.3.1 app/views/questions/show.mobile.erb
enju_question-0.3.0 app/views/questions/show.mobile.erb
enju_question-0.3.0.beta.1 app/views/questions/show.mobile.erb
enju_question-0.2.0 app/views/questions/show.mobile.erb
enju_question-0.2.0.beta.4 app/views/questions/show.mobile.erb
enju_question-0.2.0.beta.3 app/views/questions/show.mobile.erb
enju_question-0.2.0.beta.2 app/views/questions/show.mobile.erb
enju_question-0.2.0.beta.1 app/views/questions/show.mobile.erb
enju_question-0.1.1 app/views/questions/show.mobile.erb
enju_question-0.1.0 app/views/questions/show.mobile.erb
enju_question-0.1.0.pre15 app/views/questions/show.mobile.erb
enju_question-0.1.0.pre14 app/views/questions/show.mobile.erb
enju_question-0.1.0.pre13 app/views/questions/show.mobile.erb
enju_question-0.1.0.pre12 app/views/questions/show.mobile.erb