123456789101112131415161718192021222324252627282930313233343536373839404142434445 |
- <div class='container'>
- <div class='row'>
- <div class='col-md-12'>
- <div class="page-header">
- <h2>
- Your Credentials
- </h2>
- </div>
- <blockquote>
- Credentials are used to store values used by many Agents. Examples might include "twitter_consumer_secret",
- "user_full_name", or "user_birthday".
- </blockquote>
- <table class='table table-striped'>
- <tr>
- <th><%= sortable_column 'credential_name', 'asc', name: 'Name' %></th>
- <th><%= sortable_column 'credential_value', 'asc', name: 'Value' %></th>
- </tr>
- <% @user_credentials.each do |user_credential| %>
- <tr>
- <td><%= user_credential.credential_name %></td>
- <td>
- <%= truncate user_credential.credential_value %>
- <div class="btn-group btn-group-xs" style="float: right">
- <%= link_to 'Edit', edit_user_credential_path(user_credential), class: "btn btn-default" %>
- <%= link_to 'Delete', user_credential_path(user_credential), method: :delete, data: {confirm: 'Are you sure?'}, class: "btn btn-default" %>
- </div>
- </td>
- </tr>
- <% end %>
- </table>
- <%= paginate @user_credentials, :theme => 'twitter-bootstrap' %>
- <br/>
- <div class="btn-group">
- <%= link_to new_user_credential_path, class: "btn btn-default" do %><span class="glyphicon glyphicon-plus"></span> New Credential<% end %>
- <%= link_to user_credentials_path(format: :json), class: "btn btn-default" do %><span class="glyphicon glyphicon-cloud-download"></span> Download Credentials<% end %>
- </div>
- </div>
- </div>
- </div>
|