Skip to content

Commit 5c7b74e

Browse files
authored
Merge pull request #16943 from grokability/small-tweaks-to-status-label-text
Clearer text on status label types
2 parents b06fd5b + e07b0f6 commit 5c7b74e

File tree

2 files changed

+11
-7
lines changed

2 files changed

+11
-7
lines changed

resources/lang/en-US/admin/statuslabels/table.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
<?php
22

33
return array(
4-
'about' => 'About Status Labels',
4+
'about' => 'About Status Types',
55
'archived' => 'Archived',
66
'create' => 'Create Status Label',
77
'color' => 'Chart Color',
88
'default_label' => 'Default Label',
99
'default_label_help' => 'This is used to ensure your most commonly used status labels appear at the top of the select box when creating/editing assets.',
1010
'deployable' => 'Deployable',
11-
'info' => 'Status labels are used to describe the various states your assets could be in. They may be out for repair, lost/stolen, etc. You can create new status labels for deployable, pending and archived assets.',
11+
'info' => 'Status label types are used to describe the various states your assets could be in. They may be out for repair, lost/stolen, etc. You can create new status labels for your deployable, pending and archived assets according to your own workflow. For more information, <a href="https://snipe-it.readme.io/docs/overview#status-labels" target="_blank">see the documentation <i class="fa fa-external-link"></i></a>.',
1212
'name' => 'Status Name',
1313
'pending' => 'Pending',
1414
'status_type' => 'Status Type',

resources/views/statuslabels/index.blade.php

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
1-
@extends('layouts/default', [
2-
'helpText' => trans('admin/statuslabels/table.info') ,
3-
'helpPosition' => 'right',
4-
])
1+
@extends('layouts/default')
52

63
{{-- Page title --}}
74
@section('title')
@@ -51,6 +48,13 @@ class="table table-striped snipe-table"
5148
<div class="col-md-3">
5249
<h2>{{ trans('admin/statuslabels/table.about') }}</h2>
5350

51+
<div class="box">
52+
<div class="box-body">
53+
<p>{!! trans('admin/statuslabels/table.info') !!}</p>
54+
</div>
55+
</div>
56+
57+
5458
<div class="box box-success">
5559
<div class="box-body">
5660
<p><i class="fas fa-circle text-green"></i> <strong>{{ trans('admin/statuslabels/table.deployable') }}</strong>: {!! trans('admin/statuslabels/message.help.deployable') !!}</p>
@@ -125,7 +129,7 @@ function statusLabelTypeFormatter (row, value) {
125129
126130
var typename_lower = trans;
127131
var typename = typename_lower.charAt(0).toUpperCase() + typename_lower.slice(1);
128-
return '<i class="fa ' + icon_style + ' text-' + text_color + '"></i> ' + typename;
132+
return '<nobr><i class="fa ' + icon_style + ' text-' + text_color + '"></i> ' + typename + '</nobr>';
129133
130134
131135
}

0 commit comments

Comments
 (0)