Add link to download summary in XLSX format again

It was removed in commit 128a8164 alongside everything related to the
legislation process summary.

Co-Authored-By: taitus <sebastia.roig@gmail.com>
This commit is contained in:
Javi Martín
2020-08-25 16:38:30 +02:00
parent 14df74fed7
commit b2b64ca8a0
10 changed files with 100 additions and 0 deletions

View File

@@ -101,6 +101,11 @@ class Legislation::ProcessesController < Legislation::BaseController
@phase = :summary
@proposals = @process.proposals.selected
@comments = @process.draft_versions.published.last&.best_comments || Comment.none
respond_to do |format|
format.html
format.xlsx { render xlsx: "summary", filename: "summary-#{Date.current}.xlsx" }
end
end
def proposals