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

No oauth applications yet!

<% else %> <% oauth_applications_ds.each do |application| %> <% end %>
Client ID (<%= apps_count %>) Name Homepage
<%= 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]) %>
<% end %>