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,4 +1,5 @@
|
||||||
.row
|
- cache ['admin/event', @conference, @program, @event] do
|
||||||
|
.row
|
||||||
.col-md-12
|
.col-md-12
|
||||||
%h3
|
%h3
|
||||||
= @event.title
|
= @event.title
|
||||||
|
|
@ -9,7 +10,7 @@
|
||||||
= link_to 'Registrations', registrations_admin_conference_program_event_path(@conference.short_title, @event), class: 'btn btn-success'
|
= link_to 'Registrations', registrations_admin_conference_program_event_path(@conference.short_title, @event), class: 'btn btn-success'
|
||||||
= link_to 'Edit', edit_admin_conference_program_event_path(@conference.short_title, @event), class: 'btn btn-mini btn-primary'
|
= link_to 'Edit', edit_admin_conference_program_event_path(@conference.short_title, @event), class: 'btn btn-mini btn-primary'
|
||||||
|
|
||||||
.row
|
.row
|
||||||
.col-md-12
|
.col-md-12
|
||||||
%table.table
|
%table.table
|
||||||
%tr
|
%tr
|
||||||
|
|
@ -117,7 +118,8 @@
|
||||||
votes: @votes,
|
votes: @votes,
|
||||||
conference_id: @conference.short_title
|
conference_id: @conference.short_title
|
||||||
|
|
||||||
.row
|
- cache [@conference, @event, @comments] do
|
||||||
|
.row
|
||||||
= link_to "Comments (#{@comment_count})", '#', id: 'event-comment-link'
|
= link_to "Comments (#{@comment_count})", '#', id: 'event-comment-link'
|
||||||
#comments-div
|
#comments-div
|
||||||
%hr
|
%hr
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue