Skip to content
This repository has been archived by the owner on Jun 24, 2023. It is now read-only.

Commit

Permalink
control-web: estaetics
Browse files Browse the repository at this point in the history
  • Loading branch information
hugsy committed Feb 1, 2016
1 parent 6246231 commit c20ef2c
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions control-web.py
Original file line number Diff line number Diff line change
Expand Up @@ -203,15 +203,16 @@ def plugin():
html += """<div class="panel panel-default">"""
html += """<div class="panel-heading"><h3 class="panel-title">{}</h3></div>""".format(title)
html += """<table class="table table-hover table-condensed">"""
html += "<tr><th>Name</th><th>Type</th><th>Status</th><th>Autoload?</th></tr>"
html += "<tr><th>Name</th><th>Type</th><th>Enabled</th><th>Autoload?</th></tr>"
for k,v in js[title].iteritems():
_type, _is_loaded = v
html += "<tr><td><a href=\"/plugin/view/{0}\">{0}</a></td><td>{1}</td>".format(k, _type)
html += "<td>"
if _is_loaded:
html += """<td><button type="button" class="btn btn-default btn-xs" data-toggle="button" aria-pressed="true" disabled='true'>Loaded</button></td>"""
html += """<input type="checkbox" checked="true" disabled="true"/>"""
else:
html += """<td><button type="button" class="btn btn-default btn-xs" data-toggle="button" aria-pressed="false" onclick="window.location='/plugin/load/{}'">Load</button></td>""".format(k)

html += """<input type="checkbox" onclick="window.location='/plugin/load/{}'"/>""".format(k)
html += "</td>"
html += "<td>"
fpath = os.path.abspath(ROOT + "/proxenet-plugins/autoload/" + k)

Expand Down

0 comments on commit c20ef2c

Please sign in to comment.