microengine 0.1.2 → 0.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/Rakefile +1 -1
- data/lib/admin_page.rb +2 -6
- metadata +2 -2
data/Rakefile
CHANGED
data/lib/admin_page.rb
CHANGED
@@ -21,11 +21,6 @@ module Microengine
|
|
21
21
|
class AdminPage
|
22
22
|
|
23
23
|
def initialize(http, path, admin)
|
24
|
-
if admin.dispatcher.spider? http.agent
|
25
|
-
admin.dispatcher.not_found http
|
26
|
-
return
|
27
|
-
end
|
28
|
-
|
29
24
|
@http = http
|
30
25
|
@path = '/' + path
|
31
26
|
@admin = admin
|
@@ -176,7 +171,8 @@ module Microengine
|
|
176
171
|
|
177
172
|
# Display admin HTML in page layout
|
178
173
|
def display(view)
|
179
|
-
header = "<title>#{@translation[view]['title']}</title
|
174
|
+
header = "<title>#{@translation[view]['title']}</title>\n" +
|
175
|
+
'<meta name="robots" content="noindex, nofollow" />'
|
180
176
|
rhtml = IO.read File.dirname(__FILE__) + "/html/#{view}.rhtml"
|
181
177
|
body = ERB.new(rhtml).result(binding)
|
182
178
|
|
metadata
CHANGED
@@ -3,8 +3,8 @@ rubygems_version: 0.9.4
|
|
3
3
|
specification_version: 1
|
4
4
|
name: microengine
|
5
5
|
version: !ruby/object:Gem::Version
|
6
|
-
version: 0.1.
|
7
|
-
date: 2008-
|
6
|
+
version: 0.1.3
|
7
|
+
date: 2008-03-09 00:00:00 +03:00
|
8
8
|
summary: MicroEngine is a fast, simple and minimalistic site engine.
|
9
9
|
require_paths:
|
10
10
|
- lib
|