escaping opening curly braces due to changes in hgweb 1.6
authorCorey Shields <cshields@mozilla.com>
Fri, 13 Jan 2012 12:17:19 -0500
changeset 359416 59c114df0cb98d5c4a385bad515b9cd03d60196d
parent 359414 edcd4c1658303acf4eb7b2fe73caf573c34dc00e
child 359417 492e46a5111635b680ccf80c9421528a2e687439
push id16998
push userrwood@mozilla.com
push dateMon, 02 May 2016 19:42:03 +0000
escaping opening curly braces due to changes in hgweb 1.6
hgtemplates/gitweb_mozilla/graph.tmpl
hgtemplates/gitweb_mozilla/header.tmpl
hgtemplates/gitweb_mozilla/pushlog.tmpl
--- a/hgtemplates/gitweb_mozilla/graph.tmpl
+++ b/hgtemplates/gitweb_mozilla/graph.tmpl
@@ -44,32 +44,32 @@ graph |
 <script type="text/javascript" src="{staticurl}graph.js"></script>
 <script>
 <!-- hide script content
 
 var data = {jsdata|json};
 var graph = new Graph();
 graph.scale({bg_height});
 
-graph.edge = function(x0, y0, x1, y1, color) {
+graph.edge = function(x0, y0, x1, y1, color) \{
 	
 	this.setColor(color, 0.0, 0.65);
 	this.ctx.beginPath();
 	this.ctx.moveTo(x0, y0);
 	this.ctx.lineTo(x1, y1);
 	this.ctx.stroke();
 	
 }
 
 var revlink = '<li style="_STYLE"><span class="desc">';
 revlink += '<a class="list" href="{url}rev/_NODEID{sessionvars%urlparameter}" title="_NODEID"><b>_DESC</b></a>';
 revlink += '</span> _TAGS';
 revlink += '<span class="info">Changeset _NODEID: _DATE ago, by _USER</span></li>';
 
-graph.vertex = function(x, y, color, parity, cur) {
+graph.vertex = function(x, y, color, parity, cur) \{
 	
 	this.ctx.beginPath();
 	color = this.setColor(color, 0.25, 0.75);
 	this.ctx.arc(x, y, radius, 0, Math.PI * 2, true);
 	this.ctx.fill();
 	
 	var bg = '<li class="bg parity' + parity + '"></li>';
 	var left = (this.columns + 1) * this.bg_height;
@@ -77,27 +77,27 @@ graph.vertex = function(x, y, color, par
 	var item = revlink.replace(/_STYLE/g, nstyle);
 	item = item.replace(/_PARITY/g, 'parity' + parity);
 	item = item.replace(/_NODEID/g, cur[0]);
 	item = item.replace(/_DESC/g, cur[3]);
 	item = item.replace(/_USER/g, cur[4]);
 	item = item.replace(/_DATE/g, cur[5]);
 	
 	var tagspan = '';
-	if (cur[7].length || (cur[6][0] != 'default' || cur[6][1])) {
+	if (cur[7].length || (cur[6][0] != 'default' || cur[6][1])) \{
 		tagspan = '<span class="logtags">';
-		if (cur[6][1]) {
+		if (cur[6][1]) \{
 			tagspan += '<span class="branchtag" title="' + cur[6][0] + '">';
 			tagspan += cur[6][0] + '</span> ';
-		} else if (!cur[6][1] && cur[6][0] != 'default') {
+		} else if (!cur[6][1] && cur[6][0] != 'default') \{
 			tagspan += '<span class="inbranchtag" title="' + cur[6][0] + '">';
 			tagspan += cur[6][0] + '</span> ';
 		}
-		if (cur[7].length) {
-			for (var t in cur[7]) {
+		if (cur[7].length) \{
+			for (var t in cur[7]) \{
 				var tag = cur[7][t];
 				tagspan += '<span class="tagtag">' + tag + '</span> ';
 			}
 		}
 		tagspan += '</span>';
 	}
 	
 	item = item.replace(/_TAGS/, tagspan);
--- a/hgtemplates/gitweb_mozilla/header.tmpl
+++ b/hgtemplates/gitweb_mozilla/header.tmpl
@@ -2,23 +2,23 @@
 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-US" lang="en-US">
 <head>
 <link rel="icon" href="{staticurl}hgicon.png" type="image/png" />
 <meta name="robots" content="index, nofollow"/>
 <link rel="stylesheet" href="{staticurl}style-gitweb.css" type="text/css" />
 
 <style type="text/css">
-div.feed {
+div.feed \{
   float: right;
 }
-a img {
+a img \{
   border-width: 0px;
 }
-div.log_link {
+div.log_link \{
   width: 80px;
   background-color: white;
 }
 
-div.log_body {
+div.log_body \{
   padding-left: 96px;
 }
 </style>
--- a/hgtemplates/gitweb_mozilla/pushlog.tmpl
+++ b/hgtemplates/gitweb_mozilla/pushlog.tmpl
@@ -1,32 +1,32 @@
 {header}
 <title>{repo|escape}: pushlog</title>
 <link rel="alternate" type="application/atom+xml"
    href="{url}pushlog" title="Atom feed for {repo|escape} pushlog"/>
 <style type="text/css">
-#localize, .expand {
+#localize, .expand \{
   font-size: x-small;
 }
 </style>
 <script type="text/javascript" src="{staticurl}jquery-1.2.6.min.js"></script>
 <script type="text/javascript">// <![CDATA
-$(document).ready(function () {
+$(document).ready(function () \{
   // add click handler to the localize dates link
-  $('#localize').show().click(function () {
+  $('#localize').show().click(function () \{
      $(this).hide();
-     $('.date').each(function (i) {
+     $('.date').each(function (i) \{
        $(this).text(new Date($(this).text()).toLocaleString());
      });
      return false;
   });
   // hide things that should be hidden
   $('.hidden').hide();
   // add click handler to unhide hidden things
-  $('.expand').click(function () {
+  $('.expand').click(function () \{
     if ($(this).text() == "[Expand]")
       $(this).text("[Collapse]");
     else
       $(this).text("[Expand]");
     
     var pushid = $(this).attr("class");
     pushid = '.' + pushid.match(/id\d+/);
     $(pushid).nextAll(pushid).toggle();