diff --git a/quarry/web/static/templates/compiled.js b/quarry/web/static/templates/compiled.js index 15db419..97e6da7 100644 --- a/quarry/web/static/templates/compiled.js +++ b/quarry/web/static/templates/compiled.js @@ -18,7 +18,16 @@ output += "\n "; } output += "\n ("; output += runtime.suppressValue(runtime.contextOrFrameLookup(context, frame, "rowcount"), env.opts.autoescape); -output += " rows)\n \n
\n
\n \n
\n
\n
\n \n
    \n "; frame = frame.push(); var t_3 = {"tsv": "TSV","json": "JSON","json-lines": "JSON Lines","csv": "CSV","wikitable": "Wikitable","html": "HTML"}; if(t_3) {var t_1; @@ -117,34 +126,34 @@ var output = ""; try { var parentTemplate = null; if(runtime.contextOrFrameLookup(context, frame, "status") == "failed") { -output += "\nError\n
    ";
    +output += "\r\nError\r\n
    ";
     output += runtime.suppressValue(runtime.memberLookup((runtime.contextOrFrameLookup(context, frame, "extra")),"error"), env.opts.autoescape);
    -output += "
    \n"; +output += "
    \r\n"; ; } else { if(runtime.contextOrFrameLookup(context, frame, "status") == "killed") { -output += "\nThis query took longer than 30 minutes to execute and was killed.\n"; +output += "\r\nThis query took longer than 30 minutes to execute and was killed.\r\n"; ; } else { if(runtime.contextOrFrameLookup(context, frame, "status") == "queued") { -output += "\nThis query is waiting to be executed\n"; +output += "\r\nThis query is waiting to be executed\r\n"; ; } else { if(runtime.contextOrFrameLookup(context, frame, "status") == "stopped") { -output += "\nThis query was stopped\n"; +output += "\r\nThis query was stopped\r\n"; ; } else { if(runtime.contextOrFrameLookup(context, frame, "status") == "running") { -output += "\nThis query is currently executing...\n"; +output += "\r\nThis query is currently executing...\r\n"; if(runtime.memberLookup((runtime.contextOrFrameLookup(context, frame, "extra")),"connection_id")) { -output += "\n\n"; +output += "\r\n\r\n"; ; } -output += "\n"; +output += "\r\n"; ; } ; @@ -155,14 +164,14 @@ output += "\n"; } ; } -output += "\n"; +output += "\r\n"; if(runtime.memberLookup((runtime.contextOrFrameLookup(context, frame, "extra")),"replag")) { -output += "\n
    \n

    Replication lag

    \n

    The database on which this query was executed has a synchronization delay with the wiki.\n This can be caused by maintenance or a database incident, and should be resolved soon.
    \n Modifications that were made in the last "; +output += "\r\n

    \r\n

    Replication lag

    \r\n

    The database on which this query was executed has a synchronization delay with the wiki.\r\n This can be caused by maintenance or a database incident, and should be resolved soon.
    \r\n Modifications that were made in the last "; output += runtime.suppressValue(runtime.memberLookup((runtime.contextOrFrameLookup(context, frame, "extra")),"replag"), env.opts.autoescape); -output += " on the wiki are not taken into account in the results below.
    \n

    \n"; +output += " on the wiki are not taken into account in the results below.
    \r\n
    \r\n"; ; } -output += "\n"; +output += "\r\n"; if(parentTemplate) { parentTemplate.rootRenderFunc(env, context, frame, runtime, cb); } else { diff --git a/quarry/web/static/templates/query-resultset.html b/quarry/web/static/templates/query-resultset.html index cc18caf..a5e4ec3 100644 --- a/quarry/web/static/templates/query-resultset.html +++ b/quarry/web/static/templates/query-resultset.html @@ -6,7 +6,7 @@ {% else %} Resultset {{ resultset_number }} {% endif %} - ({{rowcount}} rows) + ({{rowcount}} {% if rowcount == 1 %}row{% else %}rows{% endif %})