Add experimental/disabled warning in State column
This commit is contained in:
parent
a70a48df52
commit
c418a02591
|
|
@ -42,6 +42,11 @@
|
|||
<tr<%= alt_rows(i)%>>
|
||||
<td><%= fmt_string(feature_flag.name) %></td>
|
||||
<td class="c">
|
||||
<% if (feature_flag.stability == "experimental") { %>
|
||||
<span>Experimental</span>
|
||||
<% } else if (feature_flag.stability == "stable" && feature_flag.state == "disabled") { %>
|
||||
<p><span>⚠</span>Disabled!</p>
|
||||
<% } %>
|
||||
<% if (feature_flag.state == "disabled") { %>
|
||||
<form action="#/feature-flags-enable" method="put" style="display: inline-block">
|
||||
<input type="hidden" name="name" value="<%= fmt_string(feature_flag.name) %>"/>
|
||||
|
|
@ -56,15 +61,7 @@
|
|||
<% } %>
|
||||
</td>
|
||||
<td>
|
||||
<p>
|
||||
<% if (feature_flag.stability == "experimental") { %>
|
||||
<abbr class="status-grey"
|
||||
style="text-transform: capitalize"
|
||||
title="Feature flag stability: <%= fmt_string(feature_flag.stability) %>">
|
||||
<%= fmt_string(feature_flag.stability) %>
|
||||
</abbr>
|
||||
<% } %>
|
||||
<%= fmt_string(feature_flag.desc) %></p>
|
||||
<p><%= fmt_string(feature_flag.desc) %></p>
|
||||
<% if (feature_flag.doc_url) { %>
|
||||
<p><a href="<%= fmt_string(feature_flag.doc_url) %>">[Learn more]</a></p>
|
||||
<% } %>
|
||||
|
|
|
|||
Loading…
Reference in New Issue