Show More
Commit Description:
use ace editor for submission viewing
Commit Description:
use ace editor for submission viewing
File last commit:
Show/Diff file:
Action:
app/views/main/_announcement.html.haml | 19 lines | 1.0 KiB | text/x-haml | HamlLexer |
.announcement{:id => "announcement-#{announcement.id}", :style => "#{'display: none; opacity: 0' if (defined? announcement_effect) and announcement_effect }"}
%div
.announcement-title
-# .toggles
-# %a{:href => '#', :onclick => "$(\"announcement-body-#{announcement.id}\").blindUp({duration: 0.2}); return false;"}
-# [hide]
-# %a{:href => '#', :onclick => "$(\"announcement-body-#{announcement.id}\").blindDown({duration: 0.2}); return false;"}
-# [show]
= announcement.title
.announcement-body{:id => "announcement-body-#{announcement.id}"}
= markdown(announcement.body)
-#.pub-info
-# %p= "#{announcement.author}, #{announcement.created_at}"
:javascript
Announcement.updateRecentId(#{announcement.id});
- if (defined? announcement_effect) and announcement_effect
:javascript
$("announcement-#{announcement.id}").blindDown({duration: 0.2});
$("announcement-#{announcement.id}").appear({duration: 0.5, queue: 'end'});