Sha256: a93094c3318e574ae8a8756bc00bac73faac067e827d7ef85cedaf9cbeaa9e8a

Contents?: true

Size: 1.65 KB

Versions: 26

Compression:

Stored size: 1.65 KB

Contents

<div class="client">
  <div class="metrics">
    <div id="fig"></div>
    <ul class="badges">
      <li title="Access tokens granted, lifetime total"><big>${$.thousands(tokens.total)}</big><small>Granted</small></li>
      <li title="Access tokens granted, last 7 days"><big>${$.thousands(tokens.week)}</big><small>This Week</small></li>
      <li title="Access tokens revoked, last 7 days"><big>${$.thousands(tokens.revoked)}</big><small>Revoked (Week)</small></li>
    </ul>
  </div>
  <a href="#/new" style="float:left">Add New Client</a>
  <table class="clients">
    <thead>
      <th>Application</th>
      <th>ID/Secret</th>
      <th>Created</th>
      <th>Revoked</th>
    </thead>
    {{each clients}}
    <tr class="${revoked ? "revoked" : "active"}">
      <td class="name">
        <a href="#/client/${id}">
          {{if imageUrl}}<img src="${imageUrl}">{{/if}}
          ${displayName.trim() == "" ? "untitled" : displayName}
        </a>
      </td>
      <td class="secrets">
        <a href="" rel="toggle">Reveal</a>
        <dl>
          <dt>ID</dt><dd>${id}</dd>
          <dt>Secret</dt><dd>${secret}</dd>
          <dt>Redirect</dt><dd>${redirectUri}</dd>
        </dl>
      </td>
      <td class="created">{{html $.shortdate(created)}}</td>
      <td class="revoke">{{if revoked}}{{html $.shortdate(revoked)}}{{/if}}</td>
    </tr>
    {{/each}}
  </table>
</div>
<script type="text/javascript">
  $("td.secrets a[rel=toggle]").click(function(evt) {
    evt.preventDefault();
    var dl = $(this).next("dl");
    if (dl.is(":visible")) {
      $(this).html("Reveal");
      dl.hide();
    } else {
      $(this).html("Hide");
      dl.show();
    }
  });
</script>

Version data entries

26 entries across 26 versions & 2 rubygems

Version Path
rack-oauth2-server-2.8.1 lib/rack/oauth2/admin/views/clients.tmpl
rack-oauth2-server-2.8.0 lib/rack/oauth2/admin/views/clients.tmpl
rack-oauth2-server-2.7.0 lib/rack/oauth2/admin/views/clients.tmpl
rack-oauth2-server-2.6.1 lib/rack/oauth2/admin/views/clients.tmpl
rack-oauth2-server-2.6.0 lib/rack/oauth2/admin/views/clients.tmpl
rack-oauth2-server-2.5.1 lib/rack/oauth2/admin/views/clients.tmpl
rack-oauth2-server-2.5.0 lib/rack/oauth2/admin/views/clients.tmpl
rack-oauth2-server-2.4.2 lib/rack/oauth2/admin/views/clients.tmpl
rack-oauth2-server-2.4.1 lib/rack/oauth2/admin/views/clients.tmpl
rack-oauth2-server-2.4.0 lib/rack/oauth2/admin/views/clients.tmpl
rack-oauth2-server-2.3.0 lib/rack/oauth2/admin/views/clients.tmpl
rack-oauth2-server-2.2.2 lib/rack/oauth2/admin/views/clients.tmpl
tpitale-rack-oauth2-server-2.2.1.2 lib/rack/oauth2/admin/views/clients.tmpl
tpitale-rack-oauth2-server-2.2.1.1 lib/rack/oauth2/admin/views/clients.tmpl
tpitale-rack-oauth2-server-2.2.1 lib/rack/oauth2/admin/views/clients.tmpl
rack-oauth2-server-2.2.1 lib/rack/oauth2/admin/views/clients.tmpl
rack-oauth2-server-2.2.0 lib/rack/oauth2/admin/views/clients.tmpl
rack-oauth2-server-2.1.0 lib/rack/oauth2/admin/views/clients.tmpl
rack-oauth2-server-2.0.1 lib/rack/oauth2/admin/views/clients.tmpl
rack-oauth2-server-2.0.0 lib/rack/oauth2/admin/views/clients.tmpl