Skip to content

Commit 48d7fea

Browse files
committed
fix colspan for HtmlTableFormatter and dynamic search for routes
1 parent 692f25a commit 48d7fea

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

actionpack/lib/action_dispatch/middleware/templates/routes/_table.html.erb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@
158158
function buildTr(string) {
159159
var tr = document.createElement('tr');
160160
var th = document.createElement('th');
161-
th.setAttribute('colspan', 4);
161+
th.setAttribute('colspan', 5);
162162
tr.appendChild(th);
163163
th.innerText = string;
164164
return tr;

actionpack/lib/action_dispatch/routing/inspector.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -289,7 +289,7 @@ def initialize(view)
289289
end
290290

291291
def section_title(title)
292-
@buffer << %(<tr><th colspan="4">#{title}</th></tr>)
292+
@buffer << %(<tr><th colspan="5">#{title}</th></tr>)
293293
end
294294

295295
def section(routes)

0 commit comments

Comments
 (0)