Show messages on contest management view
This commit is contained in:
@@ -46,6 +46,27 @@
|
||||
.col
|
||||
a.btn.btn-primary href=new_contest_puzzle_path(@contest)
|
||||
= t("contests.show.add_puzzle")
|
||||
- if @messages
|
||||
.row.mt-5
|
||||
.col
|
||||
h4 = t("messages.plural").capitalize
|
||||
table.table.table-striped.table-hover
|
||||
thead
|
||||
tr
|
||||
th scope="col"
|
||||
| Time
|
||||
th scope="col"
|
||||
| Text
|
||||
tbody
|
||||
- @messages.each do |message|
|
||||
tr.align-middle scope="row"
|
||||
td
|
||||
= message.time_seconds
|
||||
td
|
||||
= message.text
|
||||
td
|
||||
a.btn.btn-sm.btn-danger href=""
|
||||
| Delete
|
||||
.col-6
|
||||
.row
|
||||
.col
|
||||
|
Reference in New Issue
Block a user