Sha256: 16c738634e4e1736cbde000112df29102e90fdb7b002b51bb348266f1f06b66a

Contents?: true

Size: 941 Bytes

Versions: 6

Compression:

Stored size: 941 Bytes

Contents

<div id="content_detail" class="ui-corner-all ui-widget-content">
<h1 class="title"><%= t('page.listing', model: t('activerecord.models.question')) -%></h1>

<div id="content_list">
  <%= form_for :questions, url: questions_path, :html => {method: 'get'} do -%>
    <p>
      <%= 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') -%>
    </p>
  <%- end -%>

  <%= render 'list' -%>
</div>
</div>

<div id="submenu" class="ui-corner-all ui-widget-content">
  <%= render 'solved_facet' -%>
  <ul>
  <%- if can? :create, Question -%>
    <li><%= link_to t('question.my'), user_questions_path(current_user) -%></li>
    <li><%= link_to t('page.new', model: t('activerecord.models.question')), new_question_path -%></li>
  <%- end -%>
  </ul>
  <%= render 'crd' -%>
</div>

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
enju_question-0.1.1 app/views/questions/_index.html.erb
enju_question-0.1.0 app/views/questions/_index.html.erb
enju_question-0.1.0.pre15 app/views/questions/_index.html.erb
enju_question-0.1.0.pre14 app/views/questions/_index.html.erb
enju_question-0.1.0.pre13 app/views/questions/_index.html.erb
enju_question-0.1.0.pre12 app/views/questions/_index.html.erb