Skip to content

Commit

Permalink
Added config-data badge
Browse files Browse the repository at this point in the history
  • Loading branch information
jessepeterson committed Feb 12, 2016
1 parent d89f549 commit 9a443ee
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions static/js/margarita.js
Original file line number Diff line number Diff line change
Expand Up @@ -305,6 +305,7 @@ var ProductCell = Backbone.Marionette.ItemView.extend({
initialize: function (options) {
// BackGrid cells require the column key
_.extend(this, _.pick(options, ['column']));
this.model.bind('change:configdata', this.render, this);
},
showInfo: function (ev) {
ev.preventDefault();
Expand Down
3 changes: 3 additions & 0 deletions templates/margarita.html
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,9 @@ <h4 class="modal-title" title="<%= id %>"><%= title %></h4>
<% if (depr) { %>
<span title="Deprecated update product" class="label label-warning">D</span>
<% } %>
<% if (configdata) { %>
<span title="Deprecated update product" class="label label-warning">C</span>
<% } %>
<% if (oscatalogs.length > 2) { %>
<span class="label label-info"><%= oscatalogs[0] %></span>
&mdash;
Expand Down

0 comments on commit 9a443ee

Please sign in to comment.