1
0

index.html.erb 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. <div class='container'>
  2. <div class='row'>
  3. <div class='col-md-12'>
  4. <div class="page-header">
  5. <h2>
  6. Your Credentials
  7. </h2>
  8. </div>
  9. <blockquote>
  10. Credentials are used to store values used by many Agents. Examples might include "twitter_consumer_secret",
  11. "user_full_name", or "user_birthday".
  12. </blockquote>
  13. <table class='table table-striped'>
  14. <tr>
  15. <th><%= sortable_column 'credential_name', 'asc', name: 'Name' %></th>
  16. <th><%= sortable_column 'credential_value', 'asc', name: 'Value' %></th>
  17. </tr>
  18. <% @user_credentials.each do |user_credential| %>
  19. <tr>
  20. <td><%= user_credential.credential_name %></td>
  21. <td>
  22. <%= truncate user_credential.credential_value %>
  23. <div class="btn-group btn-group-xs" style="float: right">
  24. <%= link_to 'Edit', edit_user_credential_path(user_credential), class: "btn btn-default" %>
  25. <%= link_to 'Delete', user_credential_path(user_credential), method: :delete, data: {confirm: 'Are you sure?'}, class: "btn btn-default" %>
  26. </div>
  27. </td>
  28. </tr>
  29. <% end %>
  30. </table>
  31. <%= paginate @user_credentials, :theme => 'twitter-bootstrap' %>
  32. <br/>
  33. <div class="btn-group">
  34. <%= link_to new_user_credential_path, class: "btn btn-default" do %><span class="glyphicon glyphicon-plus"></span> New Credential<% end %>
  35. <%= link_to user_credentials_path(format: :json), class: "btn btn-default" do %><span class="glyphicon glyphicon-cloud-download"></span> Download Credentials<% end %>
  36. </div>
  37. </div>
  38. </div>
  39. </div>