28 lines
929 B
Plaintext
28 lines
929 B
Plaintext
.card
|
|
.card-body
|
|
%h2= t(".heading")
|
|
%p= t(".body")
|
|
%p= t(".note")
|
|
.js-rules-list
|
|
- @rules.each do |rule|
|
|
.form-group
|
|
.input-group
|
|
%input.form-control{ disabled: true, value: rule.muted_phrase }
|
|
.input-group-append
|
|
%button.btn.btn-danger{ type: "button", data: { id: rule.id } }= t(".actions.remove")
|
|
.form-group
|
|
%form{ data: { turbo: false } }
|
|
.input-group
|
|
%input.form-control#new-rule-text{ placeholder: t(".placeholder") }
|
|
.input-group-append
|
|
%button.btn.btn-primary#new-rule-submit{ type: "submit" }= t(".actions.add")
|
|
%template#rule-template
|
|
.form-group
|
|
.input-group
|
|
%input.form-control{ disabled: true }
|
|
.input-group-append
|
|
%button.btn.btn-danger{ type: "button" }= t(".actions.remove")
|
|
|
|
- provide(:title, generate_title(t(".title")))
|
|
- parent_layout "user/settings"
|