Skip to content
This repository has been archived by the owner on Jan 17, 2023. It is now read-only.

Commit

Permalink
Fix #2410, use 'Screenshot: title' for the <title> of shot pages
Browse files Browse the repository at this point in the history
  • Loading branch information
ianb committed Aug 1, 2017
1 parent cde91d3 commit ed2b2c2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
5 changes: 3 additions & 2 deletions locales/en-US/server.ftl
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Localization for Server-side strings of Firefox Screenshots
//
//
// Please don't localize Firefox, Firefox Screenshots, or Screenshots


Expand Down Expand Up @@ -81,6 +81,8 @@ notFoundPageDescription = Page not found.
[[ Shot page ]]

// This is the HTML title tag of the page
shotPageTitle = Screenshot: { $originalTitle }
shotPageAlertErrorUpdatingExpirationTime = Error saving expiration
shotPageAlertErrorDeletingShot = Error deleting shot
shotPageAlertErrorUpdatingTitle = Error saving title
Expand Down Expand Up @@ -238,4 +240,3 @@ metricsPageHeader = Metrics
metricsPageGeneratedDateTime = Generated at: { $created }
// Note { $time } is a placeholder for a number of milliseconds, like '100'
metricsPageDatabaseQueryTime = (database time: { $time }ms)
3 changes: 2 additions & 1 deletion server/src/pages/shot/model.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,9 @@ exports.createModel = function(req) {
if (req.shot.favicon) {
req.shot.favicon = createProxyUrl(req, req.shot.favicon);
}
let title = req.getText("shotPageTitle", {originalTitle: req.shot.title});
let serverPayload = {
title: req.shot.title,
title,
staticLink: req.staticLink,
backend: req.backend,
shot: req.shot,
Expand Down

0 comments on commit ed2b2c2

Please sign in to comment.