Skip to content

Commit

Permalink
Enabling realtime updates
Browse files Browse the repository at this point in the history
  • Loading branch information
cwest committed Jul 30, 2010
1 parent d74f2ff commit 231b199
Showing 1 changed file with 41 additions and 60 deletions.
101 changes: 41 additions & 60 deletions app/views/dashboard/index.html.haml
Expand Up @@ -6,70 +6,51 @@
:javascript
$.extend(true, {
fluxx: {
dashboard: {
'default': {
name: 'Default',
'type': 'dashboard',
data: {
cards: [
config: {
icon_path: '/fluxx_engine/theme/default/images/icons',
realtime_updates: {
enabled: true,
options: {
url: '/realtime_updates'
}
},
dock: {
quicklinks: [
[
{
label: 'New Org',
url: '#{new_organization_path}',
className: 'new-detail',
type: 'green small'
},
{
label: 'New User',
url: '#{new_user_path}',
className: 'new-detail',
type: 'green small'
},
{
label: 'New Deal',
url: '#{new_deal_path}',
className: 'new-detail',
type: 'green small'
}
],
[
{
title: 'First',
listing: {url: '/foo'}
label: 'PLUS',
url: '#',
className: 'noop',
type: 'plus small',
popup: [
'#{link_to 'Org', organizations_path, :class => 'new-listing'}',
'#{link_to 'User', users_path, :class => 'new-listing'}',
'#{link_to 'Deal', deals_path, :class => 'new-listing'}'
],
}
]
}
],
},
store: {
'type': 'server',
config: {
index: '/resource/index?type=dashboard',
get: '/resource/show?type=dashboard', // Assume id=$id always appended
get: '/resource/update?type=dashboard' // Assume id=$id always appended
}
}
},

config: {
icon_path: '/fluxx_engine/theme/default/images/icons',
dock: {
quicklinks: [
[
{
label: 'New Org',
url: '#{new_organization_path}',
className: 'new-detail',
type: 'green small'
},
{
label: 'New User',
url: '#{new_user_path}',
className: 'new-detail',
type: 'green small'
},
{
label: 'New Deal',
url: '#{new_deal_path}',
className: 'new-detail',
type: 'green small'
}
],
[
{
label: 'PLUS',
url: '#',
className: 'noop',
type: 'plus small',
popup: [
'#{link_to 'Org', organizations_path, :class => 'new-listing'}',
'#{link_to 'User', users_path, :class => 'new-listing'}',
'#{link_to 'Deal', deals_path, :class => 'new-listing'}'
],
}
]
],
},
cards: [
]
}
}
});
Expand Down

0 comments on commit 231b199

Please sign in to comment.