summaryrefslogtreecommitdiff
path: root/app/views/help/instance_configuration/_rate_limit_row.html.haml
blob: 85c165de7d4d47ec3a23615e01a92ccdf0842947 (plain)
1
2
3
4
5
6
7
- public_visible = local_assigns.fetch(:public_visible, false)

- if rate_limit && (public_visible || user_signed_in?)
  %tr
    %td= title
    %td= instance_configuration_cell_html(rate_limit[:enabled] ? rate_limit[:requests_per_period] : nil)
    %td= instance_configuration_cell_html(rate_limit[:enabled] ? rate_limit[:period_in_seconds] : nil)