---
src/app/views/dashboard/show.html.erb | 13 +++++++++++++
src/public/stylesheets/components.css | 24 ++++++++++++++++++++++++
2 files changed, 37 insertions(+), 0 deletions(-)
diff --git a/src/app/views/dashboard/show.html.erb
b/src/app/views/dashboard/show.html.erb
index 7d4ed39..14c70fd 100644
--- a/src/app/views/dashboard/show.html.erb
+++ b/src/app/views/dashboard/show.html.erb
@@ -32,6 +32,19 @@
</div>
<% end %>
+<div id="actions_dashboard_section">
+<h2>Actions</h2>
+<% if @current_user.permissions.collect { |p| p.role }.find { |r| r.name ==
"Administrator" } %>
+ <a href="<%= url_for :controller => "", :action => "" %>">Add a Provider
Account</a>
+ <a href="<%= url_for :controller => "provider", :action => "new" %>">Add a
Provider</a>
+ <a href="<%= url_for :controller => "", :action => "" %>">Create a
Template</a>
+ <a href="<%= url_for :controller => "users", :action => "new" %>">Create a
User</a>
+<% else %>
+ <a href="<%= url_for :controller => "", :action => "" %>">Launch
Instances</a>
+ <a href="<%= url_for :controller => "", :action => "" %>">Enter a help
ticket</a>
+<% end %>
+</div>
+
<script type="text/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 6ab611d..4a79bc3 100644
--- a/src/public/stylesheets/components.css
+++ b/src/public/stylesheets/components.css
@@ -53,6 +53,7 @@
width: 850px;
font-size: .9em;
padding: 10px;
+ margin: 10px 0px 10px 5px;
border: 1px solid black;
-moz-border-radius: 5px;
-webkit-border-radius: 5px;
@@ -88,3 +89,26 @@
#getting_started_links a {
float: right;
}
+
+#actions_dashboard_section {
+ width: 390;
+ 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;
+}
--
1.6.2.5
_______________________________________________
deltacloud-devel mailing list
[email protected]
https://fedorahosted.org/mailman/listinfo/deltacloud-devel