summaryrefslogtreecommitdiff
path: root/templates/project/dashboards/sample.erb
diff options
context:
space:
mode:
Diffstat (limited to 'templates/project/dashboards/sample.erb')
-rw-r--r--templates/project/dashboards/sample.erb25
1 files changed, 25 insertions, 0 deletions
diff --git a/templates/project/dashboards/sample.erb b/templates/project/dashboards/sample.erb
new file mode 100644
index 0000000..08c3b51
--- /dev/null
+++ b/templates/project/dashboards/sample.erb
@@ -0,0 +1,25 @@
+<% content_for :title do %>My super sweet dashboard<% end %>
+<div class="gridster">
+ <ul>
+ <li data-row="1" data-col="1" data-sizex="2" data-sizey="1">
+ <div data-id="welcome" data-view="Text" data-title="Hello" data-text="This is your shiny new dashboard." data-moreinfo="Protip: You can drag the widgets around!"></div>
+ </li>
+
+ <li data-row="1" data-col="1" data-sizex="1" data-sizey="1">
+ <div data-id="synergy" data-view="Meter" data-title="Synergy" data-height="200" data-width="200" data-min="0" data-max="100" data-suffix="%"></div>
+ </li>
+
+ <li data-row="1" data-col="1" data-sizex="1" data-sizey="2">
+ <div data-id="buzzwords" data-view="List" data-unordered="true" data-title="Buzzwords" data-moreinfo="# of times said around the office"></div>
+ </li>
+
+ <li data-row="1" data-col="1" data-sizex="1" data-sizey="1">
+ <div data-id="valuation" data-view="Number" data-title="Current Valuation" data-moreinfo="In billions" data-prefix="$"></div>
+ </li>
+
+ <li data-row="1" data-col="1" data-sizex="2" data-sizey="1">
+ <div data-id="convergence" data-view="Graph" data-title="Convergence" style="background-color:#ff9618"></div>
+ </li>
+ </ul>
+ <center><div style="font-size: 12px">Try this: curl -d '{ "auth_token": "YOUR_AUTH_TOKEN", "text": "Hey, Look what I can do!" }' \http://<%=request.host%>:<%=request.port%>/widgets/welcome</div></center>
+</div>