]> git.openstreetmap.org Git - rails.git/commitdiff
Fix erblint warnings
authorTom Hughes <tom@compton.nu>
Wed, 16 Sep 2020 15:59:10 +0000 (16:59 +0100)
committerTom Hughes <tom@compton.nu>
Wed, 16 Sep 2020 15:59:10 +0000 (16:59 +0100)
app/views/browse/_node.html.erb
app/views/browse/_relation.html.erb
app/views/browse/_way.html.erb

index ab91a9728a6f8fd288de91f0608f00feae265638..77d3a5c16ec55ed86a90d299e1d4b028218d89c5 100644 (file)
@@ -1,5 +1,5 @@
 <% if node.redacted? %>
-  <div class='browse-section browse-redacted'>
+  <div class="browse-section browse-redacted">
     <%= t "browse.redacted.message_html",
           :type => t("browse.redacted.type.node"),
           :version => node.version,
@@ -7,14 +7,14 @@
                                        :id => node.redaction.id), node.redaction) %>
   </div>
 <% else %>
-  <div class='browse-section browse-node'>
+  <div class="browse-section browse-node">
     <%= render :partial => "common_details", :object => node %>
 
     <% unless node.ways.empty? and node.containing_relation_members.empty? %>
       <h4><%= t "browse.part_of" %></h4>
       <% unless node.ways.empty? %>
-        <details <%= 'open' if node.ways.count < 10 %>>
-          <summary><%= t 'browse.part_of_ways', :count => node.ways.count %></summary>
+        <details <%= "open" if node.ways.count < 10 %>>
+          <summary><%= t "browse.part_of_ways", :count => node.ways.count %></summary>
           <ul class="list-unstyled">
             <% node.ways.uniq.each do |way| %>
               <li><%= link_to printable_name(way), { :action => "way", :id => way.id.to_s }, { :class => link_class("way", way), :title => link_title(way) } %></li>
@@ -23,8 +23,8 @@
         </details>
       <% end %>
       <% unless node.containing_relation_members.empty? %>
-        <details <%= 'open' if node.containing_relation_members.count < 10 %>>
-          <summary><%= t 'browse.part_of_relations', :count => node.containing_relation_members.count %></summary>
+        <details <%= "open" if node.containing_relation_members.count < 10 %>>
+          <summary><%= t "browse.part_of_relations", :count => node.containing_relation_members.count %></summary>
           <ul class="list-unstyled">
             <%= render :partial => "containing_relation", :collection => node.containing_relation_members.uniq %>
           </ul>
index 1dc78afba4dd8d2d17ef2db4e39d793a9db039bc..cf9c62b133951943b209759a9973fac338b4f841 100644 (file)
@@ -1,5 +1,5 @@
 <% if relation.redacted? %>
-  <div class='browse-section browse-redacted'>
+  <div class="browse-section browse-redacted">
     <%= t "browse.redacted.message_html",
           :type => t("browse.redacted.type.relation"),
           :version => relation.version,
@@ -7,13 +7,13 @@
                                        :id => relation.redaction.id), relation.redaction) %>
   </div>
 <% else %>
-  <div class='browse-section browse-relation'>
+  <div class="browse-section browse-relation">
     <%= render :partial => "common_details", :object => relation %>
 
     <% unless relation.containing_relation_members.empty? %>
       <h4><%= t "browse.part_of" %></h4>
-      <details <%= 'open' if relation.containing_relation_members.count < 10 %>>
-        <summary><%= t 'browse.part_of_relations', :count => relation.containing_relation_members.count %></summary>
+      <details <%= "open" if relation.containing_relation_members.count < 10 %>>
+        <summary><%= t "browse.part_of_relations", :count => relation.containing_relation_members.count %></summary>
         <ul class="list-unstyled">
           <%= render :partial => "containing_relation", :collection => relation.containing_relation_members.uniq %>
         </ul>
@@ -22,8 +22,8 @@
 
     <% unless relation.relation_members.empty? %>
       <h4><%= t ".members" %></h4>
-      <details <%= 'open' if relation.relation_members.count < 10 %>>
-        <summary><%= t '.members_count', :count => relation.relation_members.count %></summary>
+      <details <%= "open" if relation.relation_members.count < 10 %>>
+        <summary><%= t ".members_count", :count => relation.relation_members.count %></summary>
         <ul class="list-unstyled">
           <%= render :partial => "relation_member", :collection => relation.relation_members %>
         </ul>
index 2788fdea920111c871d7a336a4c4cf475632bab7..d99919e64fa35577b92a4bd899b58d8828f28346 100644 (file)
@@ -1,5 +1,5 @@
 <% if way.redacted? %>
-  <div class='browse-section browse-redacted'>
+  <div class="browse-section browse-redacted">
     <%= t "browse.redacted.message_html",
           :type => t("browse.redacted.type.way"),
           :version => way.version,
@@ -7,13 +7,13 @@
                                        :id => way.redaction.id), way.redaction) %>
   </div>
 <% else %>
-  <div class='browse-section browse-way'>
+  <div class="browse-section browse-way">
     <%= render :partial => "common_details", :object => way %>
 
     <% unless way.containing_relation_members.empty? %>
       <h4><%= t "browse.part_of" %></h4>
-      <details <%= 'open' if way.containing_relation_members.count < 10 %>>
-        <summary><%= t 'browse.part_of_relations', :count => way.containing_relation_members.count %></summary>
+      <details <%= "open" if way.containing_relation_members.count < 10 %>>
+        <summary><%= t "browse.part_of_relations", :count => way.containing_relation_members.count %></summary>
         <ul class="list-unstyled">
           <%= render :partial => "containing_relation", :collection => way.containing_relation_members.uniq %>
         </ul>
@@ -22,8 +22,8 @@
 
     <% unless way.way_nodes.empty? %>
       <h4><%= t ".nodes" %></h4>
-      <details <%= 'open' if way.way_nodes.count < 10 %>>
-        <summary><%= t '.nodes_count', :count => way.way_nodes.count %></summary>
+      <details <%= "open" if way.way_nodes.count < 10 %>>
+        <summary><%= t ".nodes_count", :count => way.way_nodes.count %></summary>
         <ul class="list-unstyled">
           <% way.way_nodes.each do |wn| %>
             <li>