Show More
Commit Description:
logical merge
Commit Description:
logical merge
References:
File last commit:
Show/Diff file:
Action:
app/views/main/_announcement.html.haml
| 19 lines
| 1.0 KiB
| text/x-haml
| HamlLexer
|
|
r193 | .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}" | ||||
|
r192 | :javascript | ||
|
r193 | 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'}); | ||||