68 lines
2.9 KiB
Plaintext
68 lines
2.9 KiB
Plaintext
.row
|
|
.clearfix
|
|
table.table
|
|
tbody
|
|
- pex_by_models.each.with_index do |pex_by_model, index|
|
|
- if pex_by_model[:category] && pex_by_model[:category] != pex_by_models[index - 1][:category]
|
|
tr.full-row-sep
|
|
td.col-12(colspan=6)
|
|
- if pex_by_model[:category].empty?
|
|
| Base
|
|
- else
|
|
= pex_by_model[:category].capitalize
|
|
- @row_class = ""
|
|
- if pex_by_model[:hidden]
|
|
- @row_class = "bg-warning"
|
|
- if pex_by_model[:flag] == "bookmarked"
|
|
- @row_class = "bg-bookmarked"
|
|
tr.full-row(class=@row_class)
|
|
td.col-1
|
|
.btn.pex-editor-toggler(name=pex_by_model[:id] style="display: none;")
|
|
| ¤
|
|
.pex-editor(name=name=pex_by_model[:id])
|
|
form method="POST" action="/pexs/bookmark"
|
|
input type="hidden" name="id" value=pex_by_model[:id]
|
|
button.btn.btn-success type="submit"
|
|
- if pex_by_model[:flag] == "bookmarked"
|
|
| unfav
|
|
- else
|
|
| fav
|
|
form method="POST" action="/pexs/delete"
|
|
input type="hidden" name="id" value=pex_by_model[:id]
|
|
input type="hidden" name="type" value="-"
|
|
button.btn.btn-danger type="submit" onclick="return confirm('Confirm to permanently REMOVE \'#{pex_by_model[:name]}\' and points ?')"
|
|
| x
|
|
form method="POST" action="/pexs/hide"
|
|
input type="hidden" name="id" value=pex_by_model[:id]
|
|
- if pex_by_model[:hidden]
|
|
button.btn.btn-success type="submit"
|
|
| >>
|
|
- else
|
|
button.btn.btn-danger type="submit" onclick="return confirm('Confirm to disable \'#{pex_by_model[:name]}\' (do not affect points) ?')"
|
|
| <<
|
|
a.btn.btn-warning href="/pexs/update?id=#{pex_by_model[:id]}"
|
|
| u
|
|
td.col-8=pex_by_model[:name]
|
|
td.col-1.center
|
|
form method="POST" action="/"
|
|
input type="hidden" name="id" value=pex_by_model[:id]
|
|
input type="hidden" name="type" value="-"
|
|
button.btn.force-1-col type="submit" style="display: block;"
|
|
| -
|
|
td.col-1.center
|
|
=pex_by_model[:user_pexs][:amount]
|
|
td.col-1.center
|
|
form method="POST" action="/"
|
|
input type="hidden" name="id" value=pex_by_model[:id]
|
|
input type="hidden" name="type" value="+"
|
|
button.btn.force-1-col type="submit" style="display: block;"
|
|
| +
|
|
|
|
form method="GET" action="/pexs"
|
|
button.float-end.round.custom-valid
|
|
| +
|
|
|
|
.additional-bottom-space
|
|
|
|
script src="/js/index.js"
|