mirror of
https://github.com/go-gitea/gitea.git
synced 2024-05-11 05:55:29 +00:00
d67e9b9629
* SVG fixes Signed-off-by: jolheiser <[email protected]> * Colorize span->svg only Signed-off-by: jolheiser <[email protected]> * @silverwind suggestions Signed-off-by: jolheiser <[email protected]> * Alphabetical Signed-off-by: jolheiser <[email protected]> * Convert suburl and staticPrefix to window.config Signed-off-by: jolheiser <[email protected]> * De-structure Signed-off-by: jolheiser <[email protected]> Co-authored-by: Antoine GIRARD <[email protected]>
6 lines
240 B
JavaScript
6 lines
240 B
JavaScript
const { StaticUrlPrefix } = window.config;
|
|
|
|
export function svg(name, size) {
|
|
return `<svg class="svg ${name}" width="${size}" height="${size}" aria-hidden="true"><use xlink:href="${StaticUrlPrefix}/img/svg/icons.svg#${name}"/></svg>`;
|
|
}
|