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.4KB

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