Sha256: 9bb5f53f4e1dfafadcf07cd0eaf894ec910895251b608a266ea4844694eadf93

Contents?: true

Size: 698 Bytes

Versions: 15

Compression:

Stored size: 698 Bytes

Contents

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

<div data-role="content">
  <div data-role="fieldcontain">
    <%= form_for :questions, :html => {method: 'get'} do -%>
      <%= label_tag :search_form_top, t('page.search_term') -%>:
      <%= search_field_tag 'query', h(@query), {:id => 'search_form_top', class: 'search_form', placeholder: t('page.search_term')} -%>
      <%= submit_tag t('page.search') -%>
    <% end %>
  </div>
</div>

<ul data-role="listview">
<% @questions.each do |question| %>
  <li><%= link_to truncate(question.body, length: 60), question -%></li>
<% end %>
</ul>

<%= paginate(@questions) %>

Version data entries

15 entries across 15 versions & 1 rubygems

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