summaryrefslogtreecommitdiff
path: root/app/views
diff options
context:
space:
mode:
Diffstat (limited to 'app/views')
-rw-r--r--app/views/access_authorizations/_index_core.html.haml2
-rw-r--r--app/views/access_authorizations/edit.html.haml2
-rw-r--r--app/views/access_authorizations/index.html.haml2
-rw-r--r--app/views/access_authorizations/new.html.haml2
-rw-r--r--app/views/access_authorizations/show.html.haml2
-rw-r--r--app/views/acd_agents/_index_core.html.haml2
-rw-r--r--app/views/acd_agents/edit.html.haml2
-rw-r--r--app/views/acd_agents/index.html.haml2
-rw-r--r--app/views/acd_agents/new.html.haml2
-rw-r--r--app/views/acd_agents/show.html.haml2
-rw-r--r--app/views/acd_callers/_index_core.html.haml2
-rw-r--r--app/views/acd_callers/index.html.haml2
-rw-r--r--app/views/acd_callers/show.html.haml2
-rw-r--r--app/views/addresses/_index_core.html.haml2
-rw-r--r--app/views/addresses/edit.html.haml2
-rw-r--r--app/views/addresses/index.html.haml2
-rw-r--r--app/views/addresses/new.html.haml2
-rw-r--r--app/views/addresses/show.html.haml2
-rw-r--r--app/views/automatic_call_distributors/_index_core.html.haml2
-rw-r--r--app/views/automatic_call_distributors/edit.html.haml2
-rw-r--r--app/views/automatic_call_distributors/index.html.haml2
-rw-r--r--app/views/automatic_call_distributors/new.html.haml2
-rw-r--r--app/views/automatic_call_distributors/show.html.haml4
-rw-r--r--app/views/call_forwards/_index_core.html.haml2
-rw-r--r--app/views/call_forwards/edit.html.haml2
-rw-r--r--app/views/call_forwards/index.html.haml2
-rw-r--r--app/views/call_forwards/new.html.haml2
-rw-r--r--app/views/call_forwards/show.html.haml2
-rw-r--r--app/views/call_histories/_index_core.html.haml2
-rw-r--r--app/views/call_histories/index.html.haml4
-rw-r--r--app/views/call_routes/_index_core.html.haml4
-rw-r--r--app/views/call_routes/edit.html.haml2
-rw-r--r--app/views/call_routes/index.html.haml4
-rw-r--r--app/views/call_routes/new.html.haml2
-rw-r--r--app/views/call_routes/show.html.haml2
-rw-r--r--app/views/calls/_index_core.html.haml2
-rw-r--r--app/views/calls/index.html.haml2
-rw-r--r--app/views/callthroughs/_index_core.html.haml2
-rw-r--r--app/views/callthroughs/edit.html.haml2
-rw-r--r--app/views/callthroughs/index.html.haml2
-rw-r--r--app/views/callthroughs/new.html.haml2
-rw-r--r--app/views/callthroughs/show.html.haml2
-rw-r--r--app/views/conference_invitees/_index_core.html.haml2
-rw-r--r--app/views/conference_invitees/edit.html.haml2
-rw-r--r--app/views/conference_invitees/index.html.haml2
-rw-r--r--app/views/conference_invitees/new.html.haml2
-rw-r--r--app/views/conference_invitees/show.html.haml2
-rw-r--r--app/views/conferences/_index_core.html.haml2
-rw-r--r--app/views/conferences/edit.html.haml2
-rw-r--r--app/views/conferences/index.html.haml2
-rw-r--r--app/views/conferences/new.html.haml2
-rw-r--r--app/views/conferences/show.html.haml2
-rw-r--r--app/views/config_polycom/_call_history.xml.haml2
-rw-r--r--app/views/config_polycom/_phone_book.xml.haml2
-rw-r--r--app/views/fax_accounts/_index_core.html.haml2
-rw-r--r--app/views/fax_accounts/edit.html.haml2
-rw-r--r--app/views/fax_accounts/index.html.haml2
-rw-r--r--app/views/fax_accounts/new.html.haml2
-rw-r--r--app/views/fax_accounts/show.html.haml2
-rw-r--r--app/views/fax_documents/_index_core.html.haml2
-rw-r--r--app/views/fax_documents/edit.html.haml2
-rw-r--r--app/views/fax_documents/index.html.haml2
-rw-r--r--app/views/fax_documents/new.html.haml2
-rw-r--r--app/views/fax_documents/show.html.haml2
-rw-r--r--app/views/freeswitch_voicemail_msgs/_index_core.html.haml2
-rw-r--r--app/views/freeswitch_voicemail_msgs/index.html.haml2
-rw-r--r--app/views/gateway_parameters/_index_core.html.haml2
-rw-r--r--app/views/gateway_parameters/edit.html.haml2
-rw-r--r--app/views/gateway_parameters/index.html.haml2
-rw-r--r--app/views/gateway_parameters/new.html.haml2
-rw-r--r--app/views/gateway_parameters/show.html.haml2
-rw-r--r--app/views/gateway_settings/_index_core.html.haml2
-rw-r--r--app/views/gateway_settings/edit.html.haml2
-rw-r--r--app/views/gateway_settings/index.html.haml2
-rw-r--r--app/views/gateway_settings/new.html.haml2
-rw-r--r--app/views/gateway_settings/show.html.haml2
-rw-r--r--app/views/gateways/_index_core.html.haml2
-rw-r--r--app/views/gateways/edit.html.haml2
-rw-r--r--app/views/gateways/index.html.haml2
-rw-r--r--app/views/gateways/new.html.haml2
-rw-r--r--app/views/gateways/show.html.haml2
-rw-r--r--app/views/gemeinschaft_setups/new.de.html.haml3
-rw-r--r--app/views/gemeinschaft_setups/new.html.haml3
-rw-r--r--app/views/gs_cluster_sync_log_entries/_index_core.html.haml2
-rw-r--r--app/views/gs_cluster_sync_log_entries/edit.html.haml2
-rw-r--r--app/views/gs_cluster_sync_log_entries/index.html.haml2
-rw-r--r--app/views/gs_cluster_sync_log_entries/new.html.haml2
-rw-r--r--app/views/gs_cluster_sync_log_entries/show.html.haml2
-rw-r--r--app/views/gs_nodes/_index_core.html.haml2
-rw-r--r--app/views/gs_nodes/edit.html.haml2
-rw-r--r--app/views/gs_nodes/index.html.haml2
-rw-r--r--app/views/gs_nodes/new.html.haml2
-rw-r--r--app/views/gs_nodes/show.html.haml2
-rw-r--r--app/views/gs_parameters/edit.html.haml2
-rw-r--r--app/views/gs_parameters/index.html.haml6
-rw-r--r--app/views/gs_parameters/show.html.haml2
-rw-r--r--app/views/gui_functions/_index_core.html.haml2
-rw-r--r--app/views/gui_functions/edit.html.haml2
-rw-r--r--app/views/gui_functions/index.html.haml2
-rw-r--r--app/views/gui_functions/new.html.haml2
-rw-r--r--app/views/gui_functions/show.html.haml2
-rw-r--r--app/views/hunt_group_members/_index_core.html.haml2
-rw-r--r--app/views/hunt_group_members/edit.html.haml2
-rw-r--r--app/views/hunt_group_members/index.html.haml2
-rw-r--r--app/views/hunt_group_members/new.html.haml2
-rw-r--r--app/views/hunt_group_members/show.html.haml2
-rw-r--r--app/views/hunt_groups/_index_core.html.haml2
-rw-r--r--app/views/hunt_groups/edit.html.haml2
-rw-r--r--app/views/hunt_groups/index.html.haml2
-rw-r--r--app/views/hunt_groups/new.html.haml2
-rw-r--r--app/views/hunt_groups/show.html.haml2
-rw-r--r--app/views/layouts/_footer.html.haml3
-rw-r--r--app/views/layouts/_navbar.html.haml21
-rw-r--r--app/views/layouts/application.html.haml73
-rw-r--r--app/views/layouts/old-application.html.haml48
-rw-r--r--app/views/layouts/old_navbar.html.haml10
-rw-r--r--app/views/layouts/test.haml0
-rw-r--r--app/views/manufacturers/_index_core.html.haml2
-rw-r--r--app/views/manufacturers/edit.html.haml2
-rw-r--r--app/views/manufacturers/index.html.haml2
-rw-r--r--app/views/manufacturers/new.html.haml2
-rw-r--r--app/views/manufacturers/show.html.haml2
-rw-r--r--app/views/page/beginners_intro.de.html.haml2
-rw-r--r--app/views/page/beginners_intro.html.haml2
-rw-r--r--app/views/page/conference.html.haml2
-rw-r--r--app/views/page/index.de.html.haml2
-rw-r--r--app/views/page/index.html.haml2
-rw-r--r--app/views/phone_book_entries/_index_core.de.html.haml2
-rw-r--r--app/views/phone_book_entries/_index_core.html.haml2
-rw-r--r--app/views/phone_book_entries/edit.html.haml2
-rw-r--r--app/views/phone_book_entries/index.html.haml2
-rw-r--r--app/views/phone_book_entries/new.html.haml2
-rw-r--r--app/views/phone_book_entries/show.html.haml2
-rw-r--r--app/views/phone_book_entries/show.html.haml.examlple2
-rw-r--r--app/views/phone_books/_index_core.html.haml2
-rw-r--r--app/views/phone_books/edit.html.haml2
-rw-r--r--app/views/phone_books/index.html.haml2
-rw-r--r--app/views/phone_books/new.html.haml2
-rw-r--r--app/views/phone_books/show.html.haml2
-rw-r--r--app/views/phone_models/_index_core.html.haml2
-rw-r--r--app/views/phone_models/edit.html.haml2
-rw-r--r--app/views/phone_models/index.html.haml2
-rw-r--r--app/views/phone_models/new.html.haml2
-rw-r--r--app/views/phone_models/show.html.haml2
-rw-r--r--app/views/phone_number_ranges/_index_core.html.haml2
-rw-r--r--app/views/phone_number_ranges/edit.html.haml2
-rw-r--r--app/views/phone_number_ranges/index.html.haml2
-rw-r--r--app/views/phone_number_ranges/new.html.haml2
-rw-r--r--app/views/phone_number_ranges/show.html.haml2
-rw-r--r--app/views/phone_numbers/_index_core.html.haml2
-rw-r--r--app/views/phone_numbers/edit.html.haml2
-rw-r--r--app/views/phone_numbers/index.html.haml2
-rw-r--r--app/views/phone_numbers/new.html.haml2
-rw-r--r--app/views/phone_numbers/show.html.haml2
-rw-r--r--app/views/phone_sip_accounts/_index_core.html.haml2
-rw-r--r--app/views/phone_sip_accounts/index.html.haml2
-rw-r--r--app/views/phone_sip_accounts/new.html.haml2
-rw-r--r--app/views/phone_sip_accounts/show.html.haml2
-rw-r--r--app/views/phones/_index_core.html.haml2
-rw-r--r--app/views/phones/edit.html.haml2
-rw-r--r--app/views/phones/index.html.haml2
-rw-r--r--app/views/phones/new.html.haml2
-rw-r--r--app/views/phones/show.html.haml2
-rw-r--r--app/views/ringtones/_index_core.html.haml2
-rw-r--r--app/views/ringtones/edit.html.haml2
-rw-r--r--app/views/ringtones/index.html.haml2
-rw-r--r--app/views/ringtones/new.html.haml2
-rw-r--r--app/views/ringtones/show.html.haml2
-rw-r--r--app/views/route_elements/_index_core.html.haml2
-rw-r--r--app/views/route_elements/edit.html.haml2
-rw-r--r--app/views/route_elements/index.html.haml2
-rw-r--r--app/views/route_elements/new.html.haml2
-rw-r--r--app/views/route_elements/show.html.haml2
-rw-r--r--app/views/sessions/new.html.haml2
-rw-r--r--app/views/shared/_create_link.html.haml13
-rw-r--r--app/views/shared/_flash.html.haml19
-rw-r--r--app/views/shared/_index_view_edit_destroy_part.html.haml62
-rw-r--r--app/views/shared/_show_edit_destroy_part.html.haml20
-rw-r--r--app/views/shared/_system_message.html.haml10
-rw-r--r--app/views/sip_accounts/_index_core.html.haml2
-rw-r--r--app/views/sip_accounts/edit.html.haml2
-rw-r--r--app/views/sip_accounts/index.html.haml2
-rw-r--r--app/views/sip_accounts/new.html.haml2
-rw-r--r--app/views/sip_accounts/show.html.haml2
-rw-r--r--app/views/sip_domains/_index_core.html.haml2
-rw-r--r--app/views/sip_domains/edit.html.haml2
-rw-r--r--app/views/sip_domains/index.html.haml2
-rw-r--r--app/views/sip_domains/new.html.haml2
-rw-r--r--app/views/sip_domains/show.html.haml2
-rw-r--r--app/views/softkeys/_index_core.html.haml2
-rw-r--r--app/views/softkeys/edit.html.haml2
-rw-r--r--app/views/softkeys/index.html.haml2
-rw-r--r--app/views/softkeys/new.html.haml2
-rw-r--r--app/views/softkeys/show.html.haml2
-rw-r--r--app/views/system_messages/_index_core.html.haml2
-rw-r--r--app/views/system_messages/index.html.haml2
-rw-r--r--app/views/system_messages/new.html.haml2
-rw-r--r--app/views/system_messages/show.html.haml2
-rw-r--r--app/views/tenants/_gs_parameter_table.html.haml8
-rw-r--r--app/views/tenants/_index_core.html.haml2
-rw-r--r--app/views/tenants/_sip_accounts_and_phones.html.haml8
-rw-r--r--app/views/tenants/_table_of_functions.html.haml12
-rw-r--r--app/views/tenants/edit.html.haml2
-rw-r--r--app/views/tenants/index.html.haml2
-rw-r--r--app/views/tenants/new.html.haml2
-rw-r--r--app/views/tenants/show.html.haml2
-rw-r--r--app/views/user_group_memberships/_index_core.html.haml2
-rw-r--r--app/views/user_group_memberships/edit.html.haml2
-rw-r--r--app/views/user_group_memberships/index.html.haml2
-rw-r--r--app/views/user_group_memberships/new.html.haml2
-rw-r--r--app/views/user_group_memberships/show.html.haml2
-rw-r--r--app/views/user_groups/_index_core.html.haml2
-rw-r--r--app/views/user_groups/edit.html.haml2
-rw-r--r--app/views/user_groups/index.html.haml2
-rw-r--r--app/views/user_groups/new.html.haml2
-rw-r--r--app/views/user_groups/show.html.haml2
-rw-r--r--app/views/users/_index_core.html.haml2
-rw-r--r--app/views/users/edit.html.haml2
-rw-r--r--app/views/users/index.html.haml2
-rw-r--r--app/views/users/new.html.haml2
-rw-r--r--app/views/users/show.html.haml8
-rw-r--r--app/views/voicemail_messages/_index_core.html.haml2
-rw-r--r--app/views/voicemail_messages/index.html.haml4
-rw-r--r--app/views/voicemail_settings/edit.html.haml2
-rw-r--r--app/views/voicemail_settings/show.html.haml2
-rw-r--r--app/views/whitelists/_index_core.html.haml2
-rw-r--r--app/views/whitelists/edit.html.haml2
-rw-r--r--app/views/whitelists/index.html.haml2
-rw-r--r--app/views/whitelists/new.html.haml2
-rw-r--r--app/views/whitelists/show.html.haml2
230 files changed, 410 insertions, 351 deletions
diff --git a/app/views/access_authorizations/_index_core.html.haml b/app/views/access_authorizations/_index_core.html.haml
index 083b16b..e195171 100644
--- a/app/views/access_authorizations/_index_core.html.haml
+++ b/app/views/access_authorizations/_index_core.html.haml
@@ -1,4 +1,4 @@
-%table
+%table{:class => 'table table-striped'}
%tr
%th= t('access_authorizations.index.name')
%th= t('access_authorizations.index.login')
diff --git a/app/views/access_authorizations/edit.html.haml b/app/views/access_authorizations/edit.html.haml
index 414f094..b05c23e 100644
--- a/app/views/access_authorizations/edit.html.haml
+++ b/app/views/access_authorizations/edit.html.haml
@@ -1,3 +1,3 @@
-- title t("access_authorizations.edit.page_title")
+- content_for :title, t("access_authorizations.edit.page_title")
= render "form"
diff --git a/app/views/access_authorizations/index.html.haml b/app/views/access_authorizations/index.html.haml
index 05b27db..7a0dfd3 100644
--- a/app/views/access_authorizations/index.html.haml
+++ b/app/views/access_authorizations/index.html.haml
@@ -1,4 +1,4 @@
-- title t("access_authorizations.index.page_title")
+- content_for :title, t("access_authorizations.index.page_title")
- if @access_authorizations.count > 0
= render "index_core", :access_authorizations => @access_authorizations
diff --git a/app/views/access_authorizations/new.html.haml b/app/views/access_authorizations/new.html.haml
index 0bbf16c..f1ba872 100644
--- a/app/views/access_authorizations/new.html.haml
+++ b/app/views/access_authorizations/new.html.haml
@@ -1,3 +1,3 @@
-- title t("access_authorizations.new.page_title")
+- content_for :title, t("access_authorizations.new.page_title")
= render "form"
diff --git a/app/views/access_authorizations/show.html.haml b/app/views/access_authorizations/show.html.haml
index 17d1d9b..f39a509 100644
--- a/app/views/access_authorizations/show.html.haml
+++ b/app/views/access_authorizations/show.html.haml
@@ -1,4 +1,4 @@
-- title t("access_authorizations.show.page_title")
+- content_for :title, t("access_authorizations.show.page_title")
%p
%strong= t('access_authorizations.show.name') + ":"
diff --git a/app/views/acd_agents/_index_core.html.haml b/app/views/acd_agents/_index_core.html.haml
index 7cb1aae..cc1ca7f 100644
--- a/app/views/acd_agents/_index_core.html.haml
+++ b/app/views/acd_agents/_index_core.html.haml
@@ -1,4 +1,4 @@
-%table
+%table{:class => 'table table-striped'}
%tr
%th= t('acd_agents.index.name')
%th= t('acd_agents.index.status')
diff --git a/app/views/acd_agents/edit.html.haml b/app/views/acd_agents/edit.html.haml
index 8ab14b8..41671b2 100644
--- a/app/views/acd_agents/edit.html.haml
+++ b/app/views/acd_agents/edit.html.haml
@@ -1,3 +1,3 @@
-- title t("acd_agents.edit.page_title")
+- content_for :title, t("acd_agents.edit.page_title")
= render "form" \ No newline at end of file
diff --git a/app/views/acd_agents/index.html.haml b/app/views/acd_agents/index.html.haml
index d586dcf..ddf5fde 100644
--- a/app/views/acd_agents/index.html.haml
+++ b/app/views/acd_agents/index.html.haml
@@ -1,4 +1,4 @@
-- title t("acd_agents.index.page_title")
+- content_for :title, t("acd_agents.index.page_title")
- if @acd_agents && @acd_agents.count > 0
= render "index_core", :acd_agents => @acd_agents
diff --git a/app/views/acd_agents/new.html.haml b/app/views/acd_agents/new.html.haml
index 546136b..fb4d256 100644
--- a/app/views/acd_agents/new.html.haml
+++ b/app/views/acd_agents/new.html.haml
@@ -1,3 +1,3 @@
-- title t("acd_agents.new.page_title")
+- content_for :title, t("acd_agents.new.page_title")
= render "form" \ No newline at end of file
diff --git a/app/views/acd_agents/show.html.haml b/app/views/acd_agents/show.html.haml
index 0c90f4b..39c0036 100644
--- a/app/views/acd_agents/show.html.haml
+++ b/app/views/acd_agents/show.html.haml
@@ -1,4 +1,4 @@
-- title t("acd_agents.show.page_title")
+- content_for :title, t("acd_agents.show.page_title")
%p
%strong= t('acd_agents.show.name') + ":"
diff --git a/app/views/acd_callers/_index_core.html.haml b/app/views/acd_callers/_index_core.html.haml
index 958b3ff..6a5f1b0 100644
--- a/app/views/acd_callers/_index_core.html.haml
+++ b/app/views/acd_callers/_index_core.html.haml
@@ -1,4 +1,4 @@
-%table
+%table{:class => 'table table-striped'}
%tr
%th= t('acd_callers.index.channel_uuid')
%th= t('acd_callers.index.automatic_call_distributor_id')
diff --git a/app/views/acd_callers/index.html.haml b/app/views/acd_callers/index.html.haml
index 70439ed..7047600 100644
--- a/app/views/acd_callers/index.html.haml
+++ b/app/views/acd_callers/index.html.haml
@@ -1,4 +1,4 @@
-- title t("acd_callers.index.page_title")
+- content_for :title, t("acd_callers.index.page_title")
- if @acd_callers && @acd_callers.count > 0
= render "index_core", :acd_callers => @acd_callers
diff --git a/app/views/acd_callers/show.html.haml b/app/views/acd_callers/show.html.haml
index 0ce8345..060f829 100644
--- a/app/views/acd_callers/show.html.haml
+++ b/app/views/acd_callers/show.html.haml
@@ -1,4 +1,4 @@
-- title t("acd_callers.show.page_title")
+- content_for :title, t("acd_callers.show.page_title")
%p
%strong= t('acd_callers.show.channel_uuid') + ":"
diff --git a/app/views/addresses/_index_core.html.haml b/app/views/addresses/_index_core.html.haml
index 2050ded..ab272ab 100644
--- a/app/views/addresses/_index_core.html.haml
+++ b/app/views/addresses/_index_core.html.haml
@@ -1,4 +1,4 @@
-%table
+%table{:class => 'table table-striped'}
%tr
%th= t('addresses.index.phone_book_entry_id')
%th= t('addresses.index.line1')
diff --git a/app/views/addresses/edit.html.haml b/app/views/addresses/edit.html.haml
index 3d85ae6..a9e482f 100644
--- a/app/views/addresses/edit.html.haml
+++ b/app/views/addresses/edit.html.haml
@@ -1,4 +1,4 @@
-- title t("addresses.edit.page_title")
+- content_for :title, t("addresses.edit.page_title")
= render "form"
diff --git a/app/views/addresses/index.html.haml b/app/views/addresses/index.html.haml
index ecebc65..615f267 100644
--- a/app/views/addresses/index.html.haml
+++ b/app/views/addresses/index.html.haml
@@ -1,4 +1,4 @@
-- title t("addresses.index.page_title")
+- content_for :title, t("addresses.index.page_title")
- if @addresses.count > 0
= render "index_core", :addresses => @addresses
diff --git a/app/views/addresses/new.html.haml b/app/views/addresses/new.html.haml
index 280de55..e75b55a 100644
--- a/app/views/addresses/new.html.haml
+++ b/app/views/addresses/new.html.haml
@@ -1,3 +1,3 @@
-- title t("addresses.new.page_title")
+- content_for :title, t("addresses.new.page_title")
= render "form"
diff --git a/app/views/addresses/show.html.haml b/app/views/addresses/show.html.haml
index 211d020..6c8c651 100644
--- a/app/views/addresses/show.html.haml
+++ b/app/views/addresses/show.html.haml
@@ -1,4 +1,4 @@
-- title t("addresses.show.page_title")
+- content_for :title, t("addresses.show.page_title")
%p
%strong= t('addresses.show.phone_book_entry_id') + ":"
diff --git a/app/views/automatic_call_distributors/_index_core.html.haml b/app/views/automatic_call_distributors/_index_core.html.haml
index c31a648..7f27908 100644
--- a/app/views/automatic_call_distributors/_index_core.html.haml
+++ b/app/views/automatic_call_distributors/_index_core.html.haml
@@ -1,4 +1,4 @@
-%table
+%table{:class => 'table table-striped'}
%tr
%th= t('automatic_call_distributors.index.name')
%th= t('automatic_call_distributors.index.strategy')
diff --git a/app/views/automatic_call_distributors/edit.html.haml b/app/views/automatic_call_distributors/edit.html.haml
index 28cba74..c776945 100644
--- a/app/views/automatic_call_distributors/edit.html.haml
+++ b/app/views/automatic_call_distributors/edit.html.haml
@@ -1,3 +1,3 @@
-- title t("automatic_call_distributors.edit.page_title")
+- content_for :title, t("automatic_call_distributors.edit.page_title")
= render "form" \ No newline at end of file
diff --git a/app/views/automatic_call_distributors/index.html.haml b/app/views/automatic_call_distributors/index.html.haml
index f3f8b2b..4f2d040 100644
--- a/app/views/automatic_call_distributors/index.html.haml
+++ b/app/views/automatic_call_distributors/index.html.haml
@@ -1,4 +1,4 @@
-- title t("automatic_call_distributors.index.page_title")
+- content_for :title, t("automatic_call_distributors.index.page_title")
- if @automatic_call_distributors && @automatic_call_distributors.count > 0
= render "index_core", :automatic_call_distributors => @automatic_call_distributors
diff --git a/app/views/automatic_call_distributors/new.html.haml b/app/views/automatic_call_distributors/new.html.haml
index 96a2d93..72817a7 100644
--- a/app/views/automatic_call_distributors/new.html.haml
+++ b/app/views/automatic_call_distributors/new.html.haml
@@ -1,3 +1,3 @@
-- title t("automatic_call_distributors.new.page_title")
+- content_for :title, t("automatic_call_distributors.new.page_title")
= render "form" \ No newline at end of file
diff --git a/app/views/automatic_call_distributors/show.html.haml b/app/views/automatic_call_distributors/show.html.haml
index 53ce127..c29f2df 100644
--- a/app/views/automatic_call_distributors/show.html.haml
+++ b/app/views/automatic_call_distributors/show.html.haml
@@ -1,6 +1,6 @@
-- title t("automatic_call_distributors.show.page_title")
+- content_for :title, t("automatic_call_distributors.show.page_title")
-%table
+%table{:class => 'table table-striped'}
%tr
%th= t('automatic_call_distributors.show.name') + ":"
%td= @automatic_call_distributor.name
diff --git a/app/views/call_forwards/_index_core.html.haml b/app/views/call_forwards/_index_core.html.haml
index 7733855..286cdae 100644
--- a/app/views/call_forwards/_index_core.html.haml
+++ b/app/views/call_forwards/_index_core.html.haml
@@ -1,4 +1,4 @@
-%table
+%table{:class => 'table table-striped'}
%tr
- if !@phone_number
%th= t('call_forwards.index.phone_number_id')
diff --git a/app/views/call_forwards/edit.html.haml b/app/views/call_forwards/edit.html.haml
index 5fa9dcd..f55052b 100644
--- a/app/views/call_forwards/edit.html.haml
+++ b/app/views/call_forwards/edit.html.haml
@@ -1,3 +1,3 @@
-- title t("call_forwards.edit.page_title", :resource => " for phone number #{@phone_number}" )
+- content_for :title, t("call_forwards.edit.page_title", :resource => " for phone number #{@phone_number}" )
= render "form" \ No newline at end of file
diff --git a/app/views/call_forwards/index.html.haml b/app/views/call_forwards/index.html.haml
index 93d64f2..91b923a 100644
--- a/app/views/call_forwards/index.html.haml
+++ b/app/views/call_forwards/index.html.haml
@@ -1,4 +1,4 @@
-- title t("call_forwards.index.page_title")
+- content_for :title, t("call_forwards.index.page_title")
- if @call_forwards.count > 0
= render "index_core", :call_forwards => @call_forwards
diff --git a/app/views/call_forwards/new.html.haml b/app/views/call_forwards/new.html.haml
index 960a9e6..bb0c983 100644
--- a/app/views/call_forwards/new.html.haml
+++ b/app/views/call_forwards/new.html.haml
@@ -1,3 +1,3 @@
-- title t("call_forwards.new.page_title")
+- content_for :title, t("call_forwards.new.page_title")
= render "form"
diff --git a/app/views/call_forwards/show.html.haml b/app/views/call_forwards/show.html.haml
index 6d1a0c6..c2187b1 100644
--- a/app/views/call_forwards/show.html.haml
+++ b/app/views/call_forwards/show.html.haml
@@ -1,4 +1,4 @@
-- title t("call_forwards.show.page_title")
+- content_for :title, t("call_forwards.show.page_title")
%p
%strong= t('call_forwards.show.phone_number_id') + ":"
diff --git a/app/views/call_histories/_index_core.html.haml b/app/views/call_histories/_index_core.html.haml
index 4ed4fc4..f799ead 100644
--- a/app/views/call_histories/_index_core.html.haml
+++ b/app/views/call_histories/_index_core.html.haml
@@ -2,7 +2,7 @@
%header.entries-nav= render :partial => "call_histories/navigation"
.content
- cache(['call_history_table', I18n.locale, @sip_account, call_histories.first, call_histories.last, call_histories.count]) do
- %table
+ %table{:class => 'table table-striped'}
- reset_cycle
- for call_history in call_histories
- tr_background_colour = cycle('odd', 'even')
diff --git a/app/views/call_histories/index.html.haml b/app/views/call_histories/index.html.haml
index adf6838..a939387 100644
--- a/app/views/call_histories/index.html.haml
+++ b/app/views/call_histories/index.html.haml
@@ -1,6 +1,6 @@
- if @type
- - title t("call_histories.index.page_title_#{@type}")
+ - content_for :title, t("call_histories.index.page_title_#{@type}")
- else
- - title t("call_histories.index.page_title")
+ - content_for :title, t("call_histories.index.page_title")
= render "index_core", :call_histories => @call_histories
diff --git a/app/views/call_routes/_index_core.html.haml b/app/views/call_routes/_index_core.html.haml
index 12e89ee..e0ca39b 100644
--- a/app/views/call_routes/_index_core.html.haml
+++ b/app/views/call_routes/_index_core.html.haml
@@ -1,5 +1,5 @@
- cache(['call_routes_table', call_routes.count, call_routes.reorder(:updated_at).last]) do
- %table
+ %table{:class => 'table table-striped'}
%tr
%th= t('call_routes.index.name')
%th= t('call_routes.index.endpoint_type')
@@ -7,7 +7,7 @@
- reset_cycle
- for call_route in call_routes
- %tr{:class => cycle('odd', 'even')}
+ %tr
- cache(['call_route_single_table_row_within_tr', call_route, call_routes.count]) do
%td= call_route.name
%td= call_route.endpoint_type
diff --git a/app/views/call_routes/edit.html.haml b/app/views/call_routes/edit.html.haml
index 0ad46c5..6048200 100644
--- a/app/views/call_routes/edit.html.haml
+++ b/app/views/call_routes/edit.html.haml
@@ -1,3 +1,3 @@
-- title t("call_routes.edit.page_title")
+- content_for :title, t("call_routes.edit.page_title")
= render "form" \ No newline at end of file
diff --git a/app/views/call_routes/index.html.haml b/app/views/call_routes/index.html.haml
index 151fc0e..bd4468c 100644
--- a/app/views/call_routes/index.html.haml
+++ b/app/views/call_routes/index.html.haml
@@ -1,7 +1,7 @@
-- title t("call_routes.index.page_title")
+- content_for :title, t("call_routes.index.page_title")
- if @call_routes && @call_routes.count > 0
- %table
+ %table{:class => 'table table-striped'}
- @routing_tables.each do |routing_table|
%tr
%td{:colspan => 3}
diff --git a/app/views/call_routes/new.html.haml b/app/views/call_routes/new.html.haml
index 0796d7f..28aead9 100644
--- a/app/views/call_routes/new.html.haml
+++ b/app/views/call_routes/new.html.haml
@@ -1,3 +1,3 @@
-- title t("call_routes.new.page_title")
+- content_for :title, t("call_routes.new.page_title")
= render "form" \ No newline at end of file
diff --git a/app/views/call_routes/show.html.haml b/app/views/call_routes/show.html.haml
index bada227..70fe13e 100644
--- a/app/views/call_routes/show.html.haml
+++ b/app/views/call_routes/show.html.haml
@@ -1,4 +1,4 @@
-- title t("call_routes.show.page_title")
+- content_for :title, t("call_routes.show.page_title")
%p
%strong= t('call_routes.show.table') + ":"
diff --git a/app/views/calls/_index_core.html.haml b/app/views/calls/_index_core.html.haml
index ddd0650..b7a25a4 100644
--- a/app/views/calls/_index_core.html.haml
+++ b/app/views/calls/_index_core.html.haml
@@ -1,4 +1,4 @@
-%table
+%table{:class => 'table table-striped'}
%tr
%th= t('calls.index.uuid')
diff --git a/app/views/calls/index.html.haml b/app/views/calls/index.html.haml
index 4ea60a6..be678cd 100644
--- a/app/views/calls/index.html.haml
+++ b/app/views/calls/index.html.haml
@@ -1,4 +1,4 @@
-- title t("calls.index.page_title")
+- content_for :title, t("calls.index.page_title")
- if @calls.count > 0
= render "index_core", :calls => @calls
diff --git a/app/views/callthroughs/_index_core.html.haml b/app/views/callthroughs/_index_core.html.haml
index 2071145..39c3719 100644
--- a/app/views/callthroughs/_index_core.html.haml
+++ b/app/views/callthroughs/_index_core.html.haml
@@ -1,4 +1,4 @@
-%table
+%table{:class => 'table table-striped'}
%tr
%th= t('callthroughs.index.name')
%th= t('callthroughs.index.phone_numbers')
diff --git a/app/views/callthroughs/edit.html.haml b/app/views/callthroughs/edit.html.haml
index 44fe17e..26fd026 100644
--- a/app/views/callthroughs/edit.html.haml
+++ b/app/views/callthroughs/edit.html.haml
@@ -1,3 +1,3 @@
-- title t("callthroughs.edit.page_title")
+- content_for :title, t("callthroughs.edit.page_title")
= render "form" \ No newline at end of file
diff --git a/app/views/callthroughs/index.html.haml b/app/views/callthroughs/index.html.haml
index c595351..bb3ab63 100644
--- a/app/views/callthroughs/index.html.haml
+++ b/app/views/callthroughs/index.html.haml
@@ -1,4 +1,4 @@
-- title t("callthroughs.index.page_title")
+- content_for :title, t("callthroughs.index.page_title")
- if @callthroughs.count > 0
= render "index_core", :callthroughs => @callthroughs
diff --git a/app/views/callthroughs/new.html.haml b/app/views/callthroughs/new.html.haml
index ff47c1c..deabb71 100644
--- a/app/views/callthroughs/new.html.haml
+++ b/app/views/callthroughs/new.html.haml
@@ -1,3 +1,3 @@
-- title t("callthroughs.new.page_title")
+- content_for :title, t("callthroughs.new.page_title")
= render "form"
diff --git a/app/views/callthroughs/show.html.haml b/app/views/callthroughs/show.html.haml
index b9abca9..da1a676 100644
--- a/app/views/callthroughs/show.html.haml
+++ b/app/views/callthroughs/show.html.haml
@@ -1,4 +1,4 @@
-- title t("callthroughs.show.page_title")
+- content_for :title, t("callthroughs.show.page_title")
%p
%strong= t('callthroughs.show.name') + ":"
diff --git a/app/views/conference_invitees/_index_core.html.haml b/app/views/conference_invitees/_index_core.html.haml
index f84af7d..55d903d 100644
--- a/app/views/conference_invitees/_index_core.html.haml
+++ b/app/views/conference_invitees/_index_core.html.haml
@@ -1,4 +1,4 @@
-%table
+%table{:class => 'table table-striped'}
%tr
%th= t('conference_invitees.index.phone_book_entry_id')
%th= t('conference_invitees.index.phone_number')
diff --git a/app/views/conference_invitees/edit.html.haml b/app/views/conference_invitees/edit.html.haml
index ce90bbe..24c843f 100644
--- a/app/views/conference_invitees/edit.html.haml
+++ b/app/views/conference_invitees/edit.html.haml
@@ -1,3 +1,3 @@
-- title t("conference_invitees.edit.page_title")
+- content_for :title, t("conference_invitees.edit.page_title")
= render "form" \ No newline at end of file
diff --git a/app/views/conference_invitees/index.html.haml b/app/views/conference_invitees/index.html.haml
index 2a0c26c..846be44 100644
--- a/app/views/conference_invitees/index.html.haml
+++ b/app/views/conference_invitees/index.html.haml
@@ -1,4 +1,4 @@
-- title t("conference_invitees.index.page_title")
+- content_for :title, t("conference_invitees.index.page_title")
- if @conference_invitees.count > 0
= render "index_core", :conference_invitees => @conference_invitees
diff --git a/app/views/conference_invitees/new.html.haml b/app/views/conference_invitees/new.html.haml
index 780494e..1957d5d 100644
--- a/app/views/conference_invitees/new.html.haml
+++ b/app/views/conference_invitees/new.html.haml
@@ -1,3 +1,3 @@
-- title t("conference_invitees.new.page_title")
+- content_for :title, t("conference_invitees.new.page_title")
= render "form"
diff --git a/app/views/conference_invitees/show.html.haml b/app/views/conference_invitees/show.html.haml
index 57c5627..12fcbd1 100644
--- a/app/views/conference_invitees/show.html.haml
+++ b/app/views/conference_invitees/show.html.haml
@@ -1,4 +1,4 @@
-- title t("conference_invitees.show.page_title")
+- content_for :title, t("conference_invitees.show.page_title")
%p
%strong= t('conference_invitees.show.conference_id') + ":"
diff --git a/app/views/conferences/_index_core.html.haml b/app/views/conferences/_index_core.html.haml
index 4073e83..2a83b29 100644
--- a/app/views/conferences/_index_core.html.haml
+++ b/app/views/conferences/_index_core.html.haml
@@ -1,4 +1,4 @@
-%table
+%table{:class => 'table table-striped'}
%tr
%th= t('conferences.index.name')
- if !conferences.respond_to?('where') || conferences.where(:start => nil).where(:end => nil).count != conferences.count
diff --git a/app/views/conferences/edit.html.haml b/app/views/conferences/edit.html.haml
index bc190e7..d5ec058 100644
--- a/app/views/conferences/edit.html.haml
+++ b/app/views/conferences/edit.html.haml
@@ -1,3 +1,3 @@
-- title t("conferences.edit.page_title")
+- content_for :title, t("conferences.edit.page_title")
= render "form"
diff --git a/app/views/conferences/index.html.haml b/app/views/conferences/index.html.haml
index 0324acd..08f5cc1 100644
--- a/app/views/conferences/index.html.haml
+++ b/app/views/conferences/index.html.haml
@@ -1,4 +1,4 @@
-- title t("conferences.index.page_title")
+- content_for :title, t("conferences.index.page_title")
- if @conferences.count > 0
= render "index_core", :conferences => @conferences
diff --git a/app/views/conferences/new.html.haml b/app/views/conferences/new.html.haml
index 102f6a9..2dcb125 100644
--- a/app/views/conferences/new.html.haml
+++ b/app/views/conferences/new.html.haml
@@ -1,3 +1,3 @@
-- title t("conferences.new.page_title")
+- content_for :title, t("conferences.new.page_title")
= render "form"
diff --git a/app/views/conferences/show.html.haml b/app/views/conferences/show.html.haml
index 10ebaed..0afa822 100644
--- a/app/views/conferences/show.html.haml
+++ b/app/views/conferences/show.html.haml
@@ -1,4 +1,4 @@
-- title t("conferences.show.page_title")
+- content_for :title, t("conferences.show.page_title")
%p
%strong= t('conferences.show.name') + ":"
diff --git a/app/views/config_polycom/_call_history.xml.haml b/app/views/config_polycom/_call_history.xml.haml
index 7d23edd..4ecb8fe 100644
--- a/app/views/config_polycom/_call_history.xml.haml
+++ b/app/views/config_polycom/_call_history.xml.haml
@@ -3,7 +3,7 @@
%head
%title= @phone_xml_object[:title]
%body
- %table{ :border => 0 }
+ %table{:class => 'table table-striped'}{ :border => 0 }
%tbody
- @phone_xml_object[:entries].each do |entry|
%tr
diff --git a/app/views/config_polycom/_phone_book.xml.haml b/app/views/config_polycom/_phone_book.xml.haml
index 1066695..3867f41 100644
--- a/app/views/config_polycom/_phone_book.xml.haml
+++ b/app/views/config_polycom/_phone_book.xml.haml
@@ -3,7 +3,7 @@
%head
%title= @phone_xml_object[:title]
%body
- %table{ :border => 0 }
+ %table{:class => 'table table-striped'}{ :border => 0 }
%tbody
- @phone_xml_object[:entries].each do |entry|
%tr
diff --git a/app/views/fax_accounts/_index_core.html.haml b/app/views/fax_accounts/_index_core.html.haml
index 50dc2eb..48e4038 100644
--- a/app/views/fax_accounts/_index_core.html.haml
+++ b/app/views/fax_accounts/_index_core.html.haml
@@ -1,4 +1,4 @@
-%table
+%table{:class => 'table table-striped'}
%tr
%th= t('fax_accounts.index.name')
%th
diff --git a/app/views/fax_accounts/edit.html.haml b/app/views/fax_accounts/edit.html.haml
index 86f664d..3cdc655 100644
--- a/app/views/fax_accounts/edit.html.haml
+++ b/app/views/fax_accounts/edit.html.haml
@@ -1,3 +1,3 @@
-- title t("fax_accounts.edit.page_title")
+- content_for :title, t("fax_accounts.edit.page_title")
= render "form"
diff --git a/app/views/fax_accounts/index.html.haml b/app/views/fax_accounts/index.html.haml
index 309a10d..9710454 100644
--- a/app/views/fax_accounts/index.html.haml
+++ b/app/views/fax_accounts/index.html.haml
@@ -1,4 +1,4 @@
-- title t("fax_accounts.index.page_title")
+- content_for :title, t("fax_accounts.index.page_title")
- if @fax_accounts.count > 0
= render "index_core", {:fax_accounts => @fax_accounts, :fax_accountable => @parent}
diff --git a/app/views/fax_accounts/new.html.haml b/app/views/fax_accounts/new.html.haml
index 9a67100..eff9347 100644
--- a/app/views/fax_accounts/new.html.haml
+++ b/app/views/fax_accounts/new.html.haml
@@ -1,3 +1,3 @@
-- title t("fax_accounts.new.page_title")
+- content_for :title, t("fax_accounts.new.page_title")
= render "form"
diff --git a/app/views/fax_accounts/show.html.haml b/app/views/fax_accounts/show.html.haml
index 95fb7b2..1a32121 100644
--- a/app/views/fax_accounts/show.html.haml
+++ b/app/views/fax_accounts/show.html.haml
@@ -1,4 +1,4 @@
-- title t("fax_accounts.show.page_title")
+- content_for :title, t("fax_accounts.show.page_title")
%p
%strong= t('fax_accounts.show.name') + ":"
diff --git a/app/views/fax_documents/_index_core.html.haml b/app/views/fax_documents/_index_core.html.haml
index 4e15509..747b67f 100644
--- a/app/views/fax_documents/_index_core.html.haml
+++ b/app/views/fax_documents/_index_core.html.haml
@@ -1,4 +1,4 @@
-%table
+%table{:class => 'table table-striped'}
%tr
%th= t('fax_documents.index.sent_at')
%th= t('fax_documents.index.state')
diff --git a/app/views/fax_documents/edit.html.haml b/app/views/fax_documents/edit.html.haml
index 5da92c6..239bf8b 100644
--- a/app/views/fax_documents/edit.html.haml
+++ b/app/views/fax_documents/edit.html.haml
@@ -1,4 +1,4 @@
-- title t("fax_documents.edit.page_title")
+- content_for :title, t("fax_documents.edit.page_title")
= render "form"
diff --git a/app/views/fax_documents/index.html.haml b/app/views/fax_documents/index.html.haml
index 11199dd..33c697c 100644
--- a/app/views/fax_documents/index.html.haml
+++ b/app/views/fax_documents/index.html.haml
@@ -1,4 +1,4 @@
-- title t("fax_documents.index.page_title")
+- content_for :title, t("fax_documents.index.page_title")
= render "index_core", :fax_documents => @fax_documents
diff --git a/app/views/fax_documents/new.html.haml b/app/views/fax_documents/new.html.haml
index be02860..8884418 100644
--- a/app/views/fax_documents/new.html.haml
+++ b/app/views/fax_documents/new.html.haml
@@ -1,3 +1,3 @@
-- title t("fax_documents.new.page_title")
+- content_for :title, t("fax_documents.new.page_title")
= render "form"
diff --git a/app/views/fax_documents/show.html.haml b/app/views/fax_documents/show.html.haml
index 4703e1d..41d3bff 100644
--- a/app/views/fax_documents/show.html.haml
+++ b/app/views/fax_documents/show.html.haml
@@ -1,4 +1,4 @@
-- title t("fax_documents.show.page_title")
+- content_for :title, t("fax_documents.show.page_title")
- child = @fax_document
- parent = @fax_document.fax_account
diff --git a/app/views/freeswitch_voicemail_msgs/_index_core.html.haml b/app/views/freeswitch_voicemail_msgs/_index_core.html.haml
index 58d9944..9d3d554 100644
--- a/app/views/freeswitch_voicemail_msgs/_index_core.html.haml
+++ b/app/views/freeswitch_voicemail_msgs/_index_core.html.haml
@@ -1,4 +1,4 @@
-%table
+%table{:class => 'table table-striped'}
%tr
%th= t('freeswitch_voicemail_msgs.index.created_epoch')
%th= t('freeswitch_voicemail_msgs.index.message_len')
diff --git a/app/views/freeswitch_voicemail_msgs/index.html.haml b/app/views/freeswitch_voicemail_msgs/index.html.haml
index 5083c6f..77977c3 100644
--- a/app/views/freeswitch_voicemail_msgs/index.html.haml
+++ b/app/views/freeswitch_voicemail_msgs/index.html.haml
@@ -1,3 +1,3 @@
-- title t("freeswitch_voicemail_msgs.index.page_title")
+- content_for :title, t("freeswitch_voicemail_msgs.index.page_title")
= render "index_core", :freeswitch_voicemail_msgs => @freeswitch_voicemail_msgs \ No newline at end of file
diff --git a/app/views/gateway_parameters/_index_core.html.haml b/app/views/gateway_parameters/_index_core.html.haml
index c22093d..fda01b3 100644
--- a/app/views/gateway_parameters/_index_core.html.haml
+++ b/app/views/gateway_parameters/_index_core.html.haml
@@ -1,4 +1,4 @@
-%table
+%table{:class => 'table table-striped'}
%tr
%th= t('gateway_parameters.index.name')
%th= t('gateway_parameters.index.value')
diff --git a/app/views/gateway_parameters/edit.html.haml b/app/views/gateway_parameters/edit.html.haml
index 86fe979..67fb831 100644
--- a/app/views/gateway_parameters/edit.html.haml
+++ b/app/views/gateway_parameters/edit.html.haml
@@ -1,3 +1,3 @@
-- title t("gateway_parameters.edit.page_title")
+- content_for :title, t("gateway_parameters.edit.page_title")
= render "form" \ No newline at end of file
diff --git a/app/views/gateway_parameters/index.html.haml b/app/views/gateway_parameters/index.html.haml
index 14b94b0..9eee4a3 100644
--- a/app/views/gateway_parameters/index.html.haml
+++ b/app/views/gateway_parameters/index.html.haml
@@ -1,4 +1,4 @@
-- title t("gateway_parameters.index.page_title")
+- content_for :title, t("gateway_parameters.index.page_title")
- if @gateway_parameters && @gateway_parameters.count > 0
= render "index_core", :gateway_parameters => @gateway_parameters
diff --git a/app/views/gateway_parameters/new.html.haml b/app/views/gateway_parameters/new.html.haml
index 5844088..5899602 100644
--- a/app/views/gateway_parameters/new.html.haml
+++ b/app/views/gateway_parameters/new.html.haml
@@ -1,3 +1,3 @@
-- title t("gateway_parameters.new.page_title")
+- content_for :title, t("gateway_parameters.new.page_title")
= render "form" \ No newline at end of file
diff --git a/app/views/gateway_parameters/show.html.haml b/app/views/gateway_parameters/show.html.haml
index 982ffac..9bdad76 100644
--- a/app/views/gateway_parameters/show.html.haml
+++ b/app/views/gateway_parameters/show.html.haml
@@ -1,4 +1,4 @@
-- title t("gateway_parameters.show.page_title")
+- content_for :title, t("gateway_parameters.show.page_title")
%p
%strong= t('gateway_parameters.show.gateway_id') + ":"
diff --git a/app/views/gateway_settings/_index_core.html.haml b/app/views/gateway_settings/_index_core.html.haml
index 40946f5..0743bcd 100644
--- a/app/views/gateway_settings/_index_core.html.haml
+++ b/app/views/gateway_settings/_index_core.html.haml
@@ -1,4 +1,4 @@
-%table
+%table{:class => 'table table-striped'}
%tr
%th= t('gateway_settings.index.name')
%th= t('gateway_settings.index.value')
diff --git a/app/views/gateway_settings/edit.html.haml b/app/views/gateway_settings/edit.html.haml
index b374f42..464c36e 100644
--- a/app/views/gateway_settings/edit.html.haml
+++ b/app/views/gateway_settings/edit.html.haml
@@ -1,3 +1,3 @@
-- title t("gateway_settings.edit.page_title")
+- content_for :title, t("gateway_settings.edit.page_title")
= render "form" \ No newline at end of file
diff --git a/app/views/gateway_settings/index.html.haml b/app/views/gateway_settings/index.html.haml
index b85ef0a..3f1400e 100644
--- a/app/views/gateway_settings/index.html.haml
+++ b/app/views/gateway_settings/index.html.haml
@@ -1,4 +1,4 @@
-- title t("gateway_settings.index.page_title")
+- content_for :title, t("gateway_settings.index.page_title")
- if @gateway_settings && @gateway_settings.count > 0
= render "index_core", :gateway_settings => @gateway_settings
diff --git a/app/views/gateway_settings/new.html.haml b/app/views/gateway_settings/new.html.haml
index 5399dc3..ec8c346 100644
--- a/app/views/gateway_settings/new.html.haml
+++ b/app/views/gateway_settings/new.html.haml
@@ -1,3 +1,3 @@
-- title t("gateway_settings.new.page_title")
+- content_for :title, t("gateway_settings.new.page_title")
= render "form" \ No newline at end of file
diff --git a/app/views/gateway_settings/show.html.haml b/app/views/gateway_settings/show.html.haml
index 7a9ecc3..019aec4 100644
--- a/app/views/gateway_settings/show.html.haml
+++ b/app/views/gateway_settings/show.html.haml
@@ -1,4 +1,4 @@
-- title t("gateway_settings.show.page_title")
+- content_for :title, t("gateway_settings.show.page_title")
%p
%strong= t('gateway_settings.show.gateway_id') + ":"
diff --git a/app/views/gateways/_index_core.html.haml b/app/views/gateways/_index_core.html.haml
index dd2d1f5..fc03eb1 100644
--- a/app/views/gateways/_index_core.html.haml
+++ b/app/views/gateways/_index_core.html.haml
@@ -1,5 +1,5 @@
- cache(['gateways_table', gateways.count, gateways.first, gateways.last]) do
- %table
+ %table{:class => 'table table-striped'}
%tr
%th= t('gateways.index.name')
%th= t('gateways.index.technology')
diff --git a/app/views/gateways/edit.html.haml b/app/views/gateways/edit.html.haml
index 417dd09..238dc3c 100644
--- a/app/views/gateways/edit.html.haml
+++ b/app/views/gateways/edit.html.haml
@@ -1,3 +1,3 @@
-- title t("gateways.edit.page_title")
+- content_for :title, t("gateways.edit.page_title")
= render "form" \ No newline at end of file
diff --git a/app/views/gateways/index.html.haml b/app/views/gateways/index.html.haml
index cec9cd1..f5d3275 100644
--- a/app/views/gateways/index.html.haml
+++ b/app/views/gateways/index.html.haml
@@ -1,4 +1,4 @@
-- title t("gateways.index.page_title")
+- content_for :title, t("gateways.index.page_title")
- if @gateways && @gateways.count > 0
= render "index_core", :gateways => @gateways
diff --git a/app/views/gateways/new.html.haml b/app/views/gateways/new.html.haml
index a2609f3..d17ff6e 100644
--- a/app/views/gateways/new.html.haml
+++ b/app/views/gateways/new.html.haml
@@ -1,3 +1,3 @@
-- title t("gateways.new.page_title")
+- content_for :title, t("gateways.new.page_title")
= render "form" \ No newline at end of file
diff --git a/app/views/gateways/show.html.haml b/app/views/gateways/show.html.haml
index 9d0ee53..9a3e1c4 100644
--- a/app/views/gateways/show.html.haml
+++ b/app/views/gateways/show.html.haml
@@ -1,4 +1,4 @@
-- title t("gateways.show.page_title")
+- content_for :title, t("gateways.show.page_title")
%p
%strong= t('gateways.show.id') + ":"
diff --git a/app/views/gemeinschaft_setups/new.de.html.haml b/app/views/gemeinschaft_setups/new.de.html.haml
index 1afa5d4..b78e278 100644
--- a/app/views/gemeinschaft_setups/new.de.html.haml
+++ b/app/views/gemeinschaft_setups/new.de.html.haml
@@ -1,4 +1,5 @@
-- title "Konfiguration einer Gemeinschaft #{GsParameter.get('GEMEINSCHAFT_VERSION')} Installation"
+- content_for :title, 'Gemeinschaft 5.0'
+- content_for :meta_description, "Konfiguration einer Gemeinschaft #{GsParameter.get('GEMEINSCHAFT_VERSION')} Installation"
= simple_form_for(@gemeinschaft_setup) do |f|
= f.error_notification
diff --git a/app/views/gemeinschaft_setups/new.html.haml b/app/views/gemeinschaft_setups/new.html.haml
index da3c60e..1b97cc0 100644
--- a/app/views/gemeinschaft_setups/new.html.haml
+++ b/app/views/gemeinschaft_setups/new.html.haml
@@ -1,4 +1,5 @@
-- title "Configure a new Gemeinschaft #{GsParameter.get('GEMEINSCHAFT_VERSION')} server"
+- content_for :title, 'Gemeinschaft 5.0'
+- content_for :meta_description, "Configure a new Gemeinschaft #{GsParameter.get('GEMEINSCHAFT_VERSION')} server"
= simple_form_for(@gemeinschaft_setup) do |f|
= f.error_notification
diff --git a/app/views/gs_cluster_sync_log_entries/_index_core.html.haml b/app/views/gs_cluster_sync_log_entries/_index_core.html.haml
index 05cbda8..b099b5f 100644
--- a/app/views/gs_cluster_sync_log_entries/_index_core.html.haml
+++ b/app/views/gs_cluster_sync_log_entries/_index_core.html.haml
@@ -1,4 +1,4 @@
-%table
+%table{:class => 'table table-striped'}
%tr
%th= t('gs_cluster_sync_log_entries.index.gs_node_id')
%th= t('gs_cluster_sync_log_entries.index.class_name')
diff --git a/app/views/gs_cluster_sync_log_entries/edit.html.haml b/app/views/gs_cluster_sync_log_entries/edit.html.haml
index b0c65f3..856b91f 100644
--- a/app/views/gs_cluster_sync_log_entries/edit.html.haml
+++ b/app/views/gs_cluster_sync_log_entries/edit.html.haml
@@ -1,3 +1,3 @@
-- title t("gs_cluster_sync_log_entries.edit.page_title")
+- content_for :title, t("gs_cluster_sync_log_entries.edit.page_title")
= render "form" \ No newline at end of file
diff --git a/app/views/gs_cluster_sync_log_entries/index.html.haml b/app/views/gs_cluster_sync_log_entries/index.html.haml
index 68be7e0..2e1b248 100644
--- a/app/views/gs_cluster_sync_log_entries/index.html.haml
+++ b/app/views/gs_cluster_sync_log_entries/index.html.haml
@@ -1,4 +1,4 @@
-- title t("gs_cluster_sync_log_entries.index.page_title")
+- content_for :title, t("gs_cluster_sync_log_entries.index.page_title")
- if @gs_cluster_sync_log_entries && @gs_cluster_sync_log_entries.count > 0
= render "index_core", :gs_cluster_sync_log_entries => @gs_cluster_sync_log_entries
diff --git a/app/views/gs_cluster_sync_log_entries/new.html.haml b/app/views/gs_cluster_sync_log_entries/new.html.haml
index 01b795c..ebe03bc 100644
--- a/app/views/gs_cluster_sync_log_entries/new.html.haml
+++ b/app/views/gs_cluster_sync_log_entries/new.html.haml
@@ -1,3 +1,3 @@
-- title t("gs_cluster_sync_log_entries.new.page_title")
+- content_for :title, t("gs_cluster_sync_log_entries.new.page_title")
= render "form" \ No newline at end of file
diff --git a/app/views/gs_cluster_sync_log_entries/show.html.haml b/app/views/gs_cluster_sync_log_entries/show.html.haml
index 733576d..24dd3d7 100644
--- a/app/views/gs_cluster_sync_log_entries/show.html.haml
+++ b/app/views/gs_cluster_sync_log_entries/show.html.haml
@@ -1,4 +1,4 @@
-- title t("gs_cluster_sync_log_entries.show.page_title")
+- content_for :title, t("gs_cluster_sync_log_entries.show.page_title")
%p
%strong= t('gs_cluster_sync_log_entries.show.gs_node_id') + ":"
diff --git a/app/views/gs_nodes/_index_core.html.haml b/app/views/gs_nodes/_index_core.html.haml
index 72633e1..97dc9df 100644
--- a/app/views/gs_nodes/_index_core.html.haml
+++ b/app/views/gs_nodes/_index_core.html.haml
@@ -1,4 +1,4 @@
-%table
+%table{:class => 'table table-striped'}
%tr
%th= t('gs_nodes.index.name')
%th= t('gs_nodes.index.ip_address')
diff --git a/app/views/gs_nodes/edit.html.haml b/app/views/gs_nodes/edit.html.haml
index c025b05..55180f3 100644
--- a/app/views/gs_nodes/edit.html.haml
+++ b/app/views/gs_nodes/edit.html.haml
@@ -1,3 +1,3 @@
-- title t("gs_nodes.edit.page_title")
+- content_for :title, t("gs_nodes.edit.page_title")
= render "form" \ No newline at end of file
diff --git a/app/views/gs_nodes/index.html.haml b/app/views/gs_nodes/index.html.haml
index 4670cef..2c4ba0b 100644
--- a/app/views/gs_nodes/index.html.haml
+++ b/app/views/gs_nodes/index.html.haml
@@ -1,4 +1,4 @@
-- title t("gs_nodes.index.page_title")
+- content_for :title, t("gs_nodes.index.page_title")
- if @gs_nodes && @gs_nodes.count > 0
= render "index_core", :gs_nodes => @gs_nodes
diff --git a/app/views/gs_nodes/new.html.haml b/app/views/gs_nodes/new.html.haml
index 230ce33..8425084 100644
--- a/app/views/gs_nodes/new.html.haml
+++ b/app/views/gs_nodes/new.html.haml
@@ -1,3 +1,3 @@
-- title t("gs_nodes.new.page_title")
+- content_for :title, t("gs_nodes.new.page_title")
= render "form" \ No newline at end of file
diff --git a/app/views/gs_nodes/show.html.haml b/app/views/gs_nodes/show.html.haml
index ca70a50..bccf785 100644
--- a/app/views/gs_nodes/show.html.haml
+++ b/app/views/gs_nodes/show.html.haml
@@ -1,4 +1,4 @@
-- title t("gs_nodes.show.page_title")
+- content_for :title, t("gs_nodes.show.page_title")
%p
%strong= t('gs_nodes.show.name') + ":"
diff --git a/app/views/gs_parameters/edit.html.haml b/app/views/gs_parameters/edit.html.haml
index c00c7df..b456f43 100644
--- a/app/views/gs_parameters/edit.html.haml
+++ b/app/views/gs_parameters/edit.html.haml
@@ -1,4 +1,4 @@
-- title t("gs_parameters.edit.page_title")
+- content_for :title, t("gs_parameters.edit.page_title")
%p
%strong= t('gs_parameters.show.name') + ":"
diff --git a/app/views/gs_parameters/index.html.haml b/app/views/gs_parameters/index.html.haml
index 3844c3d..9132cdd 100644
--- a/app/views/gs_parameters/index.html.haml
+++ b/app/views/gs_parameters/index.html.haml
@@ -1,9 +1,9 @@
-- title t("gs_parameters.index.page_title")
+- content_for :title, t("gs_parameters.index.page_title")
- if @gs_parameters && @gs_parameters.count > 0
- cache(['gs_parameters_table', I18n.locale, @gs_parameters_unordered.reorder(:updated_at).last, @gs_parameters_unordered.count]) do
- if @sections
- %table
+ %table{:class => 'table table-striped'}
- @sections.each do |section|
%tr
%td{:colspan => 3}
@@ -11,5 +11,5 @@
-# Template Dependency: gs_parameters/_index_core
= render "index_core", :gs_parameters => @gs_parameters.where(:section => section)
- else
- %table
+ %table{:class => 'table table-striped'}
= render "index_core", :gs_parameters => @gs_parameters
diff --git a/app/views/gs_parameters/show.html.haml b/app/views/gs_parameters/show.html.haml
index 7919f8c..795d09c 100644
--- a/app/views/gs_parameters/show.html.haml
+++ b/app/views/gs_parameters/show.html.haml
@@ -1,5 +1,5 @@
- cache(@gs_parameter) do
- - title t("gs_parameters.show.page_title")
+ - content_for :title, t("gs_parameters.show.page_title")
%p
%strong= t('gs_parameters.show.name') + ":"
diff --git a/app/views/gui_functions/_index_core.html.haml b/app/views/gui_functions/_index_core.html.haml
index 815b9c3..cb53d4f 100644
--- a/app/views/gui_functions/_index_core.html.haml
+++ b/app/views/gui_functions/_index_core.html.haml
@@ -1,4 +1,4 @@
-%table
+%table{:class => 'table table-striped'}
%tr
%th= t('gui_functions.index.category')
%th= t('gui_functions.index.name')
diff --git a/app/views/gui_functions/edit.html.haml b/app/views/gui_functions/edit.html.haml
index f43b5bc..a041138 100644
--- a/app/views/gui_functions/edit.html.haml
+++ b/app/views/gui_functions/edit.html.haml
@@ -1,3 +1,3 @@
-- title t("gui_functions.edit.page_title")
+- content_for :title, t("gui_functions.edit.page_title")
= render "form" \ No newline at end of file
diff --git a/app/views/gui_functions/index.html.haml b/app/views/gui_functions/index.html.haml
index 9b53918..b0a7d18 100644
--- a/app/views/gui_functions/index.html.haml
+++ b/app/views/gui_functions/index.html.haml
@@ -1,4 +1,4 @@
-- title t("gui_functions.index.page_title")
+- content_for :title, t("gui_functions.index.page_title")
- if @gui_functions && @gui_functions.count > 0
- cache(['gui_functions_table', I18n.locale, @gui_functions.reorder(:updated_at).last, @gui_functions.count]) do
diff --git a/app/views/gui_functions/new.html.haml b/app/views/gui_functions/new.html.haml
index 6c57e9c..0e3a809 100644
--- a/app/views/gui_functions/new.html.haml
+++ b/app/views/gui_functions/new.html.haml
@@ -1,3 +1,3 @@
-- title t("gui_functions.new.page_title")
+- content_for :title, t("gui_functions.new.page_title")
= render "form" \ No newline at end of file
diff --git a/app/views/gui_functions/show.html.haml b/app/views/gui_functions/show.html.haml
index 8af329a..91b9d2e 100644
--- a/app/views/gui_functions/show.html.haml
+++ b/app/views/gui_functions/show.html.haml
@@ -1,4 +1,4 @@
-- title t("gui_functions.show.page_title")
+- content_for :title, t("gui_functions.show.page_title")
- cache(['gui_function_show', I18n.locale, @gui_function]) do
%p
diff --git a/app/views/hunt_group_members/_index_core.html.haml b/app/views/hunt_group_members/_index_core.html.haml
index 46b64c8..f9a3d28 100644
--- a/app/views/hunt_group_members/_index_core.html.haml
+++ b/app/views/hunt_group_members/_index_core.html.haml
@@ -1,4 +1,4 @@
-%table
+%table{:class => 'table table-striped'}
%tr
%th= t('hunt_group_members.index.name')
%th= t('hunt_group_members.index.active')
diff --git a/app/views/hunt_group_members/edit.html.haml b/app/views/hunt_group_members/edit.html.haml
index 93d7b0a..97e9084 100644
--- a/app/views/hunt_group_members/edit.html.haml
+++ b/app/views/hunt_group_members/edit.html.haml
@@ -1,3 +1,3 @@
-- title t("hunt_group_members.edit.page_title")
+- content_for :title, t("hunt_group_members.edit.page_title")
= render "form"
diff --git a/app/views/hunt_group_members/index.html.haml b/app/views/hunt_group_members/index.html.haml
index 99dc929..4001000 100644
--- a/app/views/hunt_group_members/index.html.haml
+++ b/app/views/hunt_group_members/index.html.haml
@@ -1,4 +1,4 @@
-- title t("hunt_group_members.index.page_title")
+- content_for :title, t("hunt_group_members.index.page_title")
- if @hunt_group_members.count > 0
= render "index_core", :hunt_group_members => @hunt_group_members
diff --git a/app/views/hunt_group_members/new.html.haml b/app/views/hunt_group_members/new.html.haml
index 99f52ad..31dd185 100644
--- a/app/views/hunt_group_members/new.html.haml
+++ b/app/views/hunt_group_members/new.html.haml
@@ -1,3 +1,3 @@
-- title t("hunt_group_members.new.page_title")
+- content_for :title, t("hunt_group_members.new.page_title")
= render "form"
diff --git a/app/views/hunt_group_members/show.html.haml b/app/views/hunt_group_members/show.html.haml
index 80123b8..2056db0 100644
--- a/app/views/hunt_group_members/show.html.haml
+++ b/app/views/hunt_group_members/show.html.haml
@@ -1,4 +1,4 @@
-- title t("hunt_group_members.show.page_title")
+- content_for :title, t("hunt_group_members.show.page_title")
%p
%strong= t('hunt_group_members.show.name') + ":"
diff --git a/app/views/hunt_groups/_index_core.html.haml b/app/views/hunt_groups/_index_core.html.haml
index 3000e97..b820ad0 100644
--- a/app/views/hunt_groups/_index_core.html.haml
+++ b/app/views/hunt_groups/_index_core.html.haml
@@ -1,6 +1,6 @@
- show_seconds = hunt_groups.map{|x| ! x.seconds_between_jumps.nil? }.include?(true)
-%table
+%table{:class => 'table table-striped'}
%tr
%th= t('hunt_groups.index.name')
%th= t('hunt_groups.index.strategy')
diff --git a/app/views/hunt_groups/edit.html.haml b/app/views/hunt_groups/edit.html.haml
index f2ef998..5d5b146 100644
--- a/app/views/hunt_groups/edit.html.haml
+++ b/app/views/hunt_groups/edit.html.haml
@@ -1,3 +1,3 @@
-- title t("hunt_groups.edit.page_title")
+- content_for :title, t("hunt_groups.edit.page_title")
= render "form"
diff --git a/app/views/hunt_groups/index.html.haml b/app/views/hunt_groups/index.html.haml
index 62bc2aa..8c6fdf6 100644
--- a/app/views/hunt_groups/index.html.haml
+++ b/app/views/hunt_groups/index.html.haml
@@ -1,4 +1,4 @@
-- title t("hunt_groups.index.page_title")
+- content_for :title, t("hunt_groups.index.page_title")
- if @hunt_groups.count > 0
= render "index_core", :hunt_groups => @hunt_groups
diff --git a/app/views/hunt_groups/new.html.haml b/app/views/hunt_groups/new.html.haml
index a40e579..2c1350e 100644
--- a/app/views/hunt_groups/new.html.haml
+++ b/app/views/hunt_groups/new.html.haml
@@ -1,3 +1,3 @@
-- title t("hunt_groups.new.page_title")
+- content_for :title, t("hunt_groups.new.page_title")
= render "form"
diff --git a/app/views/hunt_groups/show.html.haml b/app/views/hunt_groups/show.html.haml
index 009af50..3ffe4f3 100644
--- a/app/views/hunt_groups/show.html.haml
+++ b/app/views/hunt_groups/show.html.haml
@@ -1,4 +1,4 @@
-- title t("hunt_groups.show.page_title")
+- content_for :title, t("hunt_groups.show.page_title")
%p
%strong= t('hunt_groups.show.name') + ":"
diff --git a/app/views/layouts/_footer.html.haml b/app/views/layouts/_footer.html.haml
new file mode 100644
index 0000000..dc74275
--- /dev/null
+++ b/app/views/layouts/_footer.html.haml
@@ -0,0 +1,3 @@
+%footer
+ %p
+ \© AMOOMA GmbH 2005 - #{Date.today.year.to_s} · Bachstr. 124 · 56566 Neuwied · Germany · #{mail_to 'info@amooma.de', 'info@amooma.de'}
diff --git a/app/views/layouts/_navbar.html.haml b/app/views/layouts/_navbar.html.haml
new file mode 100644
index 0000000..4005e28
--- /dev/null
+++ b/app/views/layouts/_navbar.html.haml
@@ -0,0 +1,21 @@
+.navbar.navbar-inverse.navbar-fixed-top
+ .navbar-inner
+ .container-fluid
+ %a.btn.btn-navbar{"data-target" => ".nav-collapse", "data-toggle" => "collapse"}
+ %span.icon-bar
+ %span.icon-bar
+ %span.icon-bar
+ %a.brand{:href => (current_user.nil? ? '/' : tenant_path(current_user.current_tenant))} Gemeinschaft 5
+ .nav-collapse.collapse
+ %p.navbar-text.pull-right
+ - if current_user
+ %a.navbar-link{:href => tenant_user_path(current_user.current_tenant, current_user)}
+ = current_user
+ %ul.nav
+ %li.active
+ %a{:href => "#"} Home
+ %li
+ %a{:href => "#about"} About
+ %li
+ %a{:href => "#contact"} Contact
+ / /.nav-collapse
diff --git a/app/views/layouts/application.html.haml b/app/views/layouts/application.html.haml
index a2afbf8..8caee14 100644
--- a/app/views/layouts/application.html.haml
+++ b/app/views/layouts/application.html.haml
@@ -1,48 +1,37 @@
-!!! 5
-<!--[if lt IE 7]> <html lang="en" class="no-js ie6"> <![endif]-->
-<!--[if IE 7]> <html lang="en" class="no-js ie7"> <![endif]-->
-<!--[if IE 8]> <html lang="en" class="no-js ie8"> <![endif]-->
-<!--[if gt IE 8]><!-->
-%html.no-js{ :lang => I18n.locale.to_s }
- <!--<![endif]-->
- %header
- %meta{ :charset => "utf-8" }/
- ~#OPTIMIZE "/" seems to be supposed to make an empty element tag, but it doesn't work. HAML bug?
- %title
- = content_for?(:title) ? yield(:title) : "Untitled"
- %meta{ :name => "viewport", :content => "width=device-width, initial-scale=1.0" }/
- = stylesheet_link_tag "application"
+!!!
+%html
+ %head
+ %meta{:charset => "utf-8"}/
+ %title
+ = content_for?(:title) ? yield(:title) : "Gemeinschaft 5"
+ %meta{:name => 'viewport', :content => "width=device-width, initial-scale=1.0"}
+ - if content_for?(:meta_description)
+ %meta{:description => yield(:meta_description)}/
+ %meta{:author => "AMOOMA GmbH"}/
+ = stylesheet_link_tag "application", :media => "all"
= javascript_include_tag "application"
- = csrf_meta_tag
- = yield(:head)
-
+ = csrf_meta_tags
+ / HTML5 shim, for IE6-8 support of HTML5 elements
+ /[if lt IE 9]
+ <script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
%body
- #container
- - cache(['application_header', I18n.locale, current_user]) do
- = render :partial => "shared/header"
- = render :partial => "shared/flash", :locals => { :flash => flash}
+ = render 'layouts/navbar'
- #content{:role => 'main'}
- .light
- %header.main
- .breadcrumbs= render_breadcrumbs :separator => ' » '
- - if show_title?
- %h1= yield(:title)
- = yield
+ = render_breadcrumbs :builder => ::BootstrapBreadcrumbsBuilder, :separator => "/"
- - cache(['application_footer', I18n.locale]) do
- %footer#main
- %ul
- %li
- %a{:href => "http://amooma.de/gemeinschaft/gs5"} Gemeinschaft #{GsParameter.get('GEMEINSCHAFT_VERSION')}
- - if GuiFunction.display?('amooma_commercial_support_link_in_footer', current_user)
- %li
- %a{:href => "http://amooma.de"} Kommerzieller Support und Consulting
- - if GuiFunction.display?('gemeinschaft_mailinglist_link_in_footer', current_user)
- %li
- %a{:href => "https://groups.google.com/group/gs5-users/"} Kostenlose Mailingliste
+ .container
+ .row
+ .span12
+ - unless response.cache_control[:public]
+ - flash.each do |name, msg|
+ %div{:class => "alert alert-#{name == :notice ? "success" : "error"} fade in"}
+ %a.close{"data-dismiss" => "alert"} ×
+ = msg
- .amooma-logo
- %span brought to you by
- %a{ :target => '_blank', :href => "http://amooma.de/" } Amooma
+ = yield
+ .row
+ .span12
+ %hr/
+ = render 'layouts/footer'
+ / /container
diff --git a/app/views/layouts/old-application.html.haml b/app/views/layouts/old-application.html.haml
new file mode 100644
index 0000000..a2afbf8
--- /dev/null
+++ b/app/views/layouts/old-application.html.haml
@@ -0,0 +1,48 @@
+!!! 5
+<!--[if lt IE 7]> <html lang="en" class="no-js ie6"> <![endif]-->
+<!--[if IE 7]> <html lang="en" class="no-js ie7"> <![endif]-->
+<!--[if IE 8]> <html lang="en" class="no-js ie8"> <![endif]-->
+<!--[if gt IE 8]><!-->
+%html.no-js{ :lang => I18n.locale.to_s }
+ <!--<![endif]-->
+ %header
+ %meta{ :charset => "utf-8" }/
+ ~#OPTIMIZE "/" seems to be supposed to make an empty element tag, but it doesn't work. HAML bug?
+ %title
+ = content_for?(:title) ? yield(:title) : "Untitled"
+ %meta{ :name => "viewport", :content => "width=device-width, initial-scale=1.0" }/
+ = stylesheet_link_tag "application"
+ = javascript_include_tag "application"
+ = csrf_meta_tag
+ = yield(:head)
+
+ %body
+ #container
+ - cache(['application_header', I18n.locale, current_user]) do
+ = render :partial => "shared/header"
+ = render :partial => "shared/flash", :locals => { :flash => flash}
+
+ #content{:role => 'main'}
+ .light
+ %header.main
+ .breadcrumbs= render_breadcrumbs :separator => ' » '
+ - if show_title?
+ %h1= yield(:title)
+ = yield
+
+ - cache(['application_footer', I18n.locale]) do
+ %footer#main
+ %ul
+ %li
+ %a{:href => "http://amooma.de/gemeinschaft/gs5"} Gemeinschaft #{GsParameter.get('GEMEINSCHAFT_VERSION')}
+ - if GuiFunction.display?('amooma_commercial_support_link_in_footer', current_user)
+ %li
+ %a{:href => "http://amooma.de"} Kommerzieller Support und Consulting
+ - if GuiFunction.display?('gemeinschaft_mailinglist_link_in_footer', current_user)
+ %li
+ %a{:href => "https://groups.google.com/group/gs5-users/"} Kostenlose Mailingliste
+
+ .amooma-logo
+ %span brought to you by
+ %a{ :target => '_blank', :href => "http://amooma.de/" } Amooma
+
diff --git a/app/views/layouts/old_navbar.html.haml b/app/views/layouts/old_navbar.html.haml
new file mode 100644
index 0000000..4d795e4
--- /dev/null
+++ b/app/views/layouts/old_navbar.html.haml
@@ -0,0 +1,10 @@
+.navbar.navbar-inverse.navbar-fixed-top
+ .navbar-inner
+ .container
+ %a.btn.btn-navbar{"data-target" => ".nav-collapse", "data-toggle" => "collapse"}
+ %span.icon-bar
+ %span.icon-bar
+ %span.icon-bar
+ %a.brand{:href => "/"} Gemeinschaft 5
+
+ / /.nav-collapse
diff --git a/app/views/layouts/test.haml b/app/views/layouts/test.haml
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/app/views/layouts/test.haml
diff --git a/app/views/manufacturers/_index_core.html.haml b/app/views/manufacturers/_index_core.html.haml
index 8937909..5c80ae9 100644
--- a/app/views/manufacturers/_index_core.html.haml
+++ b/app/views/manufacturers/_index_core.html.haml
@@ -1,4 +1,4 @@
-%table
+%table{:class => 'table table-striped'}
%tr
%th= t('manufacturers.index.name')
%th= t('manufacturers.index.ieee_name')
diff --git a/app/views/manufacturers/edit.html.haml b/app/views/manufacturers/edit.html.haml
index 61bcba0..913287a 100644
--- a/app/views/manufacturers/edit.html.haml
+++ b/app/views/manufacturers/edit.html.haml
@@ -1,3 +1,3 @@
-- title t("manufacturers.edit.page_title")
+- content_for :title, t("manufacturers.edit.page_title")
= render "form"
diff --git a/app/views/manufacturers/index.html.haml b/app/views/manufacturers/index.html.haml
index 43fecc6..ccdd44b 100644
--- a/app/views/manufacturers/index.html.haml
+++ b/app/views/manufacturers/index.html.haml
@@ -1,4 +1,4 @@
-- title t("manufacturers.index.page_title")
+- content_for :title, t("manufacturers.index.page_title")
= render "index_core", :manufacturers => @manufacturers
diff --git a/app/views/manufacturers/new.html.haml b/app/views/manufacturers/new.html.haml
index 4fb9dbf..9931242 100644
--- a/app/views/manufacturers/new.html.haml
+++ b/app/views/manufacturers/new.html.haml
@@ -1,3 +1,3 @@
-- title t("manufacturers.new.page_title")
+- content_for :title, t("manufacturers.new.page_title")
= render "form"
diff --git a/app/views/manufacturers/show.html.haml b/app/views/manufacturers/show.html.haml
index 1b8383b..8888402 100644
--- a/app/views/manufacturers/show.html.haml
+++ b/app/views/manufacturers/show.html.haml
@@ -1,4 +1,4 @@
-- title t("manufacturers.show.page_title")
+- content_for :title, t("manufacturers.show.page_title")
%p
%strong= t('manufacturers.show.name') + ":"
diff --git a/app/views/page/beginners_intro.de.html.haml b/app/views/page/beginners_intro.de.html.haml
index 4bd5b11..5eef135 100644
--- a/app/views/page/beginners_intro.de.html.haml
+++ b/app/views/page/beginners_intro.de.html.haml
@@ -1,4 +1,4 @@
-- title "Erste Schritte mit Gemeinschaft #{GsParameter.get('GEMEINSCHAFT_VERSION')}!"
+- content_for :title, "Erste Schritte mit Gemeinschaft #{GsParameter.get('GEMEINSCHAFT_VERSION')}!"
%p
Sie müssen als erstes mindestens zwei neue SIP-Accounts anlegen. Dabei haben Sie die Wahl zwischen folgenden Varianten:
diff --git a/app/views/page/beginners_intro.html.haml b/app/views/page/beginners_intro.html.haml
index 08af174..dadd99f 100644
--- a/app/views/page/beginners_intro.html.haml
+++ b/app/views/page/beginners_intro.html.haml
@@ -1,4 +1,4 @@
-- title "First steps with Gemeinschaft #{GsParameter.get('GEMEINSCHAFT_VERSION')}!"
+- content_for :title, "First steps with Gemeinschaft #{GsParameter.get('GEMEINSCHAFT_VERSION')}!"
%p
You have to create at least two new SIP accounts. You have the choice of two different versions:
diff --git a/app/views/page/conference.html.haml b/app/views/page/conference.html.haml
index 061dfd1..2fdc043 100644
--- a/app/views/page/conference.html.haml
+++ b/app/views/page/conference.html.haml
@@ -1,5 +1,5 @@
- conf_call_topic = "The next big thing"
-- title "Conference Call \u2013 Topic: #{conf_call_topic}"
+- content_for :title, "Conference Call \u2013 Topic: #{conf_call_topic}"
%section.conference
diff --git a/app/views/page/index.de.html.haml b/app/views/page/index.de.html.haml
index d5dd096..a3ca83b 100644
--- a/app/views/page/index.de.html.haml
+++ b/app/views/page/index.de.html.haml
@@ -1,4 +1,4 @@
-- title "Gemeinschaft #{GsParameter.get('GEMEINSCHAFT_VERSION')}"
+- content_for :title, "Gemeinschaft #{GsParameter.get('GEMEINSCHAFT_VERSION')}"
%div
%h3 Aktueller Mandant
diff --git a/app/views/page/index.html.haml b/app/views/page/index.html.haml
index f55ab37..178074d 100644
--- a/app/views/page/index.html.haml
+++ b/app/views/page/index.html.haml
@@ -1,4 +1,4 @@
-- title "Gemeinschaft #{GsParameter.get('GEMEINSCHAFT_VERSION')}"
+- content_for :title, "Gemeinschaft #{GsParameter.get('GEMEINSCHAFT_VERSION')}"
%div
%h3 Current tenant
diff --git a/app/views/phone_book_entries/_index_core.de.html.haml b/app/views/phone_book_entries/_index_core.de.html.haml
index 43d62f6..bc8d118 100644
--- a/app/views/phone_book_entries/_index_core.de.html.haml
+++ b/app/views/phone_book_entries/_index_core.de.html.haml
@@ -4,7 +4,7 @@
.content
- cache(['phone_book_entries_table', I18n.locale, current_user, phone_book_entries]) do
- reset_cycle
- %table
+ %table{:class => 'table table-striped'}
- for entry in phone_book_entries
- cache(['phone_book_entries_table_tr', I18n.locale, current_user, entry]) do
~# Dear IE7,
diff --git a/app/views/phone_book_entries/_index_core.html.haml b/app/views/phone_book_entries/_index_core.html.haml
index e98e8d5..0e687f9 100644
--- a/app/views/phone_book_entries/_index_core.html.haml
+++ b/app/views/phone_book_entries/_index_core.html.haml
@@ -5,7 +5,7 @@
- cache(['phone_book_entries_table', I18n.locale, current_user, phone_book_entries]) do
- reset_cycle
- reset_cycle
- %table
+ %table{:class => 'table table-striped'}
- for entry in phone_book_entries
- cache(['phone_book_entries_table_tr', I18n.locale, current_user, entry]) do
~# Dear IE7,
diff --git a/app/views/phone_book_entries/edit.html.haml b/app/views/phone_book_entries/edit.html.haml
index d4fad4d..2967366 100644
--- a/app/views/phone_book_entries/edit.html.haml
+++ b/app/views/phone_book_entries/edit.html.haml
@@ -1,4 +1,4 @@
-- title t("phone_book_entries.edit.page_title")
+- content_for :title, t("phone_book_entries.edit.page_title")
= render "form"
diff --git a/app/views/phone_book_entries/index.html.haml b/app/views/phone_book_entries/index.html.haml
index 6a17eb9..10d1ce2 100644
--- a/app/views/phone_book_entries/index.html.haml
+++ b/app/views/phone_book_entries/index.html.haml
@@ -1,4 +1,4 @@
-- title t("phone_book_entries.index.page_title")
+- content_for :title, t("phone_book_entries.index.page_title")
- if @phone_books
%p
diff --git a/app/views/phone_book_entries/new.html.haml b/app/views/phone_book_entries/new.html.haml
index d72d1a4..2f3a8be 100644
--- a/app/views/phone_book_entries/new.html.haml
+++ b/app/views/phone_book_entries/new.html.haml
@@ -1,3 +1,3 @@
-- title t("phone_book_entries.new.page_title")
+- content_for :title, t("phone_book_entries.new.page_title")
= render "form"
diff --git a/app/views/phone_book_entries/show.html.haml b/app/views/phone_book_entries/show.html.haml
index ff43b8a..7dd9bcb 100644
--- a/app/views/phone_book_entries/show.html.haml
+++ b/app/views/phone_book_entries/show.html.haml
@@ -1,4 +1,4 @@
-- title nil
+- content_for :title, nil
%section.phone-book-entry
.content
diff --git a/app/views/phone_book_entries/show.html.haml.examlple b/app/views/phone_book_entries/show.html.haml.examlple
index 176ad04..980f776 100644
--- a/app/views/phone_book_entries/show.html.haml.examlple
+++ b/app/views/phone_book_entries/show.html.haml.examlple
@@ -1,4 +1,4 @@
-- title nil
+- content_for :title, nil
%section.phone-book-entry
.content
diff --git a/app/views/phone_books/_index_core.html.haml b/app/views/phone_books/_index_core.html.haml
index 5f50675..beed729 100644
--- a/app/views/phone_books/_index_core.html.haml
+++ b/app/views/phone_books/_index_core.html.haml
@@ -1,4 +1,4 @@
-%table
+%table{:class => 'table table-striped'}
%tr
%th= t('phone_books.index.name')
%th= t('phone_books.index.description')
diff --git a/app/views/phone_books/edit.html.haml b/app/views/phone_books/edit.html.haml
index 36c945b..e1d4553 100644
--- a/app/views/phone_books/edit.html.haml
+++ b/app/views/phone_books/edit.html.haml
@@ -1,3 +1,3 @@
-- title t("phone_books.edit.page_title", :resource => @phone_book)
+- content_for :title, t("phone_books.edit.page_title", :resource => @phone_book)
= render "form"
diff --git a/app/views/phone_books/index.html.haml b/app/views/phone_books/index.html.haml
index 52b4e9b..e681878 100644
--- a/app/views/phone_books/index.html.haml
+++ b/app/views/phone_books/index.html.haml
@@ -1,4 +1,4 @@
-- title t("phone_books.index.page_title")
+- content_for :title, t("phone_books.index.page_title")
- if @phone_books.count > 0
= render "index_core", :phone_books => @phone_books
diff --git a/app/views/phone_books/new.html.haml b/app/views/phone_books/new.html.haml
index e96ce1e..66d6e99 100644
--- a/app/views/phone_books/new.html.haml
+++ b/app/views/phone_books/new.html.haml
@@ -1,3 +1,3 @@
-- title t("phone_books.new.page_title")
+- content_for :title, t("phone_books.new.page_title")
= render "form" \ No newline at end of file
diff --git a/app/views/phone_books/show.html.haml b/app/views/phone_books/show.html.haml
index 047b15e..5140b91 100644
--- a/app/views/phone_books/show.html.haml
+++ b/app/views/phone_books/show.html.haml
@@ -1,4 +1,4 @@
-- title @phone_book
+- content_for :title, @phone_book
- if ! @phone_book.description.blank?
%p
%strong= t('phone_books.show.description') + ":"
diff --git a/app/views/phone_models/_index_core.html.haml b/app/views/phone_models/_index_core.html.haml
index b07eb68..37cceb8 100644
--- a/app/views/phone_models/_index_core.html.haml
+++ b/app/views/phone_models/_index_core.html.haml
@@ -1,4 +1,4 @@
-%table
+%table{:class => 'table table-striped'}
%tr
%th= t('phone_models.index.name')
%th= t('phone_models.index.product_manual_homepage_url')
diff --git a/app/views/phone_models/edit.html.haml b/app/views/phone_models/edit.html.haml
index bf31ffc..ee10d3e 100644
--- a/app/views/phone_models/edit.html.haml
+++ b/app/views/phone_models/edit.html.haml
@@ -1,3 +1,3 @@
-- title t("phone_models.edit.page_title")
+- content_for :title, t("phone_models.edit.page_title")
= render "form"
diff --git a/app/views/phone_models/index.html.haml b/app/views/phone_models/index.html.haml
index 90aa4ce..e37243a 100644
--- a/app/views/phone_models/index.html.haml
+++ b/app/views/phone_models/index.html.haml
@@ -1,4 +1,4 @@
-- title t("phone_models.index.page_title")
+- content_for :title, t("phone_models.index.page_title")
- if @phone_models.count > 0
= render "index_core", :phone_models => @phone_models
diff --git a/app/views/phone_models/new.html.haml b/app/views/phone_models/new.html.haml
index 9e900d4..a60bc68 100644
--- a/app/views/phone_models/new.html.haml
+++ b/app/views/phone_models/new.html.haml
@@ -1,3 +1,3 @@
-- title t("phone_models.new.page_title")
+- content_for :title, t("phone_models.new.page_title")
= render "form"
diff --git a/app/views/phone_models/show.html.haml b/app/views/phone_models/show.html.haml
index 06fae4b..5e16bda 100644
--- a/app/views/phone_models/show.html.haml
+++ b/app/views/phone_models/show.html.haml
@@ -1,4 +1,4 @@
-- title t("phone_models.show.page_title")
+- content_for :title, t("phone_models.show.page_title")
%p
%strong= t('phone_models.show.name') + ":"
diff --git a/app/views/phone_number_ranges/_index_core.html.haml b/app/views/phone_number_ranges/_index_core.html.haml
index 24ea96d..fdd9f63 100644
--- a/app/views/phone_number_ranges/_index_core.html.haml
+++ b/app/views/phone_number_ranges/_index_core.html.haml
@@ -1,4 +1,4 @@
-%table
+%table{:class => 'table table-striped'}
%tr
%th= t('phone_number_ranges.index.name')
%th= t('phone_number_ranges.index.description')
diff --git a/app/views/phone_number_ranges/edit.html.haml b/app/views/phone_number_ranges/edit.html.haml
index fbf6d12..791be71 100644
--- a/app/views/phone_number_ranges/edit.html.haml
+++ b/app/views/phone_number_ranges/edit.html.haml
@@ -1,3 +1,3 @@
-- title t("phone_number_ranges.edit.page_title", :resource => @phone_number_range)
+- content_for :title, t("phone_number_ranges.edit.page_title", :resource => @phone_number_range)
= render "form"
diff --git a/app/views/phone_number_ranges/index.html.haml b/app/views/phone_number_ranges/index.html.haml
index 56cf137..769dc68 100644
--- a/app/views/phone_number_ranges/index.html.haml
+++ b/app/views/phone_number_ranges/index.html.haml
@@ -1,4 +1,4 @@
-- title t("phone_number_ranges.index.page_title")
+- content_for :title, t("phone_number_ranges.index.page_title")
- if @phone_number_ranges.count > 0
= render "index_core", :phone_number_ranges => @phone_number_ranges
diff --git a/app/views/phone_number_ranges/new.html.haml b/app/views/phone_number_ranges/new.html.haml
index d26b34d..1e5eab0 100644
--- a/app/views/phone_number_ranges/new.html.haml
+++ b/app/views/phone_number_ranges/new.html.haml
@@ -1,3 +1,3 @@
-- title t("phone_number_ranges.new.page_title")
+- content_for :title, t("phone_number_ranges.new.page_title")
= render "form"
diff --git a/app/views/phone_number_ranges/show.html.haml b/app/views/phone_number_ranges/show.html.haml
index 64df556..fdb54a7 100644
--- a/app/views/phone_number_ranges/show.html.haml
+++ b/app/views/phone_number_ranges/show.html.haml
@@ -1,4 +1,4 @@
-- title t("phone_number_ranges.show.page_title")
+- content_for :title, t("phone_number_ranges.show.page_title")
%p
%strong= t('phone_number_ranges.show.name') + ":"
diff --git a/app/views/phone_numbers/_index_core.html.haml b/app/views/phone_numbers/_index_core.html.haml
index 06b27c8..c29812b 100644
--- a/app/views/phone_numbers/_index_core.html.haml
+++ b/app/views/phone_numbers/_index_core.html.haml
@@ -1,4 +1,4 @@
-%table
+%table{:class => 'table table-striped'}
%tr
- if phone_numbers.count > 1 && phone_numbers.first.phone_numberable_type == 'PhoneBookEntry'
%th= t('phone_numbers.index.name')
diff --git a/app/views/phone_numbers/edit.html.haml b/app/views/phone_numbers/edit.html.haml
index d238d3d..14683d2 100644
--- a/app/views/phone_numbers/edit.html.haml
+++ b/app/views/phone_numbers/edit.html.haml
@@ -1,3 +1,3 @@
-- title t("phone_numbers.edit.page_title", :resource => "" )
+- content_for :title, t("phone_numbers.edit.page_title", :resource => "" )
= render "form" \ No newline at end of file
diff --git a/app/views/phone_numbers/index.html.haml b/app/views/phone_numbers/index.html.haml
index 2161739..08a2aa3 100644
--- a/app/views/phone_numbers/index.html.haml
+++ b/app/views/phone_numbers/index.html.haml
@@ -1,4 +1,4 @@
-- title @parent
+- content_for :title, @parent
- if @phone_numbers.count > 0
= render "index_core", :phone_numbers => @phone_numbers
diff --git a/app/views/phone_numbers/new.html.haml b/app/views/phone_numbers/new.html.haml
index e91f4f4..364a4bd 100644
--- a/app/views/phone_numbers/new.html.haml
+++ b/app/views/phone_numbers/new.html.haml
@@ -1,3 +1,3 @@
-- title t("phone_numbers.new.page_title")
+- content_for :title, t("phone_numbers.new.page_title")
= render "form"
diff --git a/app/views/phone_numbers/show.html.haml b/app/views/phone_numbers/show.html.haml
index 30c48bc..de6cb1b 100644
--- a/app/views/phone_numbers/show.html.haml
+++ b/app/views/phone_numbers/show.html.haml
@@ -1,4 +1,4 @@
-- title t("phone_numbers.show.page_title")
+- content_for :title, t("phone_numbers.show.page_title")
- if @phone_number.phone_numberable.class == PhoneBookEntry
%p
diff --git a/app/views/phone_sip_accounts/_index_core.html.haml b/app/views/phone_sip_accounts/_index_core.html.haml
index 89afb2b..3fed147 100644
--- a/app/views/phone_sip_accounts/_index_core.html.haml
+++ b/app/views/phone_sip_accounts/_index_core.html.haml
@@ -1,4 +1,4 @@
-%table
+%table{:class => 'table table-striped'}
%tr
%th= t('phone_sip_accounts.index.phone_id')
%th= t('phone_sip_accounts.index.sip_account_id')
diff --git a/app/views/phone_sip_accounts/index.html.haml b/app/views/phone_sip_accounts/index.html.haml
index a9e3f85..f9ff716 100644
--- a/app/views/phone_sip_accounts/index.html.haml
+++ b/app/views/phone_sip_accounts/index.html.haml
@@ -1,4 +1,4 @@
-- title t("phone_sip_accounts.index.page_title")
+- content_for :title, t("phone_sip_accounts.index.page_title")
- if @phone_sip_accounts.count > 0
=render "index_core", :phone_sip_accounts => @phone_sip_accounts
diff --git a/app/views/phone_sip_accounts/new.html.haml b/app/views/phone_sip_accounts/new.html.haml
index bfe40b8..3ad8895 100644
--- a/app/views/phone_sip_accounts/new.html.haml
+++ b/app/views/phone_sip_accounts/new.html.haml
@@ -1,3 +1,3 @@
-- title t("phone_sip_accounts.new.page_title")
+- content_for :title, t("phone_sip_accounts.new.page_title")
= render "form"
diff --git a/app/views/phone_sip_accounts/show.html.haml b/app/views/phone_sip_accounts/show.html.haml
index 0dd5a9b..54e1e5d 100644
--- a/app/views/phone_sip_accounts/show.html.haml
+++ b/app/views/phone_sip_accounts/show.html.haml
@@ -1,4 +1,4 @@
-- title t("phone_sip_accounts.show.page_title")
+- content_for :title, t("phone_sip_accounts.show.page_title")
%p
%strong= t('phone_sip_accounts.show.phone_id') + ":"
diff --git a/app/views/phones/_index_core.html.haml b/app/views/phones/_index_core.html.haml
index c442d7f..8dc875c 100644
--- a/app/views/phones/_index_core.html.haml
+++ b/app/views/phones/_index_core.html.haml
@@ -1,4 +1,4 @@
-%table
+%table{:class => 'table table-striped'}
%tr
%th= t('phones.index.mac_address')
%th= t('phones.index.phone_model_id')
diff --git a/app/views/phones/edit.html.haml b/app/views/phones/edit.html.haml
index cdbacac..9452e2a 100644
--- a/app/views/phones/edit.html.haml
+++ b/app/views/phones/edit.html.haml
@@ -1,3 +1,3 @@
-- title t("phones.edit.page_title", :resource => @phone.mac_address)
+- content_for :title, t("phones.edit.page_title", :resource => @phone.mac_address)
= render "form"
diff --git a/app/views/phones/index.html.haml b/app/views/phones/index.html.haml
index 785adf9..4de7919 100644
--- a/app/views/phones/index.html.haml
+++ b/app/views/phones/index.html.haml
@@ -1,4 +1,4 @@
-- title t("phones.index.page_title")
+- content_for :title, t("phones.index.page_title")
- if @phones.count > 0
= render "index_core", :phones => @phones
diff --git a/app/views/phones/new.html.haml b/app/views/phones/new.html.haml
index ae0a539..95fbdf2 100644
--- a/app/views/phones/new.html.haml
+++ b/app/views/phones/new.html.haml
@@ -1,4 +1,4 @@
-- title t("phones.new.page_title")
+- content_for :title, t("phones.new.page_title")
- if !@fallback_sip_accounts.any? && can?(:create, current_user.current_tenant.sip_accounts.build)
%p
diff --git a/app/views/phones/show.html.haml b/app/views/phones/show.html.haml
index 0e0dad5..87b8d3d 100644
--- a/app/views/phones/show.html.haml
+++ b/app/views/phones/show.html.haml
@@ -1,4 +1,4 @@
-- title t("phones.show.page_title")
+- content_for :title, t("phones.show.page_title")
%p
%strong= t('phones.show.mac_address') + ":"
diff --git a/app/views/ringtones/_index_core.html.haml b/app/views/ringtones/_index_core.html.haml
index c39357a..e01914d 100644
--- a/app/views/ringtones/_index_core.html.haml
+++ b/app/views/ringtones/_index_core.html.haml
@@ -1,4 +1,4 @@
-%table
+%table{:class => 'table table-striped'}
%tr
%th= t('ringtones.index.audio')
%th= t('ringtones.index.bellcore_id')
diff --git a/app/views/ringtones/edit.html.haml b/app/views/ringtones/edit.html.haml
index 6779190..341b97f 100644
--- a/app/views/ringtones/edit.html.haml
+++ b/app/views/ringtones/edit.html.haml
@@ -1,3 +1,3 @@
-- title t("ringtones.edit.page_title")
+- content_for :title, t("ringtones.edit.page_title")
= render "form"
diff --git a/app/views/ringtones/index.html.haml b/app/views/ringtones/index.html.haml
index 4da75fa..2eea5fe 100644
--- a/app/views/ringtones/index.html.haml
+++ b/app/views/ringtones/index.html.haml
@@ -1,4 +1,4 @@
-- title t("ringtones.index.page_title")
+- content_for :title, t("ringtones.index.page_title")
- if @ringtones.count > 0
= render "index_core", :ringtones => @ringtones
diff --git a/app/views/ringtones/new.html.haml b/app/views/ringtones/new.html.haml
index 025f440..de0070c 100644
--- a/app/views/ringtones/new.html.haml
+++ b/app/views/ringtones/new.html.haml
@@ -1,3 +1,3 @@
-- title t("ringtones.new.page_title")
+- content_for :title, t("ringtones.new.page_title")
= render "form"
diff --git a/app/views/ringtones/show.html.haml b/app/views/ringtones/show.html.haml
index 408b808..7e0a011 100644
--- a/app/views/ringtones/show.html.haml
+++ b/app/views/ringtones/show.html.haml
@@ -1,4 +1,4 @@
-- title t("ringtones.show.page_title")
+- content_for :title, t("ringtones.show.page_title")
- if 1 == 2
%p
diff --git a/app/views/route_elements/_index_core.html.haml b/app/views/route_elements/_index_core.html.haml
index 3435686..f769c01 100644
--- a/app/views/route_elements/_index_core.html.haml
+++ b/app/views/route_elements/_index_core.html.haml
@@ -1,4 +1,4 @@
-%table
+%table{:class => 'table table-striped'}
%tr
%th= t('route_elements.index.var_in')
%th= t('route_elements.index.var_out')
diff --git a/app/views/route_elements/edit.html.haml b/app/views/route_elements/edit.html.haml
index 770eb6c..c2da3e6 100644
--- a/app/views/route_elements/edit.html.haml
+++ b/app/views/route_elements/edit.html.haml
@@ -1,3 +1,3 @@
-- title t("route_elements.edit.page_title")
+- content_for :title, t("route_elements.edit.page_title")
= render "form" \ No newline at end of file
diff --git a/app/views/route_elements/index.html.haml b/app/views/route_elements/index.html.haml
index 8a6f7bc..43d47f1 100644
--- a/app/views/route_elements/index.html.haml
+++ b/app/views/route_elements/index.html.haml
@@ -1,4 +1,4 @@
-- title t("route_elements.index.page_title")
+- content_for :title, t("route_elements.index.page_title")
- if @route_elements && @route_elements.count > 0
= render "index_core", :route_elements => @route_elements
diff --git a/app/views/route_elements/new.html.haml b/app/views/route_elements/new.html.haml
index 903e808..2b9b9c1 100644
--- a/app/views/route_elements/new.html.haml
+++ b/app/views/route_elements/new.html.haml
@@ -1,3 +1,3 @@
-- title t("route_elements.new.page_title")
+- content_for :title, t("route_elements.new.page_title")
= render "form" \ No newline at end of file
diff --git a/app/views/route_elements/show.html.haml b/app/views/route_elements/show.html.haml
index c637a4d..808f2a0 100644
--- a/app/views/route_elements/show.html.haml
+++ b/app/views/route_elements/show.html.haml
@@ -1,4 +1,4 @@
-- title t("route_elements.show.page_title")
+- content_for :title, t("route_elements.show.page_title")
%p
%strong= t('route_elements.show.var_in') + ":"
diff --git a/app/views/sessions/new.html.haml b/app/views/sessions/new.html.haml
index 8ad77b1..f386a5d 100644
--- a/app/views/sessions/new.html.haml
+++ b/app/views/sessions/new.html.haml
@@ -1,4 +1,4 @@
-- title t("sessions.new.page_title")
+- content_for :title, t("sessions.new.page_title")
= simple_form_for :sessions, :url => sessions_path do |t|
= t.input :login_data, :label => t('sessions.form.email'), :autofocus => true
diff --git a/app/views/shared/_create_link.html.haml b/app/views/shared/_create_link.html.haml
index 103c82b..e5bc840 100644
--- a/app/views/shared/_create_link.html.haml
+++ b/app/views/shared/_create_link.html.haml
@@ -2,10 +2,17 @@
- if can? :create, parent.send(child_class.name.underscore.pluralize).build
%p
- if t("#{child_class.name.underscore.pluralize}.index.actions.create_for").include?('translation missing') || (!(defined? short_link).nil? && short_link == true)
- = link_to t("#{child_class.name.underscore.pluralize}.index.actions.create"), method( :"new_#{parent.class.name.underscore}_#{child_class.name.underscore}_path" ).(parent)
+ %a.btn.btn-mini.btn-primary{:href => method( :"new_#{parent.class.name.underscore}_#{child_class.name.underscore}_path" ).(parent) }
+ %i.icon-plus.icon-white
+ =t("#{child_class.name.underscore.pluralize}.index.actions.create")
- else
- = link_to t("#{child_class.name.underscore.pluralize}.index.actions.create_for", :resource => parent.to_s), method( :"new_#{parent.class.name.underscore}_#{child_class.name.underscore}_path" ).(parent)
+ %a.btn.btn-mini.btn-primary{:href => method( :"new_#{parent.class.name.underscore}_#{child_class.name.underscore}_path" ).(parent) }
+ %i.icon-plus.icon-white
+ =t("#{child_class.name.underscore.pluralize}.index.actions.create_for", :resource => parent)
+
- elsif !(defined? child_class).nil?
- if can? :create, child_class
%p
- = link_to t("#{child_class.name.underscore.pluralize}.index.actions.create"), method( :"new_#{child_class.name.underscore}_path" ).() \ No newline at end of file
+ %a.btn.btn-mini.btn-primary{:href => method( :"new_#{child_class.name.underscore}_path" ).() }
+ %i.icon-plus.icon-white
+ =t("#{child_class.name.underscore.pluralize}.index.actions.create") \ No newline at end of file
diff --git a/app/views/shared/_flash.html.haml b/app/views/shared/_flash.html.haml
deleted file mode 100644
index 320fd15..0000000
--- a/app/views/shared/_flash.html.haml
+++ /dev/null
@@ -1,19 +0,0 @@
-- flash.each do |type, msg|
- .flash{:class => type}
- .light
- .sign= resolve_flash_sign(type)
- .message= msg
-
-
--# These are the available types:
--#
--# .flash.notice
--# .light
--# .sign i
--# .message Lorem ipsum dolor sit amet, consectetur adipisicing eli.w
--#
--# .flash.warning
--# .light
--# .sign !
--# .message Lorem ipsum dolor sit amet, consectetur adipisicing eli.w
-
diff --git a/app/views/shared/_index_view_edit_destroy_part.html.haml b/app/views/shared/_index_view_edit_destroy_part.html.haml
index ff5a988..5bc715b 100644
--- a/app/views/shared/_index_view_edit_destroy_part.html.haml
+++ b/app/views/shared/_index_view_edit_destroy_part.html.haml
@@ -1,35 +1,39 @@
-- style = 'width:35px'
+- style = 'width:70px'
- if !(defined? parent).nil? && !(defined? child).nil?
- %td{ :style => style }
- - if can? :show, child
- = link_to t("#{child.class.name.underscore.pluralize}.index.actions.show"), method( :"#{parent.class.name.underscore}_#{child.class.name.underscore}_path" ).(parent, child)
- %td{ :style => style }
- - if can? :edit, child
- = link_to t("#{child.class.name.underscore.pluralize}.index.actions.edit"), method( :"edit_#{parent.class.name.underscore}_#{child.class.name.underscore}_path" ).(parent, child)
- %td{ :style => style }
- - if can? :destroy, child
- = link_to t("#{child.class.name.underscore.pluralize}.index.actions.destroy"), method( :"#{parent.class.name.underscore}_#{child.class.name.underscore}_path" ).(parent, child), :method => :delete
- - if child.respond_to?(:move_up?) or child and child.respond_to?(:move_down?)
+ - if can? :show, child
%td{ :style => style }
- - if can? :move_down, child and child.respond_to?(:move_down?) and child.move_down?
- = link_to '&#8681;'.html_safe, method( :"move_lower_#{parent.class.name.underscore}_#{child.class.name.underscore}_path" ).(parent, child), :method => :put
- - if can? :move_up, child and child.respond_to?(:move_up?) and child.move_up?
- = link_to '&#8679;'.html_safe, method( :"move_higher_#{parent.class.name.underscore}_#{child.class.name.underscore}_path" ).(parent, child), :method => :put
+ %a.btn.btn-mini.btn-success{:href => method( :"#{parent.class.name.underscore}_#{child.class.name.underscore}_path" ).(parent, child) }
+ %i.icon-info-sign.icon-white
+ =t("#{child.class.name.underscore.pluralize}.actions.show")
+
+ - if can? :edit, child
+ %td{ :style => style }
+ %a.btn.btn-mini.btn-warning{:href => method( :"edit_#{parent.class.name.underscore}_#{child.class.name.underscore}_path" ).(parent, child) }
+ %i.icon-edit.icon-white
+ =t("#{child.class.name.underscore.pluralize}.actions.edit")
+
+ - if can? :destroy, child
+ %td{ :style => style }
+ %a.btn.btn-mini.btn-danger{"data-confirm" => t("#{child.class.name.underscore.pluralize}.actions.confirm_detroy"), "data-method" => "delete", :href => method( :"#{parent.class.name.underscore}_#{child.class.name.underscore}_path" ).(parent, child), :rel => "nofollow"}
+ %i.icon-trash.icon-white
+ =t("#{child.class.name.underscore.pluralize}.actions.destroy")
- elsif !(defined? child).nil?
- %td{ :style => style }
- - if can? :show, child
- = link_to t("#{child.class.name.underscore.pluralize}.index.actions.show"), method( :"#{child.class.name.underscore}_path" ).(child)
- %td{ :style => style }
- - if can? :edit, child
- = link_to t("#{child.class.name.underscore.pluralize}.index.actions.edit"), method( :"edit_#{child.class.name.underscore}_path" ).(child)
- %td{ :style => style }
- - if can? :destroy, child
- = link_to t("#{child.class.name.underscore.pluralize}.index.actions.destroy"), method( :"#{child.class.name.underscore}_path" ).(child), :method => :delete
- - if child.respond_to?(:move_up?) or child and child.respond_to?(:move_down?)
+ - if can? :show, child
+ %td{ :style => style }
+ %a.btn.btn-mini.btn-success{:href => method( :"#{child.class.name.underscore}_path" ).(child) }
+ %i.icon-info-sign.icon-white
+ =t("#{child.class.name.underscore.pluralize}.actions.show")
+
+ - if can? :edit, child
+ %td{ :style => style }
+ %a.btn.btn-mini.btn-warning{:href => method( :"edit_#{child.class.name.underscore}_path" ).(child) }
+ %i.icon-edit.icon-white
+ =t("#{child.class.name.underscore.pluralize}.actions.edit")
+
+ - if can? :destroy, child
%td{ :style => style }
- - if can? :move_down, child and child.respond_to?(:move_down?) and child.move_down?
- = link_to '&#8681;'.html_safe, method( :"move_lower_#{child.class.name.underscore}_path" ).(child), :method => :put
- - if can? :move_up, child and child.respond_to?(:move_up?) and child.move_up?
- = link_to '&#8679;'.html_safe, method( :"move_higher_#{child.class.name.underscore}_path" ).(child), :method => :put
+ %a.btn.btn-mini.btn-danger{"data-confirm" => t("#{child.class.name.underscore.pluralize}.actions.confirm_detroy"), "data-method" => "delete", :href => method( :"#{child.class.name.underscore}_path" ).(child), :rel => "nofollow"}
+ %i.icon-trash.icon-white
+ =t("#{child.class.name.underscore.pluralize}.actions.destroy") \ No newline at end of file
diff --git a/app/views/shared/_show_edit_destroy_part.html.haml b/app/views/shared/_show_edit_destroy_part.html.haml
index aff18d1..e82c667 100644
--- a/app/views/shared/_show_edit_destroy_part.html.haml
+++ b/app/views/shared/_show_edit_destroy_part.html.haml
@@ -1,16 +1,20 @@
%p
- if !(defined? parent).nil? && !(defined? child).nil?
- if can? :edit, child
- = link_to t("#{child.class.name.underscore.pluralize}.show.actions.edit"), method( :"edit_#{parent.class.name.underscore}_#{child.class.name.underscore}_path" ).(parent, child)
+ %a.btn.btn-warning{:href => method( :"edit_#{parent.class.name.underscore}_#{child.class.name.underscore}_path" ).(parent, child) }
+ %i.icon-edit.icon-white
+ =t("#{child.class.name.underscore.pluralize}.actions.edit")
- if can? :destroy, child
- - if can? :edit, child
- |
- = link_to t("#{child.class.name.underscore.pluralize}.show.actions.destroy"), method( :"#{parent.class.name.underscore}_#{child.class.name.underscore}_path" ).(parent, child), :method => :delete
+ %a.btn.btn-danger{"data-confirm" => t("#{child.class.name.underscore.pluralize}.actions.confirm_detroy"), "data-method" => "delete", :href => method( :"#{parent.class.name.underscore}_#{child.class.name.underscore}_path" ).(parent, child), :rel => "nofollow"}
+ %i.icon-trash.icon-white
+ =t("#{child.class.name.underscore.pluralize}.actions.destroy")
- elsif !(defined? child).nil?
- if can? :edit, child
- = link_to t("#{child.class.name.underscore.pluralize}.show.actions.edit"), method( :"edit_#{child.class.name.underscore}_path" ).(child)
+ %a.btn.btn-warning{:href => method( :"edit_#{child.class.name.underscore}_path" ).(child) }
+ %i.icon-edit.icon-white
+ =t("#{child.class.name.underscore.pluralize}.actions.edit")
- if can? :destroy, child
- - if can? :edit, child
- |
- = link_to t("#{child.class.name.underscore.pluralize}.show.actions.destroy"), method( :"#{child.class.name.underscore}_path" ).(child), :method => :delete \ No newline at end of file
+ %a.btn.btn-danger{"data-confirm" => t("#{child.class.name.underscore.pluralize}.actions.confirm_detroy"), "data-method" => "delete", :href => method( :"#{child.class.name.underscore}_path" ).(child), :rel => "nofollow"}
+ %i.icon-trash.icon-white
+ =t("#{child.class.name.underscore.pluralize}.actions.destroy") \ No newline at end of file
diff --git a/app/views/shared/_system_message.html.haml b/app/views/shared/_system_message.html.haml
deleted file mode 100644
index 4aabb9c..0000000
--- a/app/views/shared/_system_message.html.haml
+++ /dev/null
@@ -1,10 +0,0 @@
-- if current_user
- .flash.notice#system_message_display
- .light
- .sign i
- .message#system_message This is the place to display incoming calls and other stuff.
-
- = subscribe_to "/users/#{current_user.id}/system_messages"
-
- :javascript
- $('#system_message_display').hide() \ No newline at end of file
diff --git a/app/views/sip_accounts/_index_core.html.haml b/app/views/sip_accounts/_index_core.html.haml
index 69c9302..f8dac6f 100644
--- a/app/views/sip_accounts/_index_core.html.haml
+++ b/app/views/sip_accounts/_index_core.html.haml
@@ -1,4 +1,4 @@
-%table
+%table{:class => 'table table-striped'}
%tr
%th= t('sip_accounts.index.online')
%th= t('sip_accounts.index.caller_name')
diff --git a/app/views/sip_accounts/edit.html.haml b/app/views/sip_accounts/edit.html.haml
index c070ff7..d26b245 100644
--- a/app/views/sip_accounts/edit.html.haml
+++ b/app/views/sip_accounts/edit.html.haml
@@ -1,3 +1,3 @@
-- title t("sip_accounts.edit.page_title")
+- content_for :title, t("sip_accounts.edit.page_title")
= render "form"
diff --git a/app/views/sip_accounts/index.html.haml b/app/views/sip_accounts/index.html.haml
index 1131770..fbdba48 100644
--- a/app/views/sip_accounts/index.html.haml
+++ b/app/views/sip_accounts/index.html.haml
@@ -1,4 +1,4 @@
-- title t("sip_accounts.index.page_title")
+- content_for :title, t("sip_accounts.index.page_title")
- if @sip_accounts.count > 0
= render "index_core", :sip_accounts => @sip_accounts
diff --git a/app/views/sip_accounts/new.html.haml b/app/views/sip_accounts/new.html.haml
index 9d44680..bc4e00b 100644
--- a/app/views/sip_accounts/new.html.haml
+++ b/app/views/sip_accounts/new.html.haml
@@ -1,3 +1,3 @@
-- title t("sip_accounts.new.page_title")
+- content_for :title, t("sip_accounts.new.page_title")
= render "form"
diff --git a/app/views/sip_accounts/show.html.haml b/app/views/sip_accounts/show.html.haml
index c6344cd..4f6244f 100644
--- a/app/views/sip_accounts/show.html.haml
+++ b/app/views/sip_accounts/show.html.haml
@@ -1,4 +1,4 @@
-- title t("sip_accounts.show.page_title")
+- content_for :title, t("sip_accounts.show.page_title")
%p
%strong= t('sip_accounts.show.auth_name') + ":"
diff --git a/app/views/sip_domains/_index_core.html.haml b/app/views/sip_domains/_index_core.html.haml
index 37374f2..873ffc0 100644
--- a/app/views/sip_domains/_index_core.html.haml
+++ b/app/views/sip_domains/_index_core.html.haml
@@ -1,4 +1,4 @@
-%table
+%table{:class => 'table table-striped'}
%tr
%th= t('sip_domains.index.host')
%th= t('sip_domains.index.realm')
diff --git a/app/views/sip_domains/edit.html.haml b/app/views/sip_domains/edit.html.haml
index dcf8d6b..adf77ef 100644
--- a/app/views/sip_domains/edit.html.haml
+++ b/app/views/sip_domains/edit.html.haml
@@ -1,3 +1,3 @@
-- title t("sip_domains.edit.page_title")
+- content_for :title, t("sip_domains.edit.page_title")
= render "form"
diff --git a/app/views/sip_domains/index.html.haml b/app/views/sip_domains/index.html.haml
index 6de7f42..3eb0c28 100644
--- a/app/views/sip_domains/index.html.haml
+++ b/app/views/sip_domains/index.html.haml
@@ -1,4 +1,4 @@
-- title t("sip_domains.index.page_title")
+- content_for :title, t("sip_domains.index.page_title")
- if @sip_domains.count > 0
= render "index_core", :sip_domains => @sip_domains
diff --git a/app/views/sip_domains/new.html.haml b/app/views/sip_domains/new.html.haml
index 12ff340..863e680 100644
--- a/app/views/sip_domains/new.html.haml
+++ b/app/views/sip_domains/new.html.haml
@@ -1,3 +1,3 @@
-- title t("sip_domains.new.page_title")
+- content_for :title, t("sip_domains.new.page_title")
= render "form"
diff --git a/app/views/sip_domains/show.html.haml b/app/views/sip_domains/show.html.haml
index e136eaf..b7b74cd 100644
--- a/app/views/sip_domains/show.html.haml
+++ b/app/views/sip_domains/show.html.haml
@@ -1,4 +1,4 @@
-- title t("sip_domains.show.page_title")
+- content_for :title, t("sip_domains.show.page_title")
%p
%strong= t('sip_domains.show.host') + ":"
diff --git a/app/views/softkeys/_index_core.html.haml b/app/views/softkeys/_index_core.html.haml
index fd3dca8..ba79d22 100644
--- a/app/views/softkeys/_index_core.html.haml
+++ b/app/views/softkeys/_index_core.html.haml
@@ -1,4 +1,4 @@
-%table
+%table{:class => 'table table-striped'}
%tr
%th= t('softkeys.index.function')
%th= t('softkeys.index.number')
diff --git a/app/views/softkeys/edit.html.haml b/app/views/softkeys/edit.html.haml
index 54d53fc..ce45176 100644
--- a/app/views/softkeys/edit.html.haml
+++ b/app/views/softkeys/edit.html.haml
@@ -1,3 +1,3 @@
-- title t("softkeys.edit.page_title")
+- content_for :title, t("softkeys.edit.page_title")
= render "form" \ No newline at end of file
diff --git a/app/views/softkeys/index.html.haml b/app/views/softkeys/index.html.haml
index 8bdc00e..d0b68a9 100644
--- a/app/views/softkeys/index.html.haml
+++ b/app/views/softkeys/index.html.haml
@@ -1,4 +1,4 @@
-- title t("softkeys.index.page_title")
+- content_for :title, t("softkeys.index.page_title")
- if @softkeys.count > 0
= render "index_core", :softkeys => @softkeys
diff --git a/app/views/softkeys/new.html.haml b/app/views/softkeys/new.html.haml
index 593add6..9199a5c 100644
--- a/app/views/softkeys/new.html.haml
+++ b/app/views/softkeys/new.html.haml
@@ -1,3 +1,3 @@
-- title t("softkeys.new.page_title")
+- content_for :title, t("softkeys.new.page_title")
= render "form"
diff --git a/app/views/softkeys/show.html.haml b/app/views/softkeys/show.html.haml
index 9ab4333..d0db111 100644
--- a/app/views/softkeys/show.html.haml
+++ b/app/views/softkeys/show.html.haml
@@ -1,4 +1,4 @@
-- title t("softkeys.show.page_title")
+- content_for :title, t("softkeys.show.page_title")
%p
%strong= t('softkeys.show.function') + ":"
diff --git a/app/views/system_messages/_index_core.html.haml b/app/views/system_messages/_index_core.html.haml
index 157d964..7c4485f 100644
--- a/app/views/system_messages/_index_core.html.haml
+++ b/app/views/system_messages/_index_core.html.haml
@@ -1,4 +1,4 @@
-%table
+%table{:class => 'table table-striped'}
%tr
%th= t('system_messages.index.created_at')
%th= t('system_messages.index.content')
diff --git a/app/views/system_messages/index.html.haml b/app/views/system_messages/index.html.haml
index da77e18..ffd3fc3 100644
--- a/app/views/system_messages/index.html.haml
+++ b/app/views/system_messages/index.html.haml
@@ -1,3 +1,3 @@
-- title t("system_messages.index.page_title")
+- content_for :title, t("system_messages.index.page_title")
= render "index_core", :system_messages => @system_messages \ No newline at end of file
diff --git a/app/views/system_messages/new.html.haml b/app/views/system_messages/new.html.haml
index 3afdb24..565f5c5 100644
--- a/app/views/system_messages/new.html.haml
+++ b/app/views/system_messages/new.html.haml
@@ -1,3 +1,3 @@
-- title t("system_messages.new.page_title")
+- content_for :title, t("system_messages.new.page_title")
= render "form"
diff --git a/app/views/system_messages/show.html.haml b/app/views/system_messages/show.html.haml
index 694e4c1..70be6f2 100644
--- a/app/views/system_messages/show.html.haml
+++ b/app/views/system_messages/show.html.haml
@@ -1,4 +1,4 @@
-- title t("system_messages.show.page_title")
+- content_for :title, t("system_messages.show.page_title")
%p
%strong= t('system_messages.show.created_at') + ":"
diff --git a/app/views/tenants/_gs_parameter_table.html.haml b/app/views/tenants/_gs_parameter_table.html.haml
index 94c44e5..407f6e3 100644
--- a/app/views/tenants/_gs_parameter_table.html.haml
+++ b/app/views/tenants/_gs_parameter_table.html.haml
@@ -1,6 +1,6 @@
- cache(['gs_parameters_tenant_overview_table', I18n.locale, tenant, GuiFunction.count, GuiFunction.reorder(:updated_at).last, GsParameter.count, GsParameter.reorder(:updated_at).last]) do
- %table
- %tr{:class => 'even'}
+ %table{:class => 'table table-striped'}
+ %tr
%th
Funktion
%th
@@ -8,14 +8,14 @@
%th
Letztes Update
- %tr{:class => 'odd'}
+ %tr
%td
= t("gui_functions.name")
%td
= link_to GuiFunction.count.to_s, gui_functions_path
%td
= l GuiFunction.reorder(:updated_at).last.updated_at, :format => :short
- %tr{:class => 'even'}
+ %tr
%td
= t("gs_parameters.name")
%td
diff --git a/app/views/tenants/_index_core.html.haml b/app/views/tenants/_index_core.html.haml
index 60afeee..59d7e6d 100644
--- a/app/views/tenants/_index_core.html.haml
+++ b/app/views/tenants/_index_core.html.haml
@@ -1,4 +1,4 @@
-%table
+%table{:class => 'table table-striped'}
%tr
%th= t('tenants.index.name')
%th= t('tenants.index.description')
diff --git a/app/views/tenants/_sip_accounts_and_phones.html.haml b/app/views/tenants/_sip_accounts_and_phones.html.haml
index 4b84b1c..bcc2dd6 100644
--- a/app/views/tenants/_sip_accounts_and_phones.html.haml
+++ b/app/views/tenants/_sip_accounts_and_phones.html.haml
@@ -1,12 +1,12 @@
-%table
- %tr{:class => 'even'}
+%table{:class => 'table table-striped'}
+ %tr
%th
%th= t("sip_accounts.index.page_title")
%th= t("phones.index.page_title")
- cache(['tenant_show_admin_area_sip_accounts_and_phones_row', I18n.locale, @tenant, @tenant.sip_accounts.count, @tenant.sip_accounts.reorder(:updated_at).last, @tenant.phones.count, @tenant.phones.reorder(:updated_at).last]) do
- %tr{:class => 'odd'}
+ %tr
%td= tenant
- cache(['tenant_show_admin_area_sip_accounts_table_cell', I18n.locale, @tenant, @tenant.sip_accounts.count, @tenant.sip_accounts.reorder(:updated_at).last]) do
%td
@@ -33,7 +33,7 @@
= link_to "#{phone.phone_model.to_s} (#{phone.pretty_mac_address})#{(phone.ip_address.blank? ? '' : " - #{phone.ip_address}")}", tenant_phone_path(tenant, phone)
= render :partial => 'shared/create_link', :locals => {:parent => tenant, :child_class => Phone}
- %tr{:class => 'even'}
+ %tr
%td= t("users.index.page_title")
%td
- if tenant.users_sip_accounts.any?
diff --git a/app/views/tenants/_table_of_functions.html.haml b/app/views/tenants/_table_of_functions.html.haml
index 957687b..271bf1e 100644
--- a/app/views/tenants/_table_of_functions.html.haml
+++ b/app/views/tenants/_table_of_functions.html.haml
@@ -1,13 +1,13 @@
- cache(['table_of_pbx_features', I18n.locale, tenant, tenant.callthroughs.count, tenant.callthroughs.reorder(:updated_at).last, tenant.conferences.count, tenant.conferences.reorder(:updated_at).last, tenant.hunt_groups.count, tenant.hunt_groups.reorder(:updated_at).last, tenant.automatic_call_distributors.count, tenant.automatic_call_distributors.reorder(:updated_at).last]) do
- %table
- %tr{:class => 'even'}
+ %table{:class => 'table table-striped'}
+ %tr
%th
Funktion
%th
Anzahl
%th
- cache(['table_of_pbx_features_callthroughs_row', I18n.locale, tenant, tenant.callthroughs.count, tenant.callthroughs.reorder(:updated_at).last]) do
- %tr{:class => 'odd'}
+ %tr
%td
= t("callthroughs.name")
%td
@@ -18,7 +18,7 @@
%td
= render :partial => 'shared/create_link', :locals => {:parent => tenant, :child_class => Callthrough}
- cache(['table_of_pbx_features_conferences_row', I18n.locale, tenant, tenant.conferences.count, tenant.conferences.reorder(:updated_at).last]) do
- %tr{:class => 'even'}
+ %tr
%td
= t("conferences.name")
%td
@@ -29,7 +29,7 @@
%td
= render :partial => 'shared/create_link', :locals => {:parent => tenant, :child_class => Conference}
- cache(['table_of_pbx_features_hunt_groups_row', I18n.locale, tenant, tenant.hunt_groups.count, tenant.hunt_groups.reorder(:updated_at).last]) do
- %tr{:class => 'odd'}
+ %tr
%td
= t("hunt_groups.name")
%td
@@ -40,7 +40,7 @@
%td
= render :partial => 'shared/create_link', :locals => {:parent => tenant, :child_class => HuntGroup}
- cache(['table_of_pbx_features_automatic_call_distributors_row', I18n.locale, tenant, tenant.automatic_call_distributors.count, tenant.automatic_call_distributors.reorder(:updated_at).last]) do
- %tr{:class => 'even'}
+ %tr
%td
= t("automatic_call_distributors.name")
%td
diff --git a/app/views/tenants/edit.html.haml b/app/views/tenants/edit.html.haml
index 159f4fd..d2e837d 100644
--- a/app/views/tenants/edit.html.haml
+++ b/app/views/tenants/edit.html.haml
@@ -1,3 +1,3 @@
-- title t("tenants.edit.page_title", :resource => @tenant )
+- content_for :title, t("tenants.edit.page_title", :resource => @tenant )
= render "form"
diff --git a/app/views/tenants/index.html.haml b/app/views/tenants/index.html.haml
index 1783825..9404f17 100644
--- a/app/views/tenants/index.html.haml
+++ b/app/views/tenants/index.html.haml
@@ -1,4 +1,4 @@
-- title t("tenants.index.page_title")
+- content_for :title, t("tenants.index.page_title")
- if @tenants.count > 0
= render "index_core", :tenants => @tenants
diff --git a/app/views/tenants/new.html.haml b/app/views/tenants/new.html.haml
index dca3809..d57ae36 100644
--- a/app/views/tenants/new.html.haml
+++ b/app/views/tenants/new.html.haml
@@ -1,3 +1,3 @@
-- title t("tenants.new.page_title")
+- content_for :title, t("tenants.new.page_title")
= render "form"
diff --git a/app/views/tenants/show.html.haml b/app/views/tenants/show.html.haml
index 9b9d4ec..53d3307 100644
--- a/app/views/tenants/show.html.haml
+++ b/app/views/tenants/show.html.haml
@@ -1,4 +1,4 @@
-- title @tenant.name
+- content_for :title, @tenant.name
- if !@tenant.description.blank?
%p
diff --git a/app/views/user_group_memberships/_index_core.html.haml b/app/views/user_group_memberships/_index_core.html.haml
index 3c3cebe..801532a 100644
--- a/app/views/user_group_memberships/_index_core.html.haml
+++ b/app/views/user_group_memberships/_index_core.html.haml
@@ -1,4 +1,4 @@
-%table
+%table{:class => 'table table-striped'}
%tr
%th= t('user_group_memberships.index.tenant')
%th= t('user_group_memberships.index.user_group')
diff --git a/app/views/user_group_memberships/edit.html.haml b/app/views/user_group_memberships/edit.html.haml
index 2080c87..118aacd 100644
--- a/app/views/user_group_memberships/edit.html.haml
+++ b/app/views/user_group_memberships/edit.html.haml
@@ -1,3 +1,3 @@
-- title t("user_group_memberships.edit.page_title", :resource => @user_group_membership)
+- content_for :title, t("user_group_memberships.edit.page_title", :resource => @user_group_membership)
= render "form"
diff --git a/app/views/user_group_memberships/index.html.haml b/app/views/user_group_memberships/index.html.haml
index 1d7927b..b12e682 100644
--- a/app/views/user_group_memberships/index.html.haml
+++ b/app/views/user_group_memberships/index.html.haml
@@ -1,4 +1,4 @@
-- title t("user_group_memberships.index.page_title")
+- content_for :title, t("user_group_memberships.index.page_title")
- if @user_group_memberships.count > 0
= render "index_core", :user_group_memberships => @user_group_memberships
diff --git a/app/views/user_group_memberships/new.html.haml b/app/views/user_group_memberships/new.html.haml
index 9d59fdd..8901058 100644
--- a/app/views/user_group_memberships/new.html.haml
+++ b/app/views/user_group_memberships/new.html.haml
@@ -1,3 +1,3 @@
-- title t("user_group_memberships.new.page_title")
+- content_for :title, t("user_group_memberships.new.page_title")
= render "form"
diff --git a/app/views/user_group_memberships/show.html.haml b/app/views/user_group_memberships/show.html.haml
index 0e5cfab..418a266 100644
--- a/app/views/user_group_memberships/show.html.haml
+++ b/app/views/user_group_memberships/show.html.haml
@@ -1,4 +1,4 @@
-- title t("user_group_memberships.show.page_title")
+- content_for :title, t("user_group_memberships.show.page_title")
%p
%strong= t('user_group_memberships.show.user') + ":"
diff --git a/app/views/user_groups/_index_core.html.haml b/app/views/user_groups/_index_core.html.haml
index 481a507..a12cf96 100644
--- a/app/views/user_groups/_index_core.html.haml
+++ b/app/views/user_groups/_index_core.html.haml
@@ -1,5 +1,5 @@
- cache(['user_groups_table', I18n.locale, current_user, @user, user_groups, User.order(:updated_at).last, User.count, UserGroupMembership.count, GsParameter.get('NUMBER_OF_SHOWN_ITEMS')]) do
- %table
+ %table{:class => 'table table-striped'}
%tr
%th= t('user_groups.index.name')
- if user_groups.pluck(:description).uniq != [nil]
diff --git a/app/views/user_groups/edit.html.haml b/app/views/user_groups/edit.html.haml
index 35514e0..4d263a4 100644
--- a/app/views/user_groups/edit.html.haml
+++ b/app/views/user_groups/edit.html.haml
@@ -1,3 +1,3 @@
-- title t("user_groups.edit.page_title", :resource => @user_group)
+- content_for :title, t("user_groups.edit.page_title", :resource => @user_group)
= render "form"
diff --git a/app/views/user_groups/index.html.haml b/app/views/user_groups/index.html.haml
index 545b838..7240f5f 100644
--- a/app/views/user_groups/index.html.haml
+++ b/app/views/user_groups/index.html.haml
@@ -1,4 +1,4 @@
-- title t("user_groups.index.page_title")
+- content_for :title, t("user_groups.index.page_title")
- if @user_groups.count > 0
= render "index_core", :user_groups => @user_groups
diff --git a/app/views/user_groups/new.html.haml b/app/views/user_groups/new.html.haml
index dfef18e..3c5920f 100644
--- a/app/views/user_groups/new.html.haml
+++ b/app/views/user_groups/new.html.haml
@@ -1,3 +1,3 @@
-- title t("user_groups.new.page_title")
+- content_for :title, t("user_groups.new.page_title")
= render "form"
diff --git a/app/views/user_groups/show.html.haml b/app/views/user_groups/show.html.haml
index 00bdeb7..fe5b745 100644
--- a/app/views/user_groups/show.html.haml
+++ b/app/views/user_groups/show.html.haml
@@ -1,4 +1,4 @@
-- title t("user_groups.show.page_title")
+- content_for :title, t("user_groups.show.page_title")
%p
%strong= t('user_groups.show.name') + ":"
diff --git a/app/views/users/_index_core.html.haml b/app/views/users/_index_core.html.haml
index 5f0cb41..b364bd2 100644
--- a/app/views/users/_index_core.html.haml
+++ b/app/views/users/_index_core.html.haml
@@ -1,5 +1,5 @@
- cache(['user_table_row_inner_td', I18n.locale, current_user, users.reorder(:updated_at).last, users.count, GsParameter.get('NUMBER_OF_SHOWN_ITEMS')]) do
- %table
+ %table{:class => 'table table-striped'}
%tr
%th
%th= t('users.index.user_name')
diff --git a/app/views/users/edit.html.haml b/app/views/users/edit.html.haml
index 96272f5..ed79b2c 100644
--- a/app/views/users/edit.html.haml
+++ b/app/views/users/edit.html.haml
@@ -1,3 +1,3 @@
-- title t("users.edit.page_title", :resource => @user)
+- content_for :title, t("users.edit.page_title", :resource => @user)
= render "form"
diff --git a/app/views/users/index.html.haml b/app/views/users/index.html.haml
index 892e035..8a3d1fc 100644
--- a/app/views/users/index.html.haml
+++ b/app/views/users/index.html.haml
@@ -1,4 +1,4 @@
-- title t("users.index.page_title")
+- content_for :title, t("users.index.page_title")
- if @users.count > 0
= render "index_core", :users => @users
diff --git a/app/views/users/new.html.haml b/app/views/users/new.html.haml
index a014611..64fe55f 100644
--- a/app/views/users/new.html.haml
+++ b/app/views/users/new.html.haml
@@ -1,3 +1,3 @@
-- title t("users.new.page_title")
+- content_for :title, t("users.new.page_title")
= render "form"
diff --git a/app/views/users/show.html.haml b/app/views/users/show.html.haml
index 9a0ae02..75eaf54 100644
--- a/app/views/users/show.html.haml
+++ b/app/views/users/show.html.haml
@@ -1,7 +1,7 @@
-- title "User: #{@user}"
+- content_for :title, "User: #{@user}"
-#user-show
- %aside
+.row
+ .span3
- cache(['user_show_aside', I18n.locale, @user, @user.sip_accounts, @user.conferences]) do
= image_tag @user.image_url(:small).to_s, class: 'display' if @user.image? && @user.image_url(:small)
%p
@@ -40,7 +40,7 @@
=link_to conference, edit_user_conference_path(@user, conference)
- %section
+ .span9
= render :partial => 'phone_books', :locals => {:user => @user, :phone_books => @phone_books}
- if current_user.user_groups.where(:name => 'Admins').any?
diff --git a/app/views/voicemail_messages/_index_core.html.haml b/app/views/voicemail_messages/_index_core.html.haml
index b8e47af..3f7680c 100644
--- a/app/views/voicemail_messages/_index_core.html.haml
+++ b/app/views/voicemail_messages/_index_core.html.haml
@@ -1,7 +1,7 @@
= form_tag(destroy_multiple_sip_account_voicemail_messages_path(@sip_account), :method => :delete, :id => 'voicemail_message_form') do
%header.entries-nav= render :partial => "voicemail_messages/navigation"
.content
- %table
+ %table{:class => 'table table-striped'}
- reset_cycle
- for voicemail_message in voicemail_messages
%tr.voicemail-messages-entry{:class => cycle('odd', 'even'), :id => "message_#{voicemail_message.uuid}"}
diff --git a/app/views/voicemail_messages/index.html.haml b/app/views/voicemail_messages/index.html.haml
index 53f8090..53ff745 100644
--- a/app/views/voicemail_messages/index.html.haml
+++ b/app/views/voicemail_messages/index.html.haml
@@ -1,6 +1,6 @@
- if @type
- - title t("voicemail_messages.index.page_title_#{@type}")
+ - content_for :title, t("voicemail_messages.index.page_title_#{@type}")
- else
- - title t("voicemail_messages.index.page_title")
+ - content_for :title, t("voicemail_messages.index.page_title")
= render "index_core", :voicemail_messages => @voicemail_messages
diff --git a/app/views/voicemail_settings/edit.html.haml b/app/views/voicemail_settings/edit.html.haml
index 6bd7031..56e5765 100644
--- a/app/views/voicemail_settings/edit.html.haml
+++ b/app/views/voicemail_settings/edit.html.haml
@@ -1,3 +1,3 @@
-- title t("voicemail_settings.edit.page_title")
+- content_for :title, t("voicemail_settings.edit.page_title")
= render "form"
diff --git a/app/views/voicemail_settings/show.html.haml b/app/views/voicemail_settings/show.html.haml
index 30e12d0..e156d7b 100644
--- a/app/views/voicemail_settings/show.html.haml
+++ b/app/views/voicemail_settings/show.html.haml
@@ -1,4 +1,4 @@
-- title t("voicemail_settings.show.page_title")
+- content_for :title, t("voicemail_settings.show.page_title")
%p
%strong= t('voicemail_settings.show.greeting_path') + ":"
diff --git a/app/views/whitelists/_index_core.html.haml b/app/views/whitelists/_index_core.html.haml
index b4c5b0c..998a681 100644
--- a/app/views/whitelists/_index_core.html.haml
+++ b/app/views/whitelists/_index_core.html.haml
@@ -1,4 +1,4 @@
-%table
+%table{:class => 'table table-striped'}
%tr
%th= t('whitelists.index.name')
%th= t('whitelists.index.phone_numbers')
diff --git a/app/views/whitelists/edit.html.haml b/app/views/whitelists/edit.html.haml
index 9f8af90..9adcc58 100644
--- a/app/views/whitelists/edit.html.haml
+++ b/app/views/whitelists/edit.html.haml
@@ -1,3 +1,3 @@
-- title t("whitelists.edit.page_title")
+- content_for :title, t("whitelists.edit.page_title")
= render "form"
diff --git a/app/views/whitelists/index.html.haml b/app/views/whitelists/index.html.haml
index 0873189..52ab453 100644
--- a/app/views/whitelists/index.html.haml
+++ b/app/views/whitelists/index.html.haml
@@ -1,4 +1,4 @@
-- title t("whitelists.index.page_title")
+- content_for :title, t("whitelists.index.page_title")
- if @whitelists.count > 0
= render "index_core", :whitelists => @whitelists
diff --git a/app/views/whitelists/new.html.haml b/app/views/whitelists/new.html.haml
index f1101ad..7086cfd 100644
--- a/app/views/whitelists/new.html.haml
+++ b/app/views/whitelists/new.html.haml
@@ -1,3 +1,3 @@
-- title t("whitelists.new.page_title")
+- content_for :title, t("whitelists.new.page_title")
= render "form"
diff --git a/app/views/whitelists/show.html.haml b/app/views/whitelists/show.html.haml
index 77652f9..054afc5 100644
--- a/app/views/whitelists/show.html.haml
+++ b/app/views/whitelists/show.html.haml
@@ -1,4 +1,4 @@
-- title t("whitelists.show.page_title")
+- content_for :title, t("whitelists.show.page_title")
%p
%strong= t('whitelists.show.name') + ":"