You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

main.htm 2.0KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. {% extends 'base.htm' %}
  2. {% macro render_article_link(desc) %}
  3. <li><a href="{{ desc.url }}">{{ desc.title }}</a></li>
  4. {% endmacro %}
  5. {% block content %}
  6. <div class="uhaul_cont">
  7. <div>
  8. It has been
  9. </div>
  10. <div class="uhaul_main">
  11. <div class="uhaul_num">
  12. {{ sb.num_days }}
  13. </div>
  14. <div class="uhaul_days">
  15. days
  16. </div>
  17. </div>
  18. <div class="uhaul_footer">
  19. since Storrow Dr. was in the news
  20. </div>
  21. </div>
  22. <div id="main" class="container">
  23. <h1>Why?</h1>
  24. <p>
  25. If you're unfamiliar with Boston, there's a
  26. <a href="https://en.wikipedia.org/wiki/Storrow_Drive">road along the Charles river</a>
  27. known for having several low bridges going over it. People seem to have a
  28. lot of problems with it when driving tall trucks, especially movers driving
  29. U-Hauls.
  30. </p>
  31. <p>
  32. I made this website because I thought it was funny. It works by searching
  33. for news articles with certain keywords on Google on each day. This only
  34. works well if the incidents are reported on on news sites/etc, but there are
  35. false-positives (which you can report soon!). There's also a way to request
  36. incident data directly the MassDOT, but that's a lot more work to pull data
  37. from and I'm not sure how quickly it's updated so I'll leave that to someone
  38. more dedicated to work on.
  39. </p>
  40. <h1>Articles</h1>
  41. <div id="notices">
  42. {% for n in notices %}
  43. <div class="alert alert-{{ n.style }}">
  44. {{ n.text }}
  45. </div>
  46. {% endfor %}
  47. </div>
  48. <div id="days">
  49. {% for d in sb.days %}
  50. <div class="day mb-3">
  51. <h3>{{ d.date }}</h3>
  52. <ul>
  53. {% for l in d.links %}
  54. {{ render_article_link(l) }}
  55. {% endfor %}
  56. </ul>
  57. {% if d.maybe_links|length > 0 %}
  58. <details>
  59. <summary><em>and {{ d.maybe_links|length }} weak match(es)</em></summary>
  60. <ul>
  61. {% for l in d.maybe_links %}
  62. {{ render_article_link(l) }}
  63. {% endfor %}
  64. </ul>
  65. </details>
  66. {% endif %}
  67. </div>
  68. {% endfor %}
  69. </div>
  70. </div>
  71. {% endblock %}