Commit d9480ed7 authored by Leigh Stoller's avatar Leigh Stoller

Show if image is deprecated.

parent 8af149ed
......@@ -349,6 +349,19 @@
<td><%- fields.imageid %></td>
</tr>
<% if (isadmin) { %>
<% if (fields.deprecated) { %>
<tr>
<td>Deprecated</td>
<td>
<span class="format-date"><%- fields.deprecated %></span>
<% if (fields.deprecated_iserror) { %>
(With error)
<% } else { %>
(With warning)
<% } %>
</td>
</tr>
<% } %>
<tr class="adminnotes">
<td>
<a class='btn btn-danger btn-xs pull-right hidden'
......
......@@ -482,6 +482,9 @@ class Image
function lba_size() { return $this->field("lba_size"); }
function nodetypes() { return $this->field("nodetypes"); }
function webtask_id() { return $this->field("webtask_id"); }
function deprecated() { return $this->field("deprecated"); }
function deprecated_iserror(){ return $this->field("deprecated_iserror"); }
function deprecated_message(){ return $this->field("deprecated_message"); }
# Return the DB data.
function DBData() { return $this->image; }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment