eBooru/app/views/application/_warned_notice.html.erb
Donovan Daniels fd5b491694
[UserWarnable] Fix warning_user_id never being set (#541)
* [UserWarnable] fix `warning_user_id` never being set
I know `update` & `update_columns` function differently, but I feel the difference isn't needed

* [UserWarnable] Add inline user and timestamp

* lint

* Move warning info into partial

Also removes the user/timestamp as that is redundant for now

* Fix unmarking

* Tweak fixer script

---------

Co-authored-by: Earlopain <14981592+Earlopain@users.noreply.github.com>
2023-12-04 20:19:49 +01:00

7 lines
133 B
Plaintext

<% if record.was_warned? %>
<div class="user-warning">
<hr>
<em><%= record.warning_type_string %>.</em>
</div>
<% end %>