utopia 0.9.59 → 0.9.60
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/utopia/link.rb +3 -8
- data/lib/utopia/version.rb +1 -1
- metadata +2 -2
data/lib/utopia/link.rb
CHANGED
@@ -57,22 +57,18 @@ module Utopia
|
|
57
57
|
elsif @path
|
58
58
|
return @path.to_s
|
59
59
|
else
|
60
|
-
|
60
|
+
nil
|
61
61
|
end
|
62
62
|
end
|
63
63
|
|
64
64
|
def href?
|
65
|
-
return href !=
|
65
|
+
return href != nil
|
66
66
|
end
|
67
67
|
|
68
68
|
def title
|
69
69
|
@info[:title] || @title.to_title
|
70
70
|
end
|
71
71
|
|
72
|
-
def external?
|
73
|
-
@info.key? :uri
|
74
|
-
end
|
75
|
-
|
76
72
|
def to_href(options = {})
|
77
73
|
options[:content] ||= title
|
78
74
|
options[:class] ||= "link"
|
@@ -180,8 +176,7 @@ module Utopia
|
|
180
176
|
end
|
181
177
|
|
182
178
|
if indices == 0
|
183
|
-
|
184
|
-
links << Link.new(:directory, top + [filename, ""], {:uri => "\#"}.merge(directory_metadata))
|
179
|
+
links << Link.new(:directory, top + [filename, ""], directory_metadata)
|
185
180
|
end
|
186
181
|
elsif filename.match(INDEX_XNODE_FILTER) && options[:indices] == false
|
187
182
|
name = $1
|
data/lib/utopia/version.rb
CHANGED