Minor gui tweaks

pull/1/head
riley 11 months ago
parent 3902dfe140
commit 99b490c0fd

@ -10,19 +10,15 @@ local container_running = string.match(string.lower(container_status), "^up%W")
<% else %> <% else %>
<button class="cbi-button cbi-button-negative" disabled="true"><%=container_status%></button> <button class="cbi-button cbi-button-negative" disabled="true"><%=container_status%></button>
<% end %> <% end %>
<% if container_running then %>
<%
local port=util.trim(util.exec("/usr/libexec/apps/whoogle/whoogle.sh port"))
if port == "" then
port="5000"
end
-%>
<input type="button" class="btn cbi-button cbi-button-apply" name="start" value="<%:Open Whoogle%>" onclick="window.open('http://'+location.hostname+':<%=port%>/', '_blank')">
<% end %>
</div> </div>
</div> </div>
<%
if container_running then
local port=util.trim(util.exec("/usr/libexec/apps/whoogle/whoogle.sh port"))
if port == "" then
port="5000"
end
-%>
<div class="cbi-value cbi-value-last">
<label class="cbi-value-title">&nbsp;</label>
<div class="cbi-value-field">
<input type="button" class="btn cbi-button cbi-button-apply" name="start" value="<%:Open Whoogle%>" onclick="window.open('http://'+location.hostname+':<%=port%>/', '_blank')">
</div>
</div>
<% end %>
Loading…
Cancel
Save