2021-12-22 15:03:42 -08:00
|
|
|
.card
|
|
|
|
.card-body
|
2022-02-16 15:55:13 -08:00
|
|
|
%h2= t(".heading")
|
|
|
|
%p= t(".body")
|
|
|
|
%p= t(".note")
|
2021-12-22 16:20:47 -08:00
|
|
|
.js-rules-list
|
|
|
|
- @rules.each do |rule|
|
|
|
|
.form-group
|
|
|
|
.input-group
|
2021-12-22 16:32:59 -08:00
|
|
|
%input.form-control{ disabled: true, value: rule.muted_phrase }
|
2021-12-22 16:20:47 -08:00
|
|
|
.input-group-append
|
2022-02-16 15:55:13 -08:00
|
|
|
%button.btn.btn-danger{ type: "button", data: { id: rule.id } }= t(".actions.remove")
|
2021-12-22 15:03:42 -08:00
|
|
|
.form-group
|
2022-09-04 05:54:28 -07:00
|
|
|
%form{ data: { turbo: false } }
|
|
|
|
.input-group
|
2022-02-16 15:55:13 -08:00
|
|
|
%input.form-control#new-rule-text{ placeholder: t(".placeholder") }
|
2021-12-22 15:03:42 -08:00
|
|
|
.input-group-append
|
2022-02-16 15:55:13 -08:00
|
|
|
%button.btn.btn-primary#new-rule-submit{ type: "submit" }= t(".actions.add")
|
2021-12-22 16:20:47 -08:00
|
|
|
%template#rule-template
|
|
|
|
.form-group
|
|
|
|
.input-group
|
2021-12-22 16:32:59 -08:00
|
|
|
%input.form-control{ disabled: true }
|
2021-12-22 16:20:47 -08:00
|
|
|
.input-group-append
|
2022-07-03 12:11:35 -07:00
|
|
|
%button.btn.btn-danger{ type: "button" }= t(".actions.remove")
|
|
|
|
|
|
|
|
- provide(:title, generate_title(t(".title")))
|
|
|
|
- parent_layout "user/settings"
|