]> git.openstreetmap.org Git - rails.git/blobdiff - app/views/browse/changeset.html.erb
Add rate limiting for changeset comments
[rails.git] / app / views / browse / changeset.html.erb
index 3c5ba7de0dd33868d28e5e3ba616f4d595dd5a68..b5c360a03db4c15fa80cc1db03fd176a40d856c7 100644 (file)
@@ -78,6 +78,8 @@
         <div class="mb-3">
           <textarea class="form-control" name="text" cols="40" rows="5"></textarea>
         </div>
+        <div id="comment-error" class="alert-danger p-2 mb-3" hidden>
+        </div>
         <div>
           <input type="submit" name="comment" value="<%= t("javascripts.changesets.show.comment") %>" data-changeset-id="<%= @changeset.id %>" data-method="POST" data-url="<%= changeset_comment_url(@changeset) %>" disabled="1" class="btn btn-sm btn-primary" />
         </div>