diff --git a/.haml-lint_todo.yml b/.haml-lint_todo.yml index 1ec35f8105..a839e3789f 100644 --- a/.haml-lint_todo.yml +++ b/.haml-lint_todo.yml @@ -23,6 +23,7 @@ linters: ViewLength: exclude: - 'app/views/admin/accounts/show.html.haml' + - 'app/views/admin/instances/show.html.haml' - 'app/views/admin/reports/show.html.haml' - 'app/views/disputes/strikes/show.html.haml' diff --git a/app/javascript/mastodon/components/short_number.tsx b/app/javascript/mastodon/components/short_number.tsx index 15d6642a3b..1a1895b94a 100644 --- a/app/javascript/mastodon/components/short_number.tsx +++ b/app/javascript/mastodon/components/short_number.tsx @@ -11,7 +11,7 @@ type ShortNumberRenderer = ( interface ShortNumberProps { value: number; - isHide: boolean; + isHide?: boolean; renderer?: ShortNumberRenderer; children?: ShortNumberRenderer; } diff --git a/app/views/admin/instances/show.html.haml b/app/views/admin/instances/show.html.haml index 9612f1e58d..1ca9c7d72f 100644 --- a/app/views/admin/instances/show.html.haml +++ b/app/views/admin/instances/show.html.haml @@ -1,7 +1,7 @@ - content_for :page_title do = @instance.domain --if @instance.instance_info.present? +- if @instance.instance_info.present? %p = "#{@instance.instance_info.software} #{@instance.instance_info.version}"