]> jfr.im git - irc/quakenet/qwebirc.git/commitdiff
Merge.
authorChris Porter <redacted>
Mon, 18 Aug 2014 18:46:10 +0000 (19:46 +0100)
committerChris Porter <redacted>
Mon, 18 Aug 2014 18:46:10 +0000 (19:46 +0100)
1  2 
bin/pagegen.py

diff --combined bin/pagegen.py
index 2d1cea4c2603777629bf48ca4a3d56a6f91801c8,0dd57c5bc5b3f89ff5113e907be67ec8acf0aaad..7da601ea0da26ce2cfb2ba68f128d0396015c5be
@@@ -68,8 -68,9 +68,9 @@@ def producehtml(name, debug)
    <base />
    <title>%s (qwebirc)</title>
    <meta http-equiv="Content-Type" content="text/html;charset=utf-8"/>
+   <meta name="viewport" content="width=device-width; initial-scale=1.0; maximum-scale=1.0; user-scalable=0;" />
    <link rel="shortcut icon" type="image/png" href="%simages/favicon.png"/>
 -%s%s
 +%s<script type="text/javascript">QWEBIRC_DEBUG=%s;</script>%s
  %s
    <script type="text/javascript">
      var ui = new qwebirc.ui.Interface("ircui", qwebirc.ui.%s, %s);
@@@ -83,7 -84,7 +84,7 @@@
    </div>
  </body>
  </html>
 -""" % (ui["doctype"], config.APP_TITLE, config.STATIC_BASE_URL, csshtml, customjs, jshtml, ui["class"], optionsgen.get_options(), div)
 +""" % (ui["doctype"], config.APP_TITLE, config.STATIC_BASE_URL, csshtml, debug and "true" or "false", customjs, jshtml, ui["class"], optionsgen.get_options(), div)
  
  def main(outputdir=".", produce_debug=True):
    p = os.path.join(outputdir, "static")