Implement caching on admin event view

Resolves https://github.com/openSUSE/osem/issues/1985
This commit is contained in:
James Mason 2018-02-23 00:06:10 -08:00
parent a2ed9c0074
commit 31a3cb18b7

View file

@ -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