%li = route.to_s %small ( - if route == BrickLayer::Route.root = link_to "view page", "/brick_layer/pages", :target => "_blank" - else = link_to "view page", "/brick_layer/pages#{route.full_path}", :target => "_blank"  |  = link_to "edit", edit_route_path(route) - unless route.slug == ""  |  = link_to "add", new_route_path(route, :parent => route.id) )