mirror of
https://github.com/discourse/discourse.git
synced 2025-02-27 05:57:41 +08:00
use proper typographical × instead of x
This commit is contained in:
parent
a8a0f97157
commit
a74e49c87c
@ -48,7 +48,6 @@ export default function($elem) {
|
|||||||
escapeExpression(item.el.attr("title")),
|
escapeExpression(item.el.attr("title")),
|
||||||
$("span.informations", item.el)
|
$("span.informations", item.el)
|
||||||
.text()
|
.text()
|
||||||
.replace("x", "×")
|
|
||||||
];
|
];
|
||||||
if (
|
if (
|
||||||
!Discourse.SiteSettings.prevent_anons_from_downloading_files ||
|
!Discourse.SiteSettings.prevent_anons_from_downloading_files ||
|
||||||
|
@ -421,7 +421,7 @@ class CookedPostProcessor
|
|||||||
img.add_next_sibling(meta)
|
img.add_next_sibling(meta)
|
||||||
|
|
||||||
filename = get_filename(upload, img["src"])
|
filename = get_filename(upload, img["src"])
|
||||||
informations = "#{original_width}x#{original_height}"
|
informations = "#{original_width}×#{original_height}"
|
||||||
informations << " #{number_to_human_size(upload.filesize)}" if upload
|
informations << " #{number_to_human_size(upload.filesize)}" if upload
|
||||||
|
|
||||||
a["title"] = CGI.escapeHTML(img["title"] || filename)
|
a["title"] = CGI.escapeHTML(img["title"] || filename)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user