Use optional parameter to set column class
- Fixes the extremely long class name on the post versions view - Can now use one value instead of having to set th and td - Added missing column classes on all tables
This commit is contained in:
@@ -16,7 +16,7 @@
|
||||
<% t.column "Date" do |ip| %>
|
||||
<%= time_ago_in_words_tagged ip.created_at %>
|
||||
<% end %>
|
||||
<% t.column do |ip| %>
|
||||
<% t.column column: "ip-info" do |ip| %>
|
||||
<%= link_to "IP info", "https://ipinfo.io/#{ip.ip_addr}" %>
|
||||
<% end %>
|
||||
<% end %>
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
<% t.column "Uses" do |ip| %>
|
||||
<%= link_to ip.count_all, ip_addresses_path(search: { ip_addr: ip.to_s }) %>
|
||||
<% end %>
|
||||
<% t.column "" do |ip| %>
|
||||
<% t.column column: "ip-info" do |ip| %>
|
||||
<%= link_to "IP info", "https://ipinfo.io/#{ip.ip_addr}" %>
|
||||
<% end %>
|
||||
<% end %>
|
||||
|
||||
Reference in New Issue
Block a user