The "Create a Template", "Launch Instances" and "Enter a help ticket" links are empty but they're just placeholders and will be fixed later, right?
If so, ACK.
----- Original Message ----- From: "Mohammed Morsi" mmorsi@redhat.com To: deltacloud-devel@lists.fedorahosted.org Sent: Wednesday, May 19, 2010 8:04:07 PM GMT +01:00 Amsterdam / Berlin / Bern / Rome / Stockholm / Vienna Subject: [deltacloud-devel] [PATCH aggregator 3/4] 'actions' dashboard portlet
--- src/app/views/dashboard/summary.haml | 18 ++++++++++++++++++ src/public/stylesheets/components.css | 24 ++++++++++++++++++++++++ 2 files changed, 42 insertions(+), 0 deletions(-)
diff --git a/src/app/views/dashboard/summary.haml b/src/app/views/dashboard/summary.haml index 029b964..4eeb58b 100644 --- a/src/app/views/dashboard/summary.haml +++ b/src/app/views/dashboard/summary.haml @@ -26,6 +26,24 @@ %input{ :id => "hide_getting_started", :type => "checkbox" } Thanks, don't show this again
+#actions_dashboard_section + %h2 + Actions + - if @current_user.permissions.collect { |p| p.role }.find { |r| r.name == "Administrator" } + %a{:href => url_for(:controller => "cloud_accounts", :action => "new")} + Add a Provider Account + %a{:href => url_for(:controller => "provider", :action => "new")} + Add a Provider + %a{:href => url_for(:controller => "", :action => "")} + Create a Template + %a{:href => url_for(:controller => "users", :action => "new")} + Create a User + - else + %a{:href => url_for(:controller => "", :action => "")} + Launch Instances + %a{:href => url_for(:controller => "", :action => "")} + Enter a help ticket + :javascript $("#hide_getting_started").click(function(){ $('#getting_started_dashboard_section').hide(); diff --git a/src/public/stylesheets/components.css b/src/public/stylesheets/components.css index 2479133..0e80a39 100644 --- a/src/public/stylesheets/components.css +++ b/src/public/stylesheets/components.css @@ -72,6 +72,7 @@ ul.nav li { width: 850px; font-size: .9em; padding: 10px; + margin: 10px 0px 10px 5px; border: 1px solid black; -moz-border-radius: 5px; -webkit-border-radius: 5px; @@ -107,3 +108,26 @@ ul.nav li { #getting_started_links a { float: right; } + +#actions_dashboard_section { + width: 390px; + height: 100px; + border: 1px solid black; + background: #F2F2F2; + padding: 5px 0 5px 15px; + margin: 10px 0px 10px 5px; + -moz-border-radius: 5px; + -webkit-border-radius: 5px; +} + +#actions_dashboard_section h2 { + padding: 0; +} + +#actions_dashboard_section a { + display: block; + float: left; + margin: 0px 15px 5px 0px; + color: blue; + text-decoration: underline; +}
deltacloud-devel@lists.fedorahosted.org