diff --git a/config/strings.yaml b/config/strings.yaml index 488c5d55..a3b219be 100644 --- a/config/strings.yaml +++ b/config/strings.yaml @@ -22,7 +22,6 @@ landing: label: Useful Docs style: docs - # partials/footer footer: helpText: Questions? Contact your organization's administrators. @@ -65,7 +64,7 @@ playlist: heading: !!js/function (title) => `${title} Playlist` nav: previous: < - next: '>' + next: ">" # errors error: @@ -81,8 +80,10 @@ error: title: Server Error heading: Uh oh, that's a 500. message: Perhaps try to search for something else instead? + sizeLimitNote: + message: "The document is too large to display in Library. We are working on a fix, but in the meantime, you can view the document directly in Google Drive." + viewButton: "View the document directly in Google Drive" # warning messages warning: duplicate: !!js/function (names, folderId) => `Multiple resources in this folder share the same name: ${names.join(', ')}. Only one will be accesible through Library.` - diff --git a/layouts/errors/500.ejs b/layouts/errors/500.ejs index 9985801f..f38d14b9 100644 --- a/layouts/errors/500.ejs +++ b/layouts/errors/500.ejs @@ -1,19 +1,32 @@ - <%- include('partials/head', {title: template('error.500.title'), formatUrl, pathPrefix}) %> + <%- include('partials/head', {title: template('error.500.title'), formatUrl, + pathPrefix}) %> - <%- include('partials/header', {title: template('error.500.title'), parentLinks: [], formatUrl}) %> + <%- include( 'partials/header', {title: template('error.500.title'), + parentLinks: [], formatUrl} ) %>

<%- template('error.500.heading') %>

<%- template('error.500.message') %>

+ + <% if (err.errors && err.errors.find(error => error.reason === + 'exportSizeLimitExceeded')) { %> +

<%- template('error.500.sizeLimitNote.message') %>

+ <%- template('error.500.sizeLimitNote.viewButton') %> + <% } %>
<%- include('partials/search', {style: 'homepage', formatUrl}) %>
<%- include('partials/footer', {style: 'homepage', formatUrl}) %>
- diff --git a/package-lock.json b/package-lock.json index 547493a7..7d5d3332 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "library", - "version": "1.6.2", + "version": "1.6.3", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "library", - "version": "1.6.2", + "version": "1.6.3", "license": "Apache-2.0", "dependencies": { "@google-cloud/datastore": "^5.1.0", diff --git a/package.json b/package.json index 6d3f0d70..182361d6 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "library", - "version": "1.6.2", + "version": "1.6.3", "description": "A collaborative newsroom documentation site, powered by Google Docs.", "main": "server/index.js", "dependencies": {