Eliminate separate browse.css asset

This commit is contained in:
John Firebaugh 2013-10-03 16:53:04 -07:00
parent 4557654ba6
commit 054f934f27
10 changed files with 3 additions and 33 deletions

View file

@ -2440,3 +2440,5 @@ a.button {
&.infringement { background-position: 0px -160px; }
}
}
@import 'browse';

View file

@ -1,7 +1,3 @@
<% content_for :head do %>
<%= stylesheet_link_tag 'browse' %>
<% end %>
<h2><%= t 'browse.changeset.changeset', :id => @changeset.id %></h2>
<div class='browse-section common'>

View file

@ -3,10 +3,6 @@
@title = t('browse.node.node') + ' | ' + @name
%>
<% content_for :head do %>
<%= stylesheet_link_tag 'browse' %>
<% end %>
<h2><%= t'browse.node.node_title', :node_name => @name %></h2>
<%= render :partial => "node_details", :object => @node %>

View file

@ -3,10 +3,6 @@
@title = t('browse.node_history.node_history') + ' | ' + @name
%>
<% content_for :head do %>
<%= stylesheet_link_tag 'browse' %>
<% end %>
<h2><%= raw t'browse.node_history.node_history_title', :node_name => link_to(h(@name), :action => "node", :id => @node.id) %></h2>
<% @node.old_nodes.reverse.each do |node| %>

View file

@ -1,7 +1,3 @@
<% content_for :head do %>
<%= stylesheet_link_tag 'browse' %>
<% end %>
<h2><%= t "browse.note.#{@note.status}_title", :note_name => @note.id %></h2>
<% if @note.comments.find { |comment| comment.author.nil? } -%>

View file

@ -3,10 +3,6 @@
@title = t('browse.relation.relation') + ' | ' + @name
%>
<% content_for :head do %>
<%= stylesheet_link_tag 'browse' %>
<% end %>
<h2><%= t'browse.relation.relation_title', :relation_name => @name %></h2>
<%= render :partial => "relation_details", :object => @relation %>

View file

@ -3,10 +3,6 @@
@title = t('browse.relation_history.relation_history') + ' | ' + @name
%>
<% content_for :head do %>
<%= stylesheet_link_tag 'browse' %>
<% end %>
<h2><%= raw t'browse.relation_history.relation_history_title', :relation_name => link_to(h(@name), :action => "relation", :id => @relation.id) %></h2>
<% @relation.old_relations.reverse.each do |relation| %>

View file

@ -3,10 +3,6 @@
@title = t('browse.way.way') + ' | ' + @name
%>
<% content_for :head do %>
<%= stylesheet_link_tag 'browse' %>
<% end %>
<h2><%= t'browse.way.way_title', :way_name => @name %></h2>
<%= render :partial => "way_details", :object => @way %>

View file

@ -3,10 +3,6 @@
@title = t('browse.way_history.way_history') + ' | ' + @name
%>
<% content_for :head do %>
<%= stylesheet_link_tag 'browse' %>
<% end %>
<h2><%= raw t'browse.way_history.way_history_title', :way_name => link_to(h(@name), :action => "way", :id => @way.id) %></h2>
<% @way.old_ways.reverse.each do |way| %>

View file

@ -73,7 +73,7 @@ OpenStreetMap::Application.configure do
config.assets.precompile += %w( user.js diary_entry.js pngfix.js swfobject.js )
config.assets.precompile += %w( large-ltr.css small-ltr.css print-ltr.css )
config.assets.precompile += %w( large-rtl.css small-rtl.css print-rtl.css )
config.assets.precompile += %w( browse.css leaflet-all.css leaflet.ie.css )
config.assets.precompile += %w( leaflet-all.css leaflet.ie.css )
config.assets.precompile += %w( embed.js embed.css )
config.assets.precompile += %w( images/marker-*.png img/*-handle.png )
config.assets.precompile += %w( potlatch2.swf )