Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {
- label: '(Mock)'
- , cell:
- Backgrid.StringCell.extend({
- className: 'verified center'
- , render: function() {
- var icons = [
- '<i style="color: red" class="fa fa-exclamation"></i>'
- , '<i style="color: green" class="fa fa-check"></i>'
- ];
- this.$el.html(icons.random());
- return this;
- }
- })
- , editable: false
- , sortable: false
- }
- , {
- label: i18n.get('app.modules.versions.bom.license') + ' (Mock)'
- , cell:
- Backgrid.StringCell.extend({
- className: 'license'
- , render: function() {
- var licenses = [
- 'Unknown'
- , 'MIT'
- , '<a><i class="fa fa-flag warning"></i></a>GPL-2.0'
- , '<a><i class="fa fa-flag danger"></i></a>Apache-2.0'
- ];
- this.$el.html(licenses.random());
- return this;
- }
- })
- , editable: false
- , sortable: false
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement