lib/helpers/paths_helper.rb in mongo3-0.0.7 vs lib/helpers/paths_helper.rb in mongo3-0.0.8
- old
+ new
@@ -26,12 +26,15 @@
# compute title from path
def title_for( path_names )
tokens = path_names.split( "|" )
buff = case tokens.size
- when 2 : "zone"
- when 3 : "database"
- else "collection"
+ when 2
+ "zone"
+ when 3
+ "database"
+ else
+ "collection"
end
db = tokens.size > 3 ? "<span class=\"ctx\">#{tokens[2]}</span>." : ""
"<p class=\"ctx\" style=\"text-align:center;font-size:0.8em\">#{db}#{tokens.last}</p>"
end
\ No newline at end of file