diff options
author | 2012-07-29 03:23:17 -0400 | |
---|---|---|
committer | 2012-07-29 03:23:17 -0400 | |
commit | 62dac858807da8fb62ce55adbed84cfe582367b2 (patch) | |
tree | ca84c8b1eac3a35c576e9ff7117b53c1ffd5c2e0 /templates/sidebar.hamlet | |
parent | e96107caf3745d658a36e0ad7716dd07a57657a2 (diff) |
update the sidebar by long polling
Needs to use a different NotificationBroadcaster, and not replace the
whole sidebar div, but instead add in new content. However, it's 3:30 am.
Diffstat (limited to 'templates/sidebar.hamlet')
-rw-r--r-- | templates/sidebar.hamlet | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/templates/sidebar.hamlet b/templates/sidebar.hamlet new file mode 100644 index 000000000..3b5048151 --- /dev/null +++ b/templates/sidebar.hamlet @@ -0,0 +1,18 @@ +<div .span3 ##{ident}> + <div .sidebar-nav> + $maybe msg <- mmsg + <div .alert .alert-info> + <a .close data-dismiss="alert" href="#">×</a> + #{msg} + <div .alert .alert-info> + <a .close data-dismiss="alert" href="#">×</a> + <b>This is just a demo.</b> If this were not just a demo, + I'd not be filling this sidebar with silly alerts. + <div .alert .alert-success> + <a .close data-dismiss="alert" href="#">×</a> + <b>Well done!</b> + You successfully read this important alert message. + <div .alert .alert-error> + <a .close data-dismiss="alert" href="#">×</a> + <b>Whoops!</b> + Unable to connect to blah blah.. #{date} |