summaryrefslogtreecommitdiff
path: root/app/views/calls
diff options
context:
space:
mode:
authorStefan Wintermeyer <stefan.wintermeyer@amooma.de>2012-12-17 12:01:45 +0100
committerStefan Wintermeyer <stefan.wintermeyer@amooma.de>2012-12-17 12:01:45 +0100
commitb80bd744ad873f6fc43018bc4bfb90677de167bd (patch)
tree072c4b0e33d442528555b82c415f5e7a1712b2b0 /app/views/calls
parent3e706c2025ecc5523e81ad649639ef2ff75e7bac (diff)
Start of GS5.
Diffstat (limited to 'app/views/calls')
-rw-r--r--app/views/calls/_index_core.html.haml9
-rw-r--r--app/views/calls/index.html.haml6
2 files changed, 15 insertions, 0 deletions
diff --git a/app/views/calls/_index_core.html.haml b/app/views/calls/_index_core.html.haml
new file mode 100644
index 0000000..ddd0650
--- /dev/null
+++ b/app/views/calls/_index_core.html.haml
@@ -0,0 +1,9 @@
+%table
+ %tr
+ %th= t('calls.index.uuid')
+
+ - reset_cycle
+ - for call in @calls
+ %tr{:class => cycle('odd', 'even')}
+ %td
+ = call.uuid
diff --git a/app/views/calls/index.html.haml b/app/views/calls/index.html.haml
new file mode 100644
index 0000000..4ea60a6
--- /dev/null
+++ b/app/views/calls/index.html.haml
@@ -0,0 +1,6 @@
+- title t("calls.index.page_title")
+
+- if @calls.count > 0
+ = render "index_core", :calls => @calls
+
+= render :partial => 'shared/create_link', :locals => {:parent => @parent, :child_class => Call} \ No newline at end of file