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.

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109
  1. {% extends 'base.htm' %}
  2. {% macro render_article_link(desc, date) %}
  3. <div class="articleentry row mt-2 mb-2">
  4. <div class="col">
  5. <a href="{{ desc.url }}">{{ desc.title }}</a>
  6. </div>
  7. <div class="articlereport col-md-auto">
  8. <form action="/action/flag" method="POST">
  9. <input type="hidden" name="date" value="{{ date }}"/>
  10. <input type="hidden" name="article" value="{{ desc.url }}"/>
  11. <input class="btn btn-secondary" type="submit" value="Flag False Positive"/>
  12. </form>
  13. </div>
  14. </div>
  15. {% endmacro %}
  16. {% block content %}
  17. <div class="uhaul_cont">
  18. <div>
  19. It has been
  20. </div>
  21. <div class="uhaul_main">
  22. <div class="uhaul_num">
  23. {{ sb.num_days }}
  24. </div>
  25. <div class="uhaul_days">
  26. days
  27. </div>
  28. </div>
  29. <div class="uhaul_footer">
  30. since Storrow Dr. was in the news
  31. </div>
  32. </div>
  33. <div id="main" class="container">
  34. <h1>Why?</h1>
  35. <p>
  36. If you're unfamiliar with Boston, there's a
  37. <a href="https://en.wikipedia.org/wiki/Storrow_Drive">road along the Charles river</a>
  38. known for having several low bridges going over it. People seem to have a
  39. lot of problems with it when driving tall trucks, especially movers driving
  40. U-Hauls.
  41. </p>
  42. <p>
  43. I made this website because I thought it was funny. It works by searching
  44. for news articles with certain keywords on Google on each day. This only
  45. works well if the incidents are reported on on news sites/etc, but there are
  46. false-positives (which you can report!). There's also a way to request
  47. incident data directly from MassDOT, but that's a lot more work to pull data
  48. from and I'm not sure how quickly it's updated so I'll leave that to someone
  49. more dedicated to <a href="https://code.tr3y.io/treyzania/storrowed.boston">work on</a>.
  50. A common type of false positive that shows up with this is when a news site
  51. publishes an article about Storrow in general rather than a specific event,
  52. so feel free to report those if you want.
  53. </p>
  54. <h1>Articles</h1>
  55. <div id="notices">
  56. {% for n in notices %}
  57. <div class="alert alert-{{ n.style }}">
  58. {{ n.text }}
  59. </div>
  60. {% endfor %}
  61. </div>
  62. <div id="days">
  63. {% for d in sb.days %}
  64. <div class="day mb-3">
  65. <h3>{{ d.date }}</h3>
  66. <div>
  67. {% for l in d.links %}
  68. {{ render_article_link(l, d.date) }}
  69. {% endfor %}
  70. </div>
  71. {% if d.maybe_links|length > 0 %}
  72. <details>
  73. <summary><em>and {{ d.maybe_links|length }} weak match(es)</em></summary>
  74. <div>
  75. {% for l in d.maybe_links %}
  76. {{ render_article_link(l, d.date) }}
  77. {% endfor %}
  78. </div>
  79. </details>
  80. {% endif %}
  81. </div>
  82. {% endfor %}
  83. </div>
  84. <h1>Submit</h1>
  85. <div id="submit">
  86. Found an article that my shitty code missed? Submit it here and it'll
  87. verify and list it!
  88. <form class="row mt-3" action="/action/submit" method="POST">
  89. <div class="col-auto form-group mb-2">
  90. <input class="form-control" type="url" id="submit_url" name="article" placeholder="Article link" required/>
  91. </div>
  92. <div class="col-auto">
  93. <button class="btn btn-primary" type="submit">Submit</button>
  94. </div>
  95. </form>
  96. </div>
  97. </div>
  98. {% endblock %}