Fix rubocop Rails/TimeZone warnings
Fix case when user block durations are slightly negative The output from ActiveSupport::Duration is wildly unhelpful in those cases Fixes #3210
Ensure that short duration blockss are shown as '0 hours' Passing `:count => nil` means that i18n.t will return the hash of translations, so use a default value of 0 when checking for hours to prevent this. Refs #3210
Avoid some uses of html_safe We can use `html_safe` on non-interpolated strings, since that's trusted content.
Use friendly_date_ago helper for user_blocks Refs #2255 Removes two unused translations.
Allow user_blocks to be created for longer periods This avoids admins from having to manually change end periods in the database
Use lazy lookups for user_blocks translations
Small improvement to block status display
Improve display of user block timestamps Display the creation time, as a friendly date with a tooltip for the exact time, and add a tooltip to the expiry time. Fixes #923 and #996
Standardise on double quoted strings
Cleanup trailing whitespace
New migration to add better auditing to user_roles and better column names there and on user_blocks. Added a helper for displaying block status messages.