Sha256: 9bd011a9f12bf9670ff387c5bf0b10820aa06bd56c4aca471ba3da66863b565f

Contents?: true

Size: 1.49 KB

Versions: 8

Compression:

Stored size: 1.49 KB

Contents

<p id="notice"><%= notice %></p>

<h1>Mod Logs</h1>

<table>
  <thead>
    <tr>
      <th>Record</th>
      <th>Record type</th>
      <th>Mod words</th>
      <th>User</th>
      <th colspan="3"></th>
    </tr>
  </thead>

  <tbody>
    <% @mod_logs.each do |mod_log| %>
      <tr>
        <td><%= mod_log.record_id %></td>
        <td><%= mod_log.record_type %></td>
        <td><%= mod_log.mod_words %></td>
        <td><%= mod_log.user_id %></td>
        <td><%= link_to 'Show', mod_log %></td>
        <td><%= link_to 'Show', mod_log %></td>
        <td><%= link_to 'Edit', edit_mod_log_path(mod_log) %></td>
        <td><%= link_to 'Destroy', mod_log, method: :delete, data: { confirm: 'Are you sure?' } %></td>
        <td><%= link_to "查看详情", mod_log.record_path %></td>
        <td><%= link_to "忽略内容", mod_log_ignore_path(mod_log) %></td>
        <td><%= link_to "通过内容", mod_log_approve_path(mod_log) %></td>
        <td><%= link_to "封禁用户", mod_log_ban_path(mod_log) %></td>
        <td>
          <%= form_with(url: mod_log_delete_path(mod_log), method: :get, class: "flex items-center") do |f| %>
            <%= f.text_field :reason, value: mod_log.reason, placeholder: "原因", class: "border rounded-md m py-0.5 px-1" %>
          <td><%= f.submit "删除内容", class: "rounded-md px-2 py-1 text-sm bg-black text-white cursor-pointer"  %></td>
          <% end %>
        </td>
      </tr>
    <% end %>
  </tbody>
</table>

<br>

<%= link_to 'New Mod Log', new_mod_log_path %>

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
censor_bear-0.1.7 app/views/censor_bear/mod_logs/index.html.erb
censor_bear-0.1.6 app/views/censor_bear/mod_logs/index.html.erb
censor_bear-0.1.5 app/views/censor_bear/mod_logs/index.html.erb
censor_bear-0.1.4 app/views/censor_bear/mod_logs/index.html.erb
censor_bear-0.1.3 app/views/censor_bear/mod_logs/index.html.erb
censor_bear-0.1.2 app/views/censor_bear/mod_logs/index.html.erb
censor_bear-0.1.1 app/views/censor_bear/mod_logs/index.html.erb
censor_bear-0.1.0 app/views/censor_bear/mod_logs/index.html.erb