Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

pirms 4 gadiem
pirms 4 gadiem
pirms 4 gadiem
pirms 3 gadiem
pirms 4 gadiem
pirms 3 gadiem
pirms 3 gadiem
pirms 4 gadiem
pirms 3 gadiem
pirms 4 gadiem
pirms 3 gadiem
pirms 4 gadiem
pirms 3 gadiem
pirms 4 gadiem
pirms 3 gadiem
pirms 4 gadiem
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. <div class="container">
  2. <div class="row">
  3. <div class="col-sm-11">
  4. <h1>
  5. [<%= self.type.to_s.upcase %>] <%= @host %> <span class="small">(<%= l @result.date %>)</span>
  6. </h1>
  7. </div>
  8. <% if Time.now - @result.date >= Rails.configuration.refresh_delay %>
  9. <div class="col-sm-1">
  10. <%= link_to t('Refresh'), { action: :refresh }, class: %i(btn btn-default) %>
  11. </div>
  12. <% end %>
  13. </div>
  14. <% @result.hosts.each do |host| %>
  15. <div class="row">
  16. <div class="col-sm-12">
  17. <h2>
  18. <%= rank_label host.grade %>
  19. <%= host.ip %> : <%= host.port %>
  20. <span class="small">(<%= host.hostname %>)</span></h2>
  21. </div>
  22. </div>
  23. <div class="row">
  24. <div class="col-sm-12">
  25. <h3><%= t 'Checks' %></h3>
  26. <table class="table table-bordered table-condensed table-striped">
  27. <thead>
  28. <th><%= t 'Severity' %></th>
  29. <td></td>
  30. </thead>
  31. <tbody>
  32. <% ::CryptCheck::State.each do |level| %>
  33. <tr>
  34. <th><%= label level, "state-#{level}" %></th>
  35. <td><%= labels level, host.states[level] %></td>
  36. </tr>
  37. <% end %>
  38. </tbody>
  39. </table>
  40. </div>
  41. </div>
  42. <div class="row">
  43. <div class="col-sm-12">
  44. <h3><%= t 'Certificates' %></h3>
  45. <table class="table table-bordered table-condensed table-striped">
  46. <thead>
  47. <tr>
  48. <th>
  49. <%= t 'Subject' %>
  50. <span class="small">[<%= t 'Serial' %>]</span>
  51. <div class="small"><%= t 'Fingerprint' %></div>
  52. </th>
  53. <td><%= t 'Issuer' %></td>
  54. <td><%= t 'Not before' %></td>
  55. <td><%= t 'Not after' %></td>
  56. <th></th>
  57. </tr>
  58. </thead>
  59. <tbody>
  60. <% host.handshakes.certs.each do |cert| %>
  61. <tr>
  62. <th>
  63. <%= cert.subject %> [<%= cert.serial %>]
  64. <div class="small"><%= cert.fingerprint %></div>
  65. </th>
  66. <td><%= cert.issuer %></td>
  67. <td><%= l cert.lifetime.not_before %></td>
  68. <td><%= l cert.lifetime.not_after %></td>
  69. <td><%= states cert.states %></td>
  70. </tr>
  71. <% cert.chain.each do |cert| %>
  72. <tr>
  73. <th>
  74. <%= cert.subject %> [<%= cert.serial %>]
  75. <div class="small"><%= cert.fingerprint %></div>
  76. </th>
  77. <td><%= cert.issuer %></td>
  78. <td><%= l cert.lifetime.not_before %></td>
  79. <td><%= l cert.lifetime.not_after %></td>
  80. </tr>
  81. <% end %>
  82. <% end %>
  83. </tbody>
  84. </table>
  85. </div>
  86. </div>
  87. <% end %>
  88. </div>