Implement caching on admin event view
Resolves https://github.com/openSUSE/osem/issues/1985
This commit is contained in:
parent
a2ed9c0074
commit
31a3cb18b7
1 changed files with 124 additions and 122 deletions
|
|
@ -1,3 +1,4 @@
|
||||||
|
- cache ['admin/event', @conference, @program, @event] do
|
||||||
.row
|
.row
|
||||||
.col-md-12
|
.col-md-12
|
||||||
%h3
|
%h3
|
||||||
|
|
@ -117,6 +118,7 @@
|
||||||
votes: @votes,
|
votes: @votes,
|
||||||
conference_id: @conference.short_title
|
conference_id: @conference.short_title
|
||||||
|
|
||||||
|
- cache [@conference, @event, @comments] do
|
||||||
.row
|
.row
|
||||||
= link_to "Comments (#{@comment_count})", '#', id: 'event-comment-link'
|
= link_to "Comments (#{@comment_count})", '#', id: 'event-comment-link'
|
||||||
#comments-div
|
#comments-div
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue