<% oauth_applications_ds = rodauth.scope.instance_variable_get(:@oauth_applications) %> <% apps_count = oauth_applications_ds.count %>
<%= link_to rodauth.new_oauth_application_page_title, "#{rodauth.oauth_applications_path}/new", class: "btn btn-secondary" %>
<% if apps_count.zero? %>

<%= rodauth.oauth_no_applications_text %>

<% else %> <% oauth_applications_ds.each do |application| %> <% end %>
<%= rodauth.oauth_applications_client_id_label %> (<%= apps_count %>) <%= rodauth.oauth_applications_name_label %> <%= rodauth.oauth_applications_homepage_url_label %>
<%= application[rodauth.oauth_applications_client_id_column] %> <%= application[rodauth.oauth_applications_name_column] %> <%= application[rodauth.oauth_applications_homepage_url_column] %> <%= link_to "Show", rodauth.oauth_application_path(application[rodauth.oauth_applications_id_column]) %>
<%= rodauth.oauth_management_pagination_links(oauth_applications_ds).html_safe %> <% end %>