Loading app/views/node_info/_statistics.haml +18 −17 Original line number Diff line number Diff line Loading @@ -2,7 +2,8 @@ -# licensed under the Affero General Public License version 3 or later. See -# the COPYRIGHT file. .row .container-fluid .row-fluid %h1= t("_statistics") = render "statistic", name: t("statistics.name"), value: @statistics.name, activated: "serv-enabled" = render "statistic", name: t("statistics.version"), value: @statistics.version, activated: "serv-enabled" Loading @@ -15,7 +16,7 @@ = render "statistic", name: t("statistics.local_posts"), value: @statistics.local_posts, activated: "serv-enabled" - if @statistics.expose_comment_counts? = render "statistic", name: t("statistics.local_comments"), value: @statistics.local_comments, activated: "serv-enabled" .row .row-fluid %h1= t("statistics.services") - Configuration::KNOWN_SERVICES.each do |service| = render "statistic", name: "#{service.capitalize}", value: service_status(service, @statistics.available_services), activated: service_class(service, @statistics.available_services) app/views/node_info/statistics.html.haml +1 −2 Original line number Diff line number Diff line .container-fluid = render "statistics" Loading
app/views/node_info/_statistics.haml +18 −17 Original line number Diff line number Diff line Loading @@ -2,7 +2,8 @@ -# licensed under the Affero General Public License version 3 or later. See -# the COPYRIGHT file. .row .container-fluid .row-fluid %h1= t("_statistics") = render "statistic", name: t("statistics.name"), value: @statistics.name, activated: "serv-enabled" = render "statistic", name: t("statistics.version"), value: @statistics.version, activated: "serv-enabled" Loading @@ -15,7 +16,7 @@ = render "statistic", name: t("statistics.local_posts"), value: @statistics.local_posts, activated: "serv-enabled" - if @statistics.expose_comment_counts? = render "statistic", name: t("statistics.local_comments"), value: @statistics.local_comments, activated: "serv-enabled" .row .row-fluid %h1= t("statistics.services") - Configuration::KNOWN_SERVICES.each do |service| = render "statistic", name: "#{service.capitalize}", value: service_status(service, @statistics.available_services), activated: service_class(service, @statistics.available_services)
app/views/node_info/statistics.html.haml +1 −2 Original line number Diff line number Diff line .container-fluid = render "statistics"