Replaced links to static resources with appropriate Rails helpers

This commit is contained in:
Alexey Verkhovsky 2005-07-19 22:27:45 +00:00
parent e5f34fd1db
commit cf3cebb589
4 changed files with 14 additions and 15 deletions

View file

@ -135,5 +135,4 @@ TODO Enable these input elements again after release 0.10
</p>
<%= end_form_tag %>
<script type="text/javascript" src="/javascripts/edit_web.js" />
<script type="text/javascript">overrideAutocomplete()</script>
<%= javascript_include_tag 'edit_web' %>

View file

@ -26,22 +26,16 @@ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
<%= File.read(RAILS_ROOT + '/public/stylesheets/instiki.css') if @inline_style %>
</style>
<link rel="Stylesheet" href="/stylesheets/instiki.css" type="text/css" media="screen" />
<%= stylesheet_link_tag 'instiki' unless @inline_style %>
<style type="text/css">
<%= @style_additions %>
<%= @web ? @web.additional_style : '' %>
</style>
<% if @web %>
<link rel="alternate" type="application/rss+xml" title="<%= h @web.name %> - Headlines RSS"
href="<%= url_for :controller => 'wiki', :web => @web.address,
:action => 'rss_with_headlines' %>"
/>
<link rel="alternate" type="application/rss+xml" title="<%= h @web.name %> - Full Pages RSS"
href="<%= url_for :controller => 'wiki', :web => @web.address,
:action => 'rss_with_content' %>"
/>
<%= auto_discovery_link_tag(:rss, :controller => 'wiki', :web => @web.address, :action => 'rss_with_headlines') %>
<%= auto_discovery_link_tag(:rss, :controller => 'wiki', :web => @web.address, :action => 'rss_with_content') %>
<% end %>
</head>