Sha256: ee7ca07186995e3dccadf1f7468ee9ad7d8366e906e9b7ef256087c122e8bf0a

Contents?: true

Size: 713 Bytes

Versions: 8

Compression:

Stored size: 713 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

8 entries across 8 versions & 1 rubygems

Version Path
enju_question-0.1.0.pre11 app/views/questions/index.mobile.erb
enju_question-0.1.0.pre10 app/views/questions/index.mobile.erb
enju_question-0.1.0.pre9 app/views/questions/index.mobile.erb
enju_question-0.1.0.pre8 app/views/questions/index.mobile.erb
enju_question-0.1.0.pre7 app/views/questions/index.mobile.erb
enju_question-0.1.0.pre6 app/views/questions/index.mobile.erb
enju_question-0.1.0.pre5 app/views/questions/index.mobile.erb
enju_question-0.1.0.pre4 app/views/questions/index.mobile.erb