mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
Small rendering improvements
This commit is contained in:
parent
753fe9c80f
commit
c33cfe9503
@ -67,9 +67,9 @@ function renderStockItem(name, data, parameters, options) {
|
|||||||
// Renderer for "StockLocation" model
|
// Renderer for "StockLocation" model
|
||||||
function renderStockLocation(name, data, parameters, options) {
|
function renderStockLocation(name, data, parameters, options) {
|
||||||
|
|
||||||
var level = '-'.repeat(data.level);
|
var level = '- '.repeat(data.level);
|
||||||
|
|
||||||
var html = `<span>${level} ${data.pathstring}</span>`;
|
var html = `<span>${level}${data.pathstring}</span>`;
|
||||||
|
|
||||||
if (data.description) {
|
if (data.description) {
|
||||||
html += ` - <i>${data.description}</i>`;
|
html += ` - <i>${data.description}</i>`;
|
||||||
@ -152,9 +152,9 @@ function renderOwner(name, data, parameters, options) {
|
|||||||
// Renderer for "PartCategory" model
|
// Renderer for "PartCategory" model
|
||||||
function renderPartCategory(name, data, parameters, options) {
|
function renderPartCategory(name, data, parameters, options) {
|
||||||
|
|
||||||
var level = '-'.repeat(data.level);
|
var level = '- '.repeat(data.level);
|
||||||
|
|
||||||
var html = `<span>${level} ${data.pathstring}</span>`;
|
var html = `<span>${level}${data.pathstring}</span>`;
|
||||||
|
|
||||||
if (data.description) {
|
if (data.description) {
|
||||||
html += ` - <i>${data.description}</i>`;
|
html += ` - <i>${data.description}</i>`;
|
||||||
|
Loading…
Reference in New Issue
Block a user