Show More
Commit Description:
wip
Commit Description:
wip
References:
File last commit:
Show/Diff file:
Action:
app/views/main/_announcement.html.haml
| 27 lines
| 1.0 KiB
| text/x-haml
| HamlLexer
|
r870 | %li.list-group-item | |||
r868 | .card-title | |||
r870 | %h1 | |||
= announcement.title | ||||
- if @current_user and @current_user.admin? | ||||
= link_to 'Edit', edit_announcement_path(announcement), class: 'btn btn-sm btn-outline-secondary' | ||||
r868 | .card-subtitle | |||
= "(updated #{time_ago_in_words(announcement.updated_at)} ago on #{announcement.updated_at})" | ||||
.card-text | ||||
= markdown(announcement.body) | ||||
r567 | ||||
r868 | -# | |||
%li.list-group-item | ||||
%strong | ||||
- 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) | ||||
|
r192 | :javascript | ||
r868 | 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'}); | ||||