config.ru in stoor-0.1.8 vs config.ru in stoor-0.1.9

- old
+ new

@@ -85,9 +85,22 @@ if ENV['STOOR_WIDE'] use Stoor::TransformContent, regexp: /<body>/, after: '<style type="text/css">#wiki-wrapper { width: 90%; } .markdown-body table { width: 100%; }</style>' end + if ENV['STOOR_READONLY'] + use Stoor::ReadOnly, '/sorry' + use Stoor::TransformContent, + regexp: /<body>/, + after: <<-STYLE + <style type="text/css"> + #minibutton-new-page { display: none; } + #minibutton-rename-page { display: none; } + a.action-edit-page { display: none; } + #delete-link { display: none; } + </style> + STYLE + end Precious::App.set(:gollum_path, gollum_path) Precious::App.set(:default_markup, :markdown) Precious::App.set(:wiki_options, { :universal_toc =>false }) run Precious::App