]> cat aescling's git repositories - mastodon.git/commit
Add server rules (#15769)
authorEugen Rochko <eugen@zeonfederated.com>
Sun, 21 Feb 2021 18:50:12 +0000 (19:50 +0100)
committerGitHub <noreply@github.com>
Sun, 21 Feb 2021 18:50:12 +0000 (19:50 +0100)
commit8331fdf7e0ea85ecc6d7dbff00b784bb6aa1f7d4
tree044e1475cb6e31c5c33d02a4220c95f080667c59
parentdcc7c686f3c4c85ebb8a3e6d5a861fc530c1840d
Add server rules (#15769)
21 files changed:
app/controllers/about_controller.rb
app/controllers/admin/rules_controller.rb [new file with mode: 0644]
app/controllers/api/v1/instances/rules_controller.rb [new file with mode: 0644]
app/javascript/styles/mastodon/about.scss
app/models/rule.rb [new file with mode: 0644]
app/policies/rule_policy.rb [new file with mode: 0644]
app/presenters/instance_presenter.rb
app/serializers/rest/instance_serializer.rb
app/serializers/rest/rule_serializer.rb [new file with mode: 0644]
app/views/about/more.html.haml
app/views/admin/rules/_rule.html.haml [new file with mode: 0644]
app/views/admin/rules/edit.html.haml [new file with mode: 0644]
app/views/admin/rules/index.html.haml [new file with mode: 0644]
config/locales/en.yml
config/locales/simple_form.en.yml
config/navigation.rb
config/routes.rb
db/migrate/20210221045109_create_rules.rb [new file with mode: 0644]
db/schema.rb
spec/fabricators/rule_fabricator.rb [new file with mode: 0644]
spec/models/rule_spec.rb [new file with mode: 0644]