_signed_in_index.html.erb 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. <div class='container'>
  2. <div class='row'>
  3. <div class='col-md-12'>
  4. <div class="page-header">
  5. <h2>Welcome to Huginn!</h2>
  6. </div>
  7. </div>
  8. </div>
  9. <div class='row'>
  10. <div class='col-md-6'>
  11. <p>
  12. You have created <span class="text-success"><%= pluralize current_user.agents.count, "agent" %></span>.
  13. </p>
  14. <p>
  15. <%= link_to 'View <i class="icon-chevron-right"></i>'.html_safe, agents_path, class: "btn btn-primary" %>
  16. </p>
  17. </div>
  18. <div class='col-md-6'>
  19. <p>
  20. Your agents have recorded
  21. <span class="text-success"><%= pluralize current_user.events.recent.count, "event" %> recently</span> and
  22. <span class=""><%= pluralize current_user.events.count, 'event' %> in total</span>.
  23. </p>
  24. <p>
  25. <%= link_to 'View <i class="icon-chevron-right"></i>'.html_safe, events_path, class: "btn btn-primary" %>
  26. </p>
  27. </div>
  28. </div>
  29. <div class='row' style='min-height: 250px'></div>
  30. <div class='row'>
  31. <div class='col-md-10'>
  32. <blockquote>
  33. <p>...two ravens named Huginn and Muninn sit on Odin's shoulders. The ravens tell Odin everything they see and
  34. hear. Odin sends Huginn and Muninn out at dawn, and the birds fly all over the world before returning at
  35. dinner-time. As a result, Odin is kept informed of many events.</p>
  36. <small><a href="http://en.wikipedia.org/wiki/Huginn_and_Muninn">Wikipedia</a>, in reference to
  37. <em>Gylfaginning</em></small>
  38. </blockquote>
  39. </div>
  40. <div class='col-md-2'>
  41. <%= image_tag 'odin.jpg', :class => 'img-responsive img-rounded', :title => "Wägner, Wilhelm. 1882. Nordisch-germanische Götter und Helden. Otto Spamer, Leipzig & Berlin. Page 7." %>
  42. </div>
  43. </div>
  44. </div>