Sha256: aebf5b4e441340b0f2ab0f7fb631f3b443c142266acd2073cbc40a2d8db6b358

Contents?: true

Size: 722 Bytes

Versions: 3

Compression:

Stored size: 722 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 for="search_form_top"><%= t('page.search_term') -%>:</label>
      <%= 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

3 entries across 3 versions & 1 rubygems

Version Path
enju_question-0.1.0.pre3 app/views/questions/index.mobile.erb
enju_question-0.1.0.pre2 app/views/questions/index.mobile.erb
enju_question-0.1.0.pre app/views/questions/index.mobile.erb