From 8db2f40b4554d25c74d727c74b41b5c5da516527 Mon Sep 17 00:00:00 2001 From: Susan Potter Date: Mon, 20 Feb 2012 23:27:43 -0600 Subject: [PATCH] Add templates for Aruba reporting --- templates/files.erb | 14 ++++++++ templates/index.erb | 79 ++++++++++++++++++++++++++++++++++++++++ templates/main.erb | 88 +++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 181 insertions(+) create mode 100644 templates/files.erb create mode 100644 templates/index.erb create mode 100644 templates/main.erb diff --git a/templates/files.erb b/templates/files.erb new file mode 100644 index 0000000..39adf63 --- /dev/null +++ b/templates/files.erb @@ -0,0 +1,14 @@ +<% if children(file).any? %> + +<% end -%> diff --git a/templates/index.erb b/templates/index.erb new file mode 100644 index 0000000..0a50e11 --- /dev/null +++ b/templates/index.erb @@ -0,0 +1,79 @@ + + + + + <%= index_title %> + + + + + + + + + + + + + + + + +
+

<%= index_title %>

+ <% Aruba::Reporting.reports.keys.sort{|f1, f2| f1.title <=> f2.title}.each do |feature| -%> +

<%= feature.title %>

+ + <% end -%> +
+ + + + + + + + + + + + + + + + + + + + diff --git a/templates/main.erb b/templates/main.erb new file mode 100644 index 0000000..ff69b92 --- /dev/null +++ b/templates/main.erb @@ -0,0 +1,88 @@ + + + + + <%= index_title %> + + + + + + + + + + + + + + + + +
+

<%= title %>

+ +
+ <%= description %> +
+ +

Files

+
+ <%= files %> +
+ +

Output

+
+      <% commands.each do |cmd| -%>
+      $ <%= cmd %>
+      <% end -%>
+      <%= output %>
+      
+
+ + + + + + + + + + + + + + + + + + + +