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

Commit

Permalink
[control-web] align grid on md-12
Browse files Browse the repository at this point in the history
  • Loading branch information
hugsy committed Jun 9, 2015
1 parent ab3239d commit 1efd44b
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions control-web.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,15 +61,14 @@ def build_html(**kwargs):
<ul class="nav nav-tabs nav-justified">"""

for path in ["info", "plugin", "threads", "config", ]:
body += """<li {2}><a href="/{0}">{1}</a></li>""".format(path,
path.capitalize(),
body += """<li {2}><a href="/{0}">{1}</a></li>""".format(path, path.capitalize(),
"class='active'" if path==kwargs.get("page") else "")

body += """<li><a href="#" onclick="var c=confirm('Are you sure to quit?');if(c){window.location='/quit';}">Quit</a></li>"""
body += """</ul></div></div>
<div class="row"><div class="col-md-12"><br></div></div>
<div class="row">
<div class="col-md-2"></div><div class="col-md-8">{}</div><div class="col-md-2"></div>
</div><div class="col-md-12">{}</div>
</div></body>""".format( kwargs.get("body", "") )
footer = """</html>"""
return header + body + footer
Expand Down

0 comments on commit 1efd44b

Please sign in to comment.