diff options
author | Peter Kozak <spag@golwen.net> | 2013-02-27 06:04:50 -0500 |
---|---|---|
committer | Peter Kozak <spag@golwen.net> | 2013-02-27 06:04:50 -0500 |
commit | ed0117210837dd1d0d2dbf403799b70225caf0cd (patch) | |
tree | c7f27eba275bbedf0505e9078592f562f37e2bbe /app/views/calls/index.html.haml | |
parent | 22eb173c74893114350e4b5351a58b48673f63b3 (diff) |
calls views added
Diffstat (limited to 'app/views/calls/index.html.haml')
-rw-r--r-- | app/views/calls/index.html.haml | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/app/views/calls/index.html.haml b/app/views/calls/index.html.haml index be678cd..a87f809 100644 --- a/app/views/calls/index.html.haml +++ b/app/views/calls/index.html.haml @@ -1,6 +1,8 @@ - content_for :title, t("calls.index.page_title") - if @calls.count > 0 - = render "index_core", :calls => @calls + = render "index_core", :calls => @calls, :parent => @parent -= render :partial => 'shared/create_link', :locals => {:parent => @parent, :child_class => Call}
\ No newline at end of file +%a.btn.btn-small.btn-default{:href => method( :"new_#{@parent.class.name.underscore}_call_path" ).(@parent) } + %i.icon-plus + =t("calls.index.actions.create") |