Sha256: 420e6b392947e9e6155d1f70e74a5e1024d21786b9242153551971e5adbba5ae
Contents?: true
Size: 1.11 KB
Versions: 1
Compression:
Stored size: 1.11 KB
Contents
<% oauth_applications_ds = rodauth.scope.instance_variable_get(:@oauth_applications) %> <% apps_count = oauth_applications_ds.count %> <div class="btn-group" role="group" aria-label="Buttons"> <%= link_to "New Oauth Application", "#{rodauth.oauth_applications_path}/new", class: "btn btn-secondary" %> </div> <% if apps_count.zero? %> <p>No oauth applications yet!</p> <% else %> <table class="table"> <thead> <tr> <th scope="col">Client ID (<%= apps_count %>)</th> <th scope="col">Name</th> <th scope="col">Homepage</th> <th scope="col"></th> </tr> </thead> <tbody> <% oauth_applications_ds.each do |application| %> <tr> <td><%= application[rodauth.oauth_applications_client_id_column] %></td> <td><%= application[rodauth.oauth_applications_name_column] %></td> <td><%= application[rodauth.oauth_applications_homepage_url_column] %></td> <td><%= link_to "Show", rodauth.oauth_application_path(application[rodauth.oauth_applications_id_column]) %></td> </tr> <% end %> </tbody> </table> <% end %>
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rodauth-oauth-0.7.4 | lib/generators/rodauth/oauth/templates/app/views/rodauth/oauth_applications.html.erb |