Show More
Commit Description:
fix various bug...
Commit Description:
fix various bug (grafted from cb6577a84dff16a5d7ba91166873cc8a2e2a2628)
File last commit:
Show/Diff file:
Action:
app/views/main/_announcement.html.haml | 15 lines | 634 B | text/x-haml | HamlLexer |
%li.list-group-item
%strong
= announcement.title
- if @current_user and @current_user.admin?
= link_to 'Edit', edit_announcement_path(announcement), class: 'btn btn-xs btn-default'
%small= "(updated #{time_ago_in_words(announcement.updated_at)} ago on #{announcement.updated_at})"
%br
= markdown(announcement.body)
: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'});