日記詳細画面微調整

Avoid multi-line ?: (the ternary operator); use `if`/`unless` instead.