Sha256: f67fc6e818c6599e063f1a2e230d709e7c20f7aba792b2bbf175fa926a195cf4
Contents?: true
Size: 1.48 KB
Versions: 9
Compression:
Stored size: 1.48 KB
Contents
<div id="content_detail" class="ui-corner-all ui-widget-content"> <h1 class="title"><%= t('page.listing', model: t('activerecord.models.answer')) -%></h1> <div id="content_list"> <%- if @question -%> <p><%= link_to textilize(h(@question.body)), @question -%></p> <%- end -%> <table class="table table-striped index"> <tr> <th><%= t('activerecord.models.user') -%></th> <th><%= t('activerecord.attributes.answer.body') -%></th> <th><%= t('page.created_at') -%></th> <th><%= t('page.updated_at') -%></th> <th></th> </tr> <%- @answers.each_with_index do |answer, i| -%> <tr class="line<%= cycle("0", "1") -%>"> <td><%= link_to answer.user.username, answer.user.profile if answer.user.try(:profile) -%></td> <td><%= link_to truncate(answer.body, length: 20), answer -%></td> <td><%= l(answer.created_at) -%></td> <td><%= l(answer.updated_at) -%></td> <td> <%- if policy(answer).update? -%> <%= link_to t('page.edit'), edit_answer_path(answer) -%> <%- end -%> <%- if policy(answer).destroy? -%> <%= link_to t('page.destroy'), answer, data: {confirm: t('page.are_you_sure')}, method: :delete -%> <%- end -%> </td> </tr> <%- end -%> </table> <%= paginate(@answers) -%> </div> </div> <div id="submenu" class="ui-corner-all ui-widget-content"> <%- if @question -%> <ul> <li><%= link_to t('page.new', model: t('activerecord.models.answer')), new_question_answer_path(@question) -%></li> </ul> <%- end -%> </div>
Version data entries
9 entries across 9 versions & 1 rubygems