summaryrefslogtreecommitdiff
path: root/app/views/switchboards/show.html.haml
diff options
context:
space:
mode:
authorStefan Wintermeyer <stefan.wintermeyer@amooma.de>2013-03-14 20:21:59 +0100
committerStefan Wintermeyer <stefan.wintermeyer@amooma.de>2013-03-14 20:21:59 +0100
commit3a0ea10cdd6084a8beb235f5c1573c22a5d733f0 (patch)
treeb46f34f8b88593af3bdcc164a563614d2dd41969 /app/views/switchboards/show.html.haml
parentf476fb7648fd235642233b2bbe5bb90cb57e8549 (diff)
Added a dashboard for Switchboard.
Diffstat (limited to 'app/views/switchboards/show.html.haml')
-rw-r--r--app/views/switchboards/show.html.haml23
1 files changed, 12 insertions, 11 deletions
diff --git a/app/views/switchboards/show.html.haml b/app/views/switchboards/show.html.haml
index 2932366..a825806 100644
--- a/app/views/switchboards/show.html.haml
+++ b/app/views/switchboards/show.html.haml
@@ -1,20 +1,21 @@
-- content_for :title, @switchboard.name
+- content_for :title, "Switchboard #{@switchboard.name}"
.row
.span12
- .well.pull-right
- %p
- =current_user
+ = render :partial => "current_user_dashboard", :current_user => current_user
%ul.thumbnails
= render :partial => "switchboard_entries/switchboard_entry", :collection => @switchboard_entries
-- if can? :edit, @switchboard
- .row
- .span12
- %a.btn.btn-small.btn-warning{:href => switchboard_switchboard_entries_path(@switchboard) }
- %i.icon-edit.icon-white
- %span.hidden-phone
- =t("switchboard_entries.index.page_title")
+ - if can? :edit, @switchboard
+ .row
+ .span12
+ %a.btn.btn-small.btn-warning{:href => switchboard_switchboard_entries_path(@switchboard) }
+ %i.icon-edit.icon-white
+ %span.hidden-phone
+ =t("switchboard_entries.index.page_title")
+
+ .span6
+
= subscribe_to "/switchboards/#{@switchboard.id}" \ No newline at end of file