On Thu, 2010-09-02 at 20:17 +0200, [email protected] wrote:
> From: Tomas Sedovic <[email protected]>
> 
> This adds the new menu structure we plan to use. However, all the landing 
> pages
> for the menu items are not created yet. All the new links point to the root 
> URL.
> 
> As such, the old navigation remains as well (so that the site is usable).
> ---

This looks good so far, though I did not get to test it yet.  Couple
notes on the below section.  Everything that is currently listed as
first_level is not intended to be a page, they are just kind of group
headings.  From what I have seen of the designs, they wont even be
designated as selected or not, that will just be things from
second_level down.  The other thing is, all the url mappings should be
up in the html version of the org doc I have up (which you should be
able to access), and you can use that to know where to point the urls.
Any missing pages should be covered in the patch I have been revving on
with Steve (which if tests pass for someone else, is ready to go in).  I
suspect there will be very little, if anything that needs doing with
routes, but if you find any, great.  Overall, looking good, I will test
out your updated version tomorrow.

-j

> +
> +    first_level.item :operate, t(:operate), '/' do |second_level|
> +      second_level.item :monitor, t(:monitor), '/'
> +      second_level.item :inventory, t(:inventory), '/'
> +    end
> +    first_level.item :administer, t(:administer), '/' do |second_level|
> +      second_level.item :system_settings, t(:system_settings), '/' do 
> |third_level|
> +        third_level.item :manage_providers, t(:manage_providers), '/' do 
> |fourth_level|
> +          fourth_level.item :provider_summary, t(:provider_summary), '/'
> +          fourth_level.item :password_provider_accounts, 
> t(:password_provider_accounts), '/'
> +          fourth_level.item :certificate_provider_accounts, 
> t(:certificate_provider_accounts), '/'
> +          fourth_level.item :scheduling_policies, t(:scheduling_policies), 
> '/'
> +          fourth_level.item :map_services, t(:map_services), '/'
> +          fourth_level.item :map_profiles, t(:map_profiles), '/'
> +          fourth_level.item :map_locales, t(:map_locales), '/'
> +        end
> +        third_level.item :define_services, t(:define_services), '/'
> +        third_level.item :define_profiles, t(:define_profiles), '/'
> +        third_level.item :define_locales, t(:define_locales), '/'
> +        third_level.item :self_service_settings, t(:self_service_settings), 
> '/'
> +        third_level.item :manage_users, t(:manage_users), {:controller => 
> "permissions", :action => "list"} , :if => lambda { @current_user && 
> has_view_perms?(BasePermissionObject.general_permission_scope) } do 
> |fourth_level|
> +          fourth_level.item :new_user, t(:new_user), '/'
> +          fourth_level.item :edit_user, t(:edit_user), '/'
> +        end
> +      end
> +      second_level.item :pools_and_zones, t(:pools_and_zones), '/' do 
> |third_level|
> +        third_level.item :new_pool, t(:new_pool), '/', :if => lambda { true }
> +        third_level.item :edit_pool, t(:edit_pool), '/', :if => lambda { 
> true }
> +        third_level.item :new_zone, t(:new_zone), '/', :if => lambda { true }
> +        third_level.item :edit_zone, t(:edit_zone), '/', :if => lambda { 
> true }
> +      end
> +      second_level.item :audit, t(:audit), '/'
> +      second_level.item :assistance_requests, t(:assistance_requests), '/'
> +    end
> +    first_level.item :build, t(:build), '/' do |second_level|
> +      second_level.item :template_management, t(:template_management), '/' 
> do |third_level|
> +        third_level.item :basic_template, t(:basic_template), '/' do 
> |fourth_level|
> +          fourth_level.item :browse_packages, t(:browse_packages), '/'
> +        end
> +        third_level.item :import_template, t(:import_template), '/'
> +      end
> +      second_level.item :grind_management, t(:grind_management), '/'
> +      second_level.item :image_management, t(:image_management), '/'
> +    end
> +    first_level.item :run, t(:run), '/' do |second_level|
> +      second_level.item :manage_instances, t(:manage_instances), '/' do 
> |third_level|
> +        third_level.item :pool_details, t(:pool_details), '/'
> +        third_level.item :instance_details, t(:instance_details), '/'
> +        third_level.item :launch_instance, t(:launch_instance), '/'
> +      end
> +    end
>    end
>  end


_______________________________________________
deltacloud-devel mailing list
[email protected]
https://fedorahosted.org/mailman/listinfo/deltacloud-devel

Reply via email to