You are here: Home > Latest news from Darcs > Changes background color around wiki source code

Revision 20080318223714-9043f-eb7b36...

Changes background color around wiki source code

app/views/wiki/raw.rhtml
public/stylesheets/motiro.css

Changes to raw.rhtml

1
<% pagetext(@page.title, '(Raw wiki text)') do %>
<% pagetext(@page.title, '(Raw wiki text)') do %>
1
2
  <% cache(:controller=> 'wiki', :action => 'raw',
  <% cache(:controller=> 'wiki', :action => 'raw',
2
3
           :page => @page.name, :locale_suffix => @locale) do %>
           :page => @page.name, :locale_suffix => @locale) do %>
3
4
    <pre><%= h(@page.text) -%></pre>
    <pre class="wikisource"><%= h(@page.text) -%></pre>
4
5
  <% end %>
  <% end %>
5
6
  <%= render :partial => 'editbar' %>
  <%= render :partial => 'editbar' %>
6
7
<% end %>
<% end %>
7

Changes to motiro.css

45
    border: 1px solid #679cd2;
    border: 1px solid #679cd2;
45
46
}
}
46
47
47
 
div.pagetext pre.wikisource {
48
 
    border: 1px solid #333;
49
 
    background-color: #dddde0;
50
 
    padding: .2em .4em .2em .4em;
51
 
}
52
 
53
48
div.channel div.pagetext, div.pagetext div.pagetext {
div.channel div.pagetext, div.pagetext div.pagetext {
54
49
    background-color: #FFF;
    background-color: #FFF;
55
50
    margin: 0;
    margin: 0;
56