##// END OF EJS Templates
javascript: remove nice trailing comma to please IE8 (Issue #39)
Mads Kiilerich -
r4516:b3f12c35 default
parent child Browse files
Show More
@@ -393,7 +393,7 b' var ajaxGET = function(url,success) {'
393 if (o.status != 0) {
393 if (o.status != 0) {
394 alert("Ajax GET error: " + o.statusText);
394 alert("Ajax GET error: " + o.statusText);
395 };
395 };
396 },
396 }
397 };
397 };
398
398
399 var request = YAHOO.util.Connect.asyncRequest('GET', sUrl, callback);
399 var request = YAHOO.util.Connect.asyncRequest('GET', sUrl, callback);
@@ -409,7 +409,7 b' var ajaxPOST = function(url,postData,suc'
409 success: success,
409 success: success,
410 failure: function (o) {
410 failure: function (o) {
411 alert("Ajax POST error: " + o.statusText);
411 alert("Ajax POST error: " + o.statusText);
412 },
412 }
413 };
413 };
414 var postData = _toQueryString(postData);
414 var postData = _toQueryString(postData);
415 var request = YAHOO.util.Connect.asyncRequest('POST', sUrl, callback, postData);
415 var request = YAHOO.util.Connect.asyncRequest('POST', sUrl, callback, postData);
@@ -989,7 +989,7 b' var initCodeMirror = function(textarea_i'
989 mode: "null",
989 mode: "null",
990 lineNumbers: true,
990 lineNumbers: true,
991 indentUnit: 4,
991 indentUnit: 4,
992 autofocus: true,
992 autofocus: true
993 });
993 });
994 $('#reset').click(function(e){
994 $('#reset').click(function(e){
995 window.location=resetUrl;
995 window.location=resetUrl;
@@ -1082,7 +1082,7 b' var deleteNotification = function(url, n'
1082 },
1082 },
1083 failure:function(o){
1083 failure:function(o){
1084 alert("deleteNotification failure");
1084 alert("deleteNotification failure");
1085 },
1085 }
1086 };
1086 };
1087 var postData = '_method=delete';
1087 var postData = '_method=delete';
1088 var sUrl = url.replace('__NOTIFICATION_ID__',notification_id);
1088 var sUrl = url.replace('__NOTIFICATION_ID__',notification_id);
@@ -1100,7 +1100,7 b' var readNotification = function(url, not'
1100 },
1100 },
1101 failure:function(o){
1101 failure:function(o){
1102 alert("readNotification failure");
1102 alert("readNotification failure");
1103 },
1103 }
1104 };
1104 };
1105 var postData = '_method=put';
1105 var postData = '_method=put';
1106 var sUrl = url.replace('__NOTIFICATION_ID__',notification_id);
1106 var sUrl = url.replace('__NOTIFICATION_ID__',notification_id);
@@ -1282,7 +1282,7 b' var _MembersAutoComplete = function (div'
1282 memberDS: memberDS,
1282 memberDS: memberDS,
1283 ownerDS: ownerDS,
1283 ownerDS: ownerDS,
1284 membersAC: membersAC,
1284 membersAC: membersAC,
1285 ownerAC: ownerAC,
1285 ownerAC: ownerAC
1286 };
1286 };
1287 }
1287 }
1288
1288
@@ -1741,7 +1741,7 b' function ajaxActionRevokePermission(url,'
1741 },
1741 },
1742 failure: function (o) {
1742 failure: function (o) {
1743 alert(_TM['Failed to revoke permission'] + ": " + o.status);
1743 alert(_TM['Failed to revoke permission'] + ": " + o.status);
1744 },
1744 }
1745 };
1745 };
1746 query_params = {
1746 query_params = {
1747 '_method': 'delete'
1747 '_method': 'delete'
@@ -2092,7 +2092,7 b' var YUI_datatable = function(data, field'
2092 myDataSource.responseType = YAHOO.util.DataSource.TYPE_JSON;
2092 myDataSource.responseType = YAHOO.util.DataSource.TYPE_JSON;
2093 myDataSource.responseSchema = {
2093 myDataSource.responseSchema = {
2094 resultsList: "records",
2094 resultsList: "records",
2095 fields: fields,
2095 fields: fields
2096 };
2096 };
2097 myDataSource.doBeforeCallback = function(req, raw, res, cb) {
2097 myDataSource.doBeforeCallback = function(req, raw, res, cb) {
2098 // This is the filter function
2098 // This is the filter function
@@ -2121,7 +2121,7 b' var YUI_datatable = function(data, field'
2121 MSG_SORTDESC: _TM['MSG_SORTDESC'],
2121 MSG_SORTDESC: _TM['MSG_SORTDESC'],
2122 MSG_EMPTY: _TM['MSG_EMPTY'],
2122 MSG_EMPTY: _TM['MSG_EMPTY'],
2123 MSG_ERROR: _TM['MSG_ERROR'],
2123 MSG_ERROR: _TM['MSG_ERROR'],
2124 MSG_LOADING: _TM['MSG_LOADING'],
2124 MSG_LOADING: _TM['MSG_LOADING']
2125 });
2125 });
2126 myDataTable.subscribe('postRenderEvent',function(oArgs) {
2126 myDataTable.subscribe('postRenderEvent',function(oArgs) {
2127 tooltip_activate();
2127 tooltip_activate();
@@ -77,7 +77,7 b''
77 <script>
77 <script>
78 $(document).ready(function(){
78 $(document).ready(function(){
79 $("#lifetime").select2({
79 $("#lifetime").select2({
80 'dropdownAutoWidth': true,
80 'dropdownAutoWidth': true
81 });
81 });
82 })
82 })
83 </script>
83 </script>
@@ -18,7 +18,7 b' function table_renderer(data){'
18 {key:"name"},
18 {key:"name"},
19 {key:"last_changeset"},
19 {key:"last_changeset"},
20 {key:"last_rev_raw"},
20 {key:"last_rev_raw"},
21 {key:"action"},
21 {key:"action"}
22 ]
22 ]
23 };
23 };
24 myDataSource.doBeforeCallback = function(req,raw,res,cb) {
24 myDataSource.doBeforeCallback = function(req,raw,res,cb) {
@@ -47,7 +47,7 b' function table_renderer(data){'
47 sortOptions: { sortFunction: nameSort }},
47 sortOptions: { sortFunction: nameSort }},
48 {key:"last_changeset",label:"${_('Tip')}",sortable:true,
48 {key:"last_changeset",label:"${_('Tip')}",sortable:true,
49 sortOptions: { sortFunction: revisionSort }},
49 sortOptions: { sortFunction: revisionSort }},
50 {key:"action",label:"${_('Action')}",sortable:false},
50 {key:"action",label:"${_('Action')}",sortable:false}
51 ];
51 ];
52
52
53 var myDataTable = new YAHOO.widget.DataTable("repos_list_wrap", myColumnDefs, myDataSource,{
53 var myDataTable = new YAHOO.widget.DataTable("repos_list_wrap", myColumnDefs, myDataSource,{
@@ -58,7 +58,7 b' function table_renderer(data){'
58 MSG_SORTDESC:"${_('Click to sort descending')}",
58 MSG_SORTDESC:"${_('Click to sort descending')}",
59 MSG_EMPTY:"${_('No records found.')}",
59 MSG_EMPTY:"${_('No records found.')}",
60 MSG_ERROR:"${_('Data error.')}",
60 MSG_ERROR:"${_('Data error.')}",
61 MSG_LOADING:"${_('Loading...')}",
61 MSG_LOADING:"${_('Loading...')}"
62 }
62 }
63 );
63 );
64 myDataTable.subscribe('postRenderEvent',function(oArgs) {
64 myDataTable.subscribe('postRenderEvent',function(oArgs) {
@@ -18,7 +18,7 b' function table_renderer(data){'
18 {key:"name"},
18 {key:"name"},
19 {key:"last_changeset"},
19 {key:"last_changeset"},
20 {key:"last_rev_raw"},
20 {key:"last_rev_raw"},
21 {key:"action"},
21 {key:"action"}
22 ]
22 ]
23 };
23 };
24 myDataSource.doBeforeCallback = function(req,raw,res,cb) {
24 myDataSource.doBeforeCallback = function(req,raw,res,cb) {
@@ -47,7 +47,7 b' function table_renderer(data){'
47 sortOptions: { sortFunction: nameSort }},
47 sortOptions: { sortFunction: nameSort }},
48 {key:"last_changeset",label:"${_('Tip')}",sortable:true,
48 {key:"last_changeset",label:"${_('Tip')}",sortable:true,
49 sortOptions: { sortFunction: revisionSort }},
49 sortOptions: { sortFunction: revisionSort }},
50 {key:"action",label:"${_('Action')}",sortable:false},
50 {key:"action",label:"${_('Action')}",sortable:false}
51 ];
51 ];
52
52
53 var myDataTable = new YAHOO.widget.DataTable("repos_list_wrap", myColumnDefs, myDataSource,{
53 var myDataTable = new YAHOO.widget.DataTable("repos_list_wrap", myColumnDefs, myDataSource,{
@@ -58,7 +58,7 b' function table_renderer(data){'
58 MSG_SORTDESC:"${_('Click to sort descending')}",
58 MSG_SORTDESC:"${_('Click to sort descending')}",
59 MSG_EMPTY:"${_('No records found.')}",
59 MSG_EMPTY:"${_('No records found.')}",
60 MSG_ERROR:"${_('Data error.')}",
60 MSG_ERROR:"${_('Data error.')}",
61 MSG_LOADING:"${_('Loading...')}",
61 MSG_LOADING:"${_('Loading...')}"
62 }
62 }
63 );
63 );
64 myDataTable.subscribe('postRenderEvent',function(oArgs) {
64 myDataTable.subscribe('postRenderEvent',function(oArgs) {
@@ -7,7 +7,7 b''
7 (_('Total repositories'), c.repo_group.repositories_recursive_count, ''),
7 (_('Total repositories'), c.repo_group.repositories_recursive_count, ''),
8 (_('Children groups'), c.repo_group.children.count(), ''),
8 (_('Children groups'), c.repo_group.children.count(), ''),
9 (_('Created on'), h.fmt_date(c.repo_group.created_on), ''),
9 (_('Created on'), h.fmt_date(c.repo_group.created_on), ''),
10 (_('Owner'), h.person(c.repo_group.user.username), ''),
10 (_('Owner'), h.person(c.repo_group.user.username), '')
11 ]
11 ]
12 %>
12 %>
13 %for dt, dd, tt in elems:
13 %for dt, dd, tt in elems:
@@ -43,15 +43,14 b''
43 {key: "desc"},
43 {key: "desc"},
44 {key: "repos"},
44 {key: "repos"},
45 {key: "owner"},
45 {key: "owner"},
46 {key: "action"},
46 {key: "action"}
47
48 ];
47 ];
49 var column_defs = [
48 var column_defs = [
50 {key:"group_name",label:"${_('Name')}",sortable:true, sortOptions: { sortFunction: nameSort }},
49 {key:"group_name",label:"${_('Name')}",sortable:true, sortOptions: { sortFunction: nameSort }},
51 {key:"desc",label:"${_('Description')}",sortable:true},
50 {key:"desc",label:"${_('Description')}",sortable:true},
52 {key:"repos",label:"${_('Number of toplevel repositories')}",sortable:true},
51 {key:"repos",label:"${_('Number of toplevel repositories')}",sortable:true},
53 {key:"owner",label:"${_('Owner')}",sortable:true},
52 {key:"owner",label:"${_('Owner')}",sortable:true},
54 {key:"action",label:"${_('Action')}",sortable:false},
53 {key:"action",label:"${_('Action')}",sortable:false}
55 ];
54 ];
56 var counter = YUD.get('repo_group_count');
55 var counter = YUD.get('repo_group_count');
57 var sort_key = "group_name";
56 var sort_key = "group_name";
@@ -117,10 +117,10 b''
117 })
117 })
118
118
119 $("#repo_type").select2({
119 $("#repo_type").select2({
120 'minimumResultsForSearch': -1,
120 'minimumResultsForSearch': -1
121 });
121 });
122 $("#repo_landing_rev").select2({
122 $("#repo_landing_rev").select2({
123 'minimumResultsForSearch': -1,
123 'minimumResultsForSearch': -1
124 });
124 });
125 $('#repo_name').focus();
125 $('#repo_name').focus();
126 })
126 })
@@ -3,7 +3,7 b''
3 <div class="form">
3 <div class="form">
4 <div class="fields">
4 <div class="fields">
5 ${h.select('id_fork_of','',c.repos_list,class_="medium")}
5 ${h.select('id_fork_of','',c.repos_list,class_="medium")}
6 ${h.submit('set_as_fork_%s' % c.repo_info.repo_name,_('Set'),class_="btn btn-small",)}
6 ${h.submit('set_as_fork_%s' % c.repo_info.repo_name,_('Set'),class_="btn btn-small")}
7 </div>
7 </div>
8 <div class="field" style="border:none;color:#888">
8 <div class="field" style="border:none;color:#888">
9 <ul>
9 <ul>
@@ -16,7 +16,7 b''
16 <script>
16 <script>
17 $(document).ready(function(){
17 $(document).ready(function(){
18 $("#id_fork_of").select2({
18 $("#id_fork_of").select2({
19 'dropdownAutoWidth': true,
19 'dropdownAutoWidth': true
20 });
20 });
21 })
21 })
22 </script>
22 </script>
@@ -2,7 +2,7 b''
2 <div class="form">
2 <div class="form">
3 <div class="fields">
3 <div class="fields">
4 ${h.select('id_fork_of','',c.repos_list,class_="medium")}
4 ${h.select('id_fork_of','',c.repos_list,class_="medium")}
5 ${h.submit('set_as_fork_%s' % c.repo_info.repo_name,_('Set'),class_="btn btn-small",)}
5 ${h.submit('set_as_fork_%s' % c.repo_info.repo_name,_('Set'),class_="btn btn-small")}
6 </div>
6 </div>
7 <div class="field" style="border:none;color:#888">
7 <div class="field" style="border:none;color:#888">
8 <ul>
8 <ul>
@@ -15,7 +15,7 b''
15 <script>
15 <script>
16 $(document).ready(function(){
16 $(document).ready(function(){
17 $("#id_fork_of").select2({
17 $("#id_fork_of").select2({
18 'dropdownAutoWidth': true,
18 'dropdownAutoWidth': true
19 });
19 });
20 })
20 })
21 </script>
21 </script>
@@ -43,7 +43,7 b''
43 {key:"last_rev_raw"},
43 {key:"last_rev_raw"},
44 {key:"owner"},
44 {key:"owner"},
45 {key:"state"},
45 {key:"state"},
46 {key:"action"},
46 {key:"action"}
47 ];
47 ];
48 var column_defs = [
48 var column_defs = [
49 {key:"menu",label:"",sortable:false,className:"quick_repo_menu hidden"},
49 {key:"menu",label:"",sortable:false,className:"quick_repo_menu hidden"},
@@ -52,7 +52,7 b''
52 {key:"last_changeset",label:"${_('Tip')}",sortable:true, sortOptions: { sortFunction: revisionSort }},
52 {key:"last_changeset",label:"${_('Tip')}",sortable:true, sortOptions: { sortFunction: revisionSort }},
53 {key:"owner",label:"${_('Owner')}",sortable:true},
53 {key:"owner",label:"${_('Owner')}",sortable:true},
54 {key:"state",label:"${_('State')}",sortable:true},
54 {key:"state",label:"${_('State')}",sortable:true},
55 {key:"action",label:"${_('Action')}",sortable:false},
55 {key:"action",label:"${_('Action')}",sortable:false}
56 ];
56 ];
57 var counter = YUD.get('repo_count');
57 var counter = YUD.get('repo_count');
58 var sort_key = "name";
58 var sort_key = "name";
@@ -13,7 +13,7 b''
13
13
14 (_('SMTP use TLS'), c.ini.get('smtp_use_tls'), ''),
14 (_('SMTP use TLS'), c.ini.get('smtp_use_tls'), ''),
15 (_('SMTP use SSL'), c.ini.get('smtp_use_ssl'), ''),
15 (_('SMTP use SSL'), c.ini.get('smtp_use_ssl'), ''),
16 (_('SMTP auth'), c.ini.get('smtp_auth'), ''),
16 (_('SMTP auth'), c.ini.get('smtp_auth'), '')
17 ]
17 ]
18 %>
18 %>
19 %for dt, dd, tt in elems:
19 %for dt, dd, tt in elems:
@@ -67,7 +67,7 b' function ajaxActionHook(hook_id,field_id'
67 },
67 },
68 failure: function (o) {
68 failure: function (o) {
69 alert("${_('Failed to remove hook')}");
69 alert("${_('Failed to remove hook')}");
70 },
70 }
71 };
71 };
72 var postData = '_method=delete&hook_id=' + hook_id;
72 var postData = '_method=delete&hook_id=' + hook_id;
73 var request = YAHOO.util.Connect.asyncRequest('POST', sUrl, callback, postData);
73 var request = YAHOO.util.Connect.asyncRequest('POST', sUrl, callback, postData);
@@ -6,7 +6,7 b''
6 (_('Platform'), c.platform, ''),
6 (_('Platform'), c.platform, ''),
7 (_('GIT version'), c.git_version, ''),
7 (_('GIT version'), c.git_version, ''),
8 (_('GIT path'), c.ini.get('git_path'), ''),
8 (_('GIT path'), c.ini.get('git_path'), ''),
9 (_('Upgrade info endpoint'), h.literal('%s <br/><span style="color:#999999">%s.</span>' % (c.update_url, _('Note: please make sure this server can access this url'))), ''),
9 (_('Upgrade info endpoint'), h.literal('%s <br/><span style="color:#999999">%s.</span>' % (c.update_url, _('Note: please make sure this server can access this url'))), '')
10 ]
10 ]
11 %>
11 %>
12
12
@@ -5,8 +5,8 b''
5 elems = [
5 elems = [
6 (_('Members'), len(c.group_members_obj), ''),
6 (_('Members'), len(c.group_members_obj), ''),
7 (_('Created on'), h.fmt_date(c.user_group.created_on), ''),
7 (_('Created on'), h.fmt_date(c.user_group.created_on), ''),
8 (_('Owner'), h.person(c.user_group.user.username), ''),
8 (_('Owner'), h.person(c.user_group.user.username), '')
9 ]
9 ]
10 %>
10 %>
11 %for dt, dd, tt in elems:
11 %for dt, dd, tt in elems:
12 <dt style="width:150px; text-align: left">${dt}:</dt>
12 <dt style="width:150px; text-align: left">${dt}:</dt>
@@ -43,16 +43,15 b''
43 {key: "members"},
43 {key: "members"},
44 {key: "active"},
44 {key: "active"},
45 {key: "owner"},
45 {key: "owner"},
46 {key: "action"},
46 {key: "action"}
47
48 ];
47 ];
49 var column_defs = [
48 var column_defs = [
50 {key:"group_name",label:"${_('Name')}",sortable:true, sortOptions: { sortFunction: nameSort }},
49 {key:"group_name",label:"${_('Name')}",sortable:true, sortOptions: { sortFunction: nameSort }},
51 {key:"desc",label:"${_('Description')}",sortable:true},
50 {key:"desc",label:"${_('Description')}",sortable:true},
52 {key:"members",label:"${_('Members')}",sortable:false},
51 {key:"members",label:"${_('Members')}",sortable:false},
53 {key:"active",label:"${_('Active')}",sortable:true,},
52 {key:"active",label:"${_('Active')}",sortable:true},
54 {key:"owner",label:"${_('Owner')}",sortable:true},
53 {key:"owner",label:"${_('Owner')}",sortable:true},
55 {key:"action",label:"${_('Action')}",sortable:false},
54 {key:"action",label:"${_('Action')}",sortable:false}
56 ];
55 ];
57 var counter = YUD.get('user_group_count');
56 var counter = YUD.get('user_group_count');
58 var sort_key = "group_name";
57 var sort_key = "group_name";
@@ -77,7 +77,7 b''
77 <script>
77 <script>
78 $(document).ready(function(){
78 $(document).ready(function(){
79 $("#lifetime").select2({
79 $("#lifetime").select2({
80 'dropdownAutoWidth': true,
80 'dropdownAutoWidth': true
81 });
81 });
82 })
82 })
83 </script>
83 </script>
@@ -46,18 +46,18 b''
46 {key: "active"},
46 {key: "active"},
47 {key: "admin"},
47 {key: "admin"},
48 {key: "extern_type"},
48 {key: "extern_type"},
49 {key: "action"},
49 {key: "action"}
50 ];
50 ];
51 var column_defs = [
51 var column_defs = [
52 {key:"gravatar",label:"",sortable:false,},
52 {key:"gravatar",label:"",sortable:false},
53 {key:"username",label:"${_('Username')}",sortable:true},
53 {key:"username",label:"${_('Username')}",sortable:true},
54 {key:"firstname",label:"${_('Firstname')}",sortable:true,},
54 {key:"firstname",label:"${_('Firstname')}",sortable:true},
55 {key:"lastname",label:"${_('Lastname')}",sortable:true,},
55 {key:"lastname",label:"${_('Lastname')}",sortable:true},
56 {key:"last_login",label:"${_('Last login')}",sortable:true, sortOptions: { sortFunction: lastLoginSort }},
56 {key:"last_login",label:"${_('Last login')}",sortable:true, sortOptions: { sortFunction: lastLoginSort }},
57 {key:"active",label:"${_('Active')}",sortable:true,},
57 {key:"active",label:"${_('Active')}",sortable:true},
58 {key:"admin",label:"${_('Admin')}",sortable:true,},
58 {key:"admin",label:"${_('Admin')}",sortable:true},
59 {key:"extern_type",label:"${_('Auth type')}",sortable:true,},
59 {key:"extern_type",label:"${_('Auth type')}",sortable:true},
60 {key:"action",label:"${_('Action')}",sortable:false},
60 {key:"action",label:"${_('Action')}",sortable:false}
61 ];
61 ];
62 var counter = YUD.get('user_count');
62 var counter = YUD.get('user_count');
63 var sort_key = "username";
63 var sort_key = "username";
@@ -449,7 +449,7 b''
449 }
449 }
450 })
450 })
451 }
451 }
452 },
452 }
453 });
453 });
454
454
455 $("#repo_switcher").on('select2-selecting', function(e){
455 $("#repo_switcher").on('select2-selecting', function(e){
@@ -553,7 +553,7 b''
553 ('g g', 'Goto my private gists page'),
553 ('g g', 'Goto my private gists page'),
554 ('g G', 'Goto my public gists page'),
554 ('g G', 'Goto my public gists page'),
555 ('n r', 'New repository page'),
555 ('n r', 'New repository page'),
556 ('n g', 'New gist page'),
556 ('n g', 'New gist page')
557 ]
557 ]
558 %>
558 %>
559 %for key, desc in elems:
559 %for key, desc in elems:
@@ -581,7 +581,7 b''
581 ('g f', 'Goto files page'),
581 ('g f', 'Goto files page'),
582 ('g F', 'Goto files page with file search activated'),
582 ('g F', 'Goto files page with file search activated'),
583 ('g o', 'Goto repository settings'),
583 ('g o', 'Goto repository settings'),
584 ('g O', 'Goto repository permissions settings'),
584 ('g O', 'Goto repository permissions settings')
585 ]
585 ]
586 %>
586 %>
587 %for key, desc in elems:
587 %for key, desc in elems:
@@ -53,9 +53,7 b''
53 'MSG_SORTDESC': "${_('Click to sort descending')}",
53 'MSG_SORTDESC': "${_('Click to sort descending')}",
54 'MSG_EMPTY': "${_('No records found.')}",
54 'MSG_EMPTY': "${_('No records found.')}",
55 'MSG_ERROR': "${_('Data error.')}",
55 'MSG_ERROR': "${_('Data error.')}",
56 'MSG_LOADING': "${_('Loading...')}",
56 'MSG_LOADING': "${_('Loading...')}"
57
58
59 };
57 };
60 var _TM = TRANSLATION_MAP;
58 var _TM = TRANSLATION_MAP;
61
59
@@ -55,7 +55,7 b' var myColumnDefs = ['
55 {key:"author",label:"${_('Author')}",sortable:true},
55 {key:"author",label:"${_('Author')}",sortable:true},
56 {key:"revision",label:"${_('Revision')}",sortable:true,
56 {key:"revision",label:"${_('Revision')}",sortable:true,
57 sortOptions: { sortFunction: revisionSort }},
57 sortOptions: { sortFunction: revisionSort }},
58 {key:"compare",label:"${_('Compare')}",sortable:false,},
58 {key:"compare",label:"${_('Compare')}",sortable:false}
59 ];
59 ];
60
60
61 var myDataSource = new YAHOO.util.DataSource(YUD.get("bookmarks_data"));
61 var myDataSource = new YAHOO.util.DataSource(YUD.get("bookmarks_data"));
@@ -71,19 +71,19 b' myDataSource.responseSchema = {'
71 {key:"author"},
71 {key:"author"},
72 {key:"last_rev_raw"},
72 {key:"last_rev_raw"},
73 {key:"revision"},
73 {key:"revision"},
74 {key:"compare"},
74 {key:"compare"}
75 ]
75 ]
76 };
76 };
77
77
78 var myDataTable = new YAHOO.widget.DataTable("table_wrap", myColumnDefs, myDataSource,
78 var myDataTable = new YAHOO.widget.DataTable("table_wrap", myColumnDefs, myDataSource,
79 {
79 {
80 sortedBy:{key:"name",dir:"asc"},
80 sortedBy:{key:"name",dir:"asc"},
81 MSG_SORTASC:"${_('Click to sort ascending')}",
81 MSG_SORTASC:"${_('Click to sort ascending')}",
82 MSG_SORTDESC:"${_('Click to sort descending')}",
82 MSG_SORTDESC:"${_('Click to sort descending')}",
83 MSG_EMPTY:"${_('No records found.')}",
83 MSG_EMPTY:"${_('No records found.')}",
84 MSG_ERROR:"${_('Data error.')}",
84 MSG_ERROR:"${_('Data error.')}",
85 MSG_LOADING:"${_('Loading...')}",
85 MSG_LOADING:"${_('Loading...')}"
86 }
86 }
87 );
87 );
88 myDataTable.subscribe('postRenderEvent',function(oArgs) {
88 myDataTable.subscribe('postRenderEvent',function(oArgs) {
89 tooltip_activate();
89 tooltip_activate();
@@ -54,7 +54,7 b' var myColumnDefs = ['
54 {key:"author",label:"${_('Author')}",sortable:true},
54 {key:"author",label:"${_('Author')}",sortable:true},
55 {key:"revision",label:"${_('Revision')}",sortable:true,
55 {key:"revision",label:"${_('Revision')}",sortable:true,
56 sortOptions: { sortFunction: revisionSort }},
56 sortOptions: { sortFunction: revisionSort }},
57 {key:"compare",label:"${_('Compare')}",sortable:false,},
57 {key:"compare",label:"${_('Compare')}",sortable:false}
58 ];
58 ];
59
59
60 var myDataSource = new YAHOO.util.DataSource(YUD.get("branches_data"));
60 var myDataSource = new YAHOO.util.DataSource(YUD.get("branches_data"));
@@ -70,19 +70,19 b' myDataSource.responseSchema = {'
70 {key:"author"},
70 {key:"author"},
71 {key:"last_rev_raw"},
71 {key:"last_rev_raw"},
72 {key:"revision"},
72 {key:"revision"},
73 {key:"compare"},
73 {key:"compare"}
74 ]
74 ]
75 };
75 };
76
76
77 var myDataTable = new YAHOO.widget.DataTable("table_wrap", myColumnDefs, myDataSource,
77 var myDataTable = new YAHOO.widget.DataTable("table_wrap", myColumnDefs, myDataSource,
78 {
78 {
79 sortedBy:{key:"name",dir:"asc"},
79 sortedBy:{key:"name",dir:"asc"},
80 MSG_SORTASC:"${_('Click to sort ascending')}",
80 MSG_SORTASC:"${_('Click to sort ascending')}",
81 MSG_SORTDESC:"${_('Click to sort descending')}",
81 MSG_SORTDESC:"${_('Click to sort descending')}",
82 MSG_EMPTY:"${_('No records found.')}",
82 MSG_EMPTY:"${_('No records found.')}",
83 MSG_ERROR:"${_('Data error.')}",
83 MSG_ERROR:"${_('Data error.')}",
84 MSG_LOADING:"${_('Loading...')}",
84 MSG_LOADING:"${_('Loading...')}"
85 }
85 }
86 );
86 );
87 myDataTable.subscribe('postRenderEvent',function(oArgs) {
87 myDataTable.subscribe('postRenderEvent',function(oArgs) {
88 tooltip_activate();
88 tooltip_activate();
@@ -270,7 +270,7 b''
270 // change branch filter
270 // change branch filter
271 $("#branch_filter").select2({
271 $("#branch_filter").select2({
272 dropdownAutoWidth: true,
272 dropdownAutoWidth: true,
273 minimumInputLength: 1,
273 minimumInputLength: 1
274 });
274 });
275
275
276 $("#branch_filter").change(function(e){
276 $("#branch_filter").change(function(e){
@@ -241,7 +241,7 b''
241 .replace('__url__', pyroutes.url('changeset_home', {'repo_name': '${c.repo_name}','revision': data.results[1].raw_id}));
241 .replace('__url__', pyroutes.url('changeset_home', {'repo_name': '${c.repo_name}','revision': data.results[1].raw_id}));
242 $('#child_link').html(_html);
242 $('#child_link').html(_html);
243 }
243 }
244 },
244 }
245 });
245 });
246 e.preventDefault();
246 e.preventDefault();
247 }
247 }
@@ -278,12 +278,11 b''
278 .replace('__url__', pyroutes.url('changeset_home', {'repo_name': '${c.repo_name}','revision': data.results[1].raw_id}));
278 .replace('__url__', pyroutes.url('changeset_home', {'repo_name': '${c.repo_name}','revision': data.results[1].raw_id}));
279 $('#parent_link').html(_html);
279 $('#parent_link').html(_html);
280 }
280 }
281 },
281 }
282 });
282 });
283 e.preventDefault();
283 e.preventDefault();
284 }
284 }
285 })
285 })
286
287 })
286 })
288
287
289 </script>
288 </script>
@@ -64,7 +64,7 b''
64 org_ref_type=c.a_ref_type, org_ref_name=c.a_ref_name,
64 org_ref_type=c.a_ref_type, org_ref_name=c.a_ref_name,
65 other_repo=c.cs_repo.repo_name,
65 other_repo=c.cs_repo.repo_name,
66 other_ref_type=c.cs_ref_type, other_ref_name=c.cs_ref_name,
66 other_ref_type=c.cs_ref_type, other_ref_name=c.cs_ref_name,
67 merge='1'),
67 merge='1')
68 )}
68 )}
69 </div>
69 </div>
70 <div style="font-size:1.1em;font-weight: bold;clear:both;padding-top:10px">
70 <div style="font-size:1.1em;font-weight: bold;clear:both;padding-top:10px">
@@ -134,7 +134,7 b''
134 }
134 }
135 })
135 })
136 }
136 }
137 },
137 }
138 });
138 });
139 $("#compare_other").select2({
139 $("#compare_other").select2({
140 placeholder: "${'%s@%s' % (c.cs_repo.repo_name, c.cs_ref_name)}",
140 placeholder: "${'%s@%s' % (c.cs_repo.repo_name, c.cs_ref_name)}",
@@ -174,7 +174,7 b''
174 }
174 }
175 })
175 })
176 }
176 }
177 },
177 }
178 });
178 });
179
179
180 var values_changed = function() {
180 var values_changed = function() {
@@ -92,7 +92,7 b" var orig2_url = '${h.url('files_raw_home"
92 else{
92 else{
93 $.ajax(orig2_url, {dataType: 'text', success: setValue});
93 $.ajax(orig2_url, {dataType: 'text', success: setValue});
94 }
94 }
95 },
95 }
96 });
96 });
97 $('#ignorews').change(function(e){
97 $('#ignorews').change(function(e){
98 var val = e.currentTarget.checked;
98 var val = e.currentTarget.checked;
@@ -182,7 +182,7 b' var callbacks = function(State){'
182 }
182 }
183 })
183 })
184 }
184 }
185 },
185 }
186 });
186 });
187 $('#show_authors').on('click', function(){
187 $('#show_authors').on('click', function(){
188 $.ajax({
188 $.ajax({
@@ -237,7 +237,7 b' var callbacks = function(State){'
237 // change branch filter
237 // change branch filter
238 $("#branch_selector").select2({
238 $("#branch_selector").select2({
239 dropdownAutoWidth: true,
239 dropdownAutoWidth: true,
240 minimumInputLength: 1,
240 minimumInputLength: 1
241 });
241 });
242
242
243 $("#branch_selector").change(function(e){
243 $("#branch_selector").change(function(e){
@@ -108,7 +108,7 b''
108 'dropdownAutoWidth': true
108 'dropdownAutoWidth': true
109 });
109 });
110 $("#landing_rev").select2({
110 $("#landing_rev").select2({
111 'minimumResultsForSearch': -1,
111 'minimumResultsForSearch': -1
112 });
112 });
113 $('#repo_name').focus();
113 $('#repo_name').focus();
114 })
114 })
@@ -97,7 +97,7 b''
97 {key:"last_changeset"},
97 {key:"last_changeset"},
98 {key:"last_rev_raw"},
98 {key:"last_rev_raw"},
99 {key:"owner"},
99 {key:"owner"},
100 {key:"atom"},
100 {key:"atom"}
101 ]
101 ]
102 };
102 };
103 myDataSource.doBeforeCallback = function(req,raw,res,cb) {
103 myDataSource.doBeforeCallback = function(req,raw,res,cb) {
@@ -131,7 +131,7 b''
131 {key:"last_changeset",label:"${_('Tip')}",sortable:true,
131 {key:"last_changeset",label:"${_('Tip')}",sortable:true,
132 sortOptions: { sortFunction: revisionSort }},
132 sortOptions: { sortFunction: revisionSort }},
133 {key:"owner",label:"${_('Owner')}",sortable:true},
133 {key:"owner",label:"${_('Owner')}",sortable:true},
134 {key:"atom",label:"",sortable:false},
134 {key:"atom",label:"",sortable:false}
135 ];
135 ];
136
136
137 var myDataTable = new YAHOO.widget.DataTable("repos_list_wrap", myColumnDefs, myDataSource,{
137 var myDataTable = new YAHOO.widget.DataTable("repos_list_wrap", myColumnDefs, myDataSource,{
@@ -142,7 +142,7 b''
142 MSG_SORTDESC:"${_('Click to sort descending')}",
142 MSG_SORTDESC:"${_('Click to sort descending')}",
143 MSG_EMPTY:"${_('No repositories found.')}",
143 MSG_EMPTY:"${_('No repositories found.')}",
144 MSG_ERROR:"${_('Data error.')}",
144 MSG_ERROR:"${_('Data error.')}",
145 MSG_LOADING:"${_('Loading...')}",
145 MSG_LOADING:"${_('Loading...')}"
146 }
146 }
147 );
147 );
148 myDataTable.subscribe('postRenderEvent',function(oArgs) {
148 myDataTable.subscribe('postRenderEvent',function(oArgs) {
@@ -138,7 +138,7 b''
138
138
139 var tabs = {
139 var tabs = {
140 'watched': show_watched,
140 'watched': show_watched,
141 'my': show_my,
141 'my': show_my
142 }
142 }
143 var url = location.href.split('#');
143 var url = location.href.split('#');
144 if (url[1]) {
144 if (url[1]) {
@@ -161,7 +161,7 b''
161 {key:"name"},
161 {key:"name"},
162 {key:"last_changeset"},
162 {key:"last_changeset"},
163 {key:"last_rev_raw"},
163 {key:"last_rev_raw"},
164 {key:"action"},
164 {key:"action"}
165 ]
165 ]
166 };
166 };
167 myDataSource.doBeforeCallback = function(req,raw,res,cb) {
167 myDataSource.doBeforeCallback = function(req,raw,res,cb) {
@@ -189,7 +189,7 b''
189 sortOptions: { sortFunction: nameSort }},
189 sortOptions: { sortFunction: nameSort }},
190 {key:"last_changeset",label:"${_('Tip')}",sortable:true,
190 {key:"last_changeset",label:"${_('Tip')}",sortable:true,
191 sortOptions: { sortFunction: revisionSort }},
191 sortOptions: { sortFunction: revisionSort }},
192 {key:"action",label:"${_('Action')}",sortable:false},
192 {key:"action",label:"${_('Action')}",sortable:false}
193 ];
193 ];
194
194
195 var myDataTable = new YAHOO.widget.DataTable("watched_repos_list_wrap", myColumnDefs, myDataSource,{
195 var myDataTable = new YAHOO.widget.DataTable("watched_repos_list_wrap", myColumnDefs, myDataSource,{
@@ -200,7 +200,7 b''
200 MSG_SORTDESC:"${_('Click to sort descending')}",
200 MSG_SORTDESC:"${_('Click to sort descending')}",
201 MSG_EMPTY:"${_('No records found.')}",
201 MSG_EMPTY:"${_('No records found.')}",
202 MSG_ERROR:"${_('Data error.')}",
202 MSG_ERROR:"${_('Data error.')}",
203 MSG_LOADING:"${_('Loading...')}",
203 MSG_LOADING:"${_('Loading...')}"
204 }
204 }
205 );
205 );
206 myDataTable.subscribe('postRenderEvent',function(oArgs) {
206 myDataTable.subscribe('postRenderEvent',function(oArgs) {
@@ -252,7 +252,7 b''
252 {key:"name"},
252 {key:"name"},
253 {key:"last_changeset"},
253 {key:"last_changeset"},
254 {key:"last_rev_raw"},
254 {key:"last_rev_raw"},
255 {key:"action"},
255 {key:"action"}
256 ]
256 ]
257 };
257 };
258 myDataSource.doBeforeCallback = function(req,raw,res,cb) {
258 myDataSource.doBeforeCallback = function(req,raw,res,cb) {
@@ -280,7 +280,7 b''
280 sortOptions: { sortFunction: nameSort }},
280 sortOptions: { sortFunction: nameSort }},
281 {key:"last_changeset",label:"${_('Tip')}",sortable:true,
281 {key:"last_changeset",label:"${_('Tip')}",sortable:true,
282 sortOptions: { sortFunction: revisionSort }},
282 sortOptions: { sortFunction: revisionSort }},
283 {key:"action",label:"${_('Action')}",sortable:false},
283 {key:"action",label:"${_('Action')}",sortable:false}
284 ];
284 ];
285
285
286 var myDataTable = new YAHOO.widget.DataTable("repos_list_wrap", myColumnDefs, myDataSource,{
286 var myDataTable = new YAHOO.widget.DataTable("repos_list_wrap", myColumnDefs, myDataSource,{
@@ -291,7 +291,7 b''
291 MSG_SORTDESC:"${_('Click to sort descending')}",
291 MSG_SORTDESC:"${_('Click to sort descending')}",
292 MSG_EMPTY:"${_('No records found.')}",
292 MSG_EMPTY:"${_('No records found.')}",
293 MSG_ERROR:"${_('Data error.')}",
293 MSG_ERROR:"${_('Data error.')}",
294 MSG_LOADING:"${_('Loading...')}",
294 MSG_LOADING:"${_('Loading...')}"
295 }
295 }
296 );
296 );
297 myDataTable.subscribe('postRenderEvent',function(oArgs) {
297 myDataTable.subscribe('postRenderEvent',function(oArgs) {
@@ -78,7 +78,7 b''
78 %if c.captcha_active:
78 %if c.captcha_active:
79 Recaptcha.create("${c.captcha_public_key}", "recaptcha",
79 Recaptcha.create("${c.captcha_public_key}", "recaptcha",
80 {
80 {
81 theme: "white",
81 theme: "white"
82 }
82 }
83 );
83 );
84 %endif
84 %endif
@@ -177,7 +177,7 b''
177
177
178 // re-populate the select2 thingie
178 // re-populate the select2 thingie
179 $("#other_ref").select2({
179 $("#other_ref").select2({
180 dropdownAutoWidth: true,
180 dropdownAutoWidth: true
181 });
181 });
182
182
183 loadPreview();
183 loadPreview();
@@ -210,7 +210,7 b''
210 '__org_repo__': org_repo,
210 '__org_repo__': org_repo,
211 '__org_ref_name__': org_ref[2],
211 '__org_ref_name__': org_ref[2],
212 '__other_repo__': other_repo,
212 '__other_repo__': other_repo,
213 '__other_ref_name__': other_ref[2],
213 '__other_ref_name__': other_ref[2]
214 }; // gather the org/other ref and repo here
214 }; // gather the org/other ref and repo here
215
215
216 for (k in rev_data){
216 for (k in rev_data){
@@ -226,26 +226,26 b''
226
226
227 $(document).ready(function(){
227 $(document).ready(function(){
228 $("#org_repo").select2({
228 $("#org_repo").select2({
229 dropdownAutoWidth: true,
229 dropdownAutoWidth: true
230 });
230 });
231 ## (org_repo can't change)
231 ## (org_repo can't change)
232
232
233 $("#org_ref").select2({
233 $("#org_ref").select2({
234 dropdownAutoWidth: true,
234 dropdownAutoWidth: true
235 });
235 });
236 $("#org_ref").on("change", function(e){
236 $("#org_ref").on("change", function(e){
237 loadPreview();
237 loadPreview();
238 });
238 });
239
239
240 $("#other_repo").select2({
240 $("#other_repo").select2({
241 dropdownAutoWidth: true,
241 dropdownAutoWidth: true
242 });
242 });
243 $("#other_repo").on("change", function(e){
243 $("#other_repo").on("change", function(e){
244 otherrepoChanged();
244 otherrepoChanged();
245 });
245 });
246
246
247 $("#other_ref").select2({
247 $("#other_ref").select2({
248 dropdownAutoWidth: true,
248 dropdownAutoWidth: true
249 });
249 });
250 $("#other_ref").on("change", function(e){
250 $("#other_ref").on("change", function(e){
251 loadPreview();
251 loadPreview();
@@ -126,7 +126,7 b''
126 %if c.captcha_active:
126 %if c.captcha_active:
127 Recaptcha.create("${c.captcha_public_key}", "recaptcha",
127 Recaptcha.create("${c.captcha_public_key}", "recaptcha",
128 {
128 {
129 theme: "white",
129 theme: "white"
130 }
130 }
131 );
131 );
132 %endif
132 %endif
@@ -67,8 +67,8 b''
67 <div class="select">
67 <div class="select">
68 ${h.select('type',c.cur_type,[('content',_('File contents')),
68 ${h.select('type',c.cur_type,[('content',_('File contents')),
69 ('commit',_('Commit messages')),
69 ('commit',_('Commit messages')),
70 ('path',_('File names')),
70 ('path',_('File names'))
71 ##('repository',_('Repository names')),
71 ##('repository',_('Repository names'))
72 ])}
72 ])}
73 </div>
73 </div>
74 </div>
74 </div>
@@ -138,8 +138,8 b' function SummaryPlot(from,to,dataset,ove'
138 var initial_ranges = {
138 var initial_ranges = {
139 "xaxis":{
139 "xaxis":{
140 "from":from,
140 "from":from,
141 "to":to,
141 "to":to
142 },
142 }
143 };
143 };
144 var dataset = dataset;
144 var dataset = dataset;
145 var overview_dataset = [overview_dataset];
145 var overview_dataset = [overview_dataset];
@@ -149,31 +149,31 b' function SummaryPlot(from,to,dataset,ove'
149 var overviewContainer = YUD.get('overview');
149 var overviewContainer = YUD.get('overview');
150
150
151 var plot_options = {
151 var plot_options = {
152 bars: {show:true,align:'center',lineWidth:4},
152 bars: {show:true, align: 'center', lineWidth: 4},
153 legend: {show:true, container:"legend_container"},
153 legend: {show:true, container: "legend_container"},
154 points: {show:true,radius:0,fill:false},
154 points: {show:true, radius: 0, fill: false},
155 yaxis: {tickDecimals:0,},
155 yaxis: {tickDecimals: 0},
156 xaxis: {
156 xaxis: {
157 mode: "time",
157 mode: "time",
158 timeformat: "%d/%m",
158 timeformat: "%d/%m",
159 min:from,
159 min: from,
160 max:to,
160 max: to
161 },
161 },
162 grid: {
162 grid: {
163 hoverable: true,
163 hoverable: true,
164 clickable: true,
164 clickable: true,
165 autoHighlight:true,
165 autoHighlight: true,
166 color: "#999"
166 color: "#999"
167 },
167 },
168 //selection: {mode: "x"}
168 //selection: {mode: "x"}
169 };
169 };
170 var overview_options = {
170 var overview_options = {
171 legend:{show:false},
171 legend:{show:false},
172 bars: {show:true,barWidth: 2,},
172 bars: {show:true, barWidth: 2},
173 shadowSize: 0,
173 shadowSize: 0,
174 xaxis: {mode: "time", timeformat: "%d/%m/%y",},
174 xaxis: {mode: "time", timeformat: "%d/%m/%y"},
175 yaxis: {ticks: 3, min: 0,tickDecimals:0,},
175 yaxis: {ticks: 3, min: 0, tickDecimals:0},
176 grid: {color: "#999",},
176 grid: {color: "#999"},
177 selection: {mode: "x"}
177 selection: {mode: "x"}
178 };
178 };
179
179
@@ -186,10 +186,10 b' function SummaryPlot(from,to,dataset,ove'
186 "commits":0,
186 "commits":0,
187 "added":0,
187 "added":0,
188 "changed":0,
188 "changed":0,
189 "removed":0,
189 "removed":0
190 }],
190 }],
191 "schema":["commits"],
191 "schema":["commits"],
192 "color":'#ffffff',
192 "color":'#ffffff'
193 }
193 }
194 }
194 }
195
195
@@ -305,9 +305,9 b' function SummaryPlot(from,to,dataset,ove'
305 xaxis: {
305 xaxis: {
306 min: cur_ranges.xaxis.from,
306 min: cur_ranges.xaxis.from,
307 max: cur_ranges.xaxis.to,
307 max: cur_ranges.xaxis.to,
308 mode:"time",
308 mode: "time",
309 timeformat: "%d/%m",
309 timeformat: "%d/%m"
310 },
310 }
311 });
311 });
312 if (!new_data){
312 if (!new_data){
313 new_data = [[0,1]];
313 new_data = [[0,1]];
@@ -340,8 +340,8 b' function SummaryPlot(from,to,dataset,ove'
340 min: ranges.xaxis.from,
340 min: ranges.xaxis.from,
341 max: ranges.xaxis.to,
341 max: ranges.xaxis.to,
342 mode:"time",
342 mode:"time",
343 timeformat: "%d/%m",
343 timeformat: "%d/%m"
344 },
344 }
345 });
345 });
346 // do the zooming
346 // do the zooming
347 plot = YAHOO.widget.Flot(plotContainer, data, new_options);
347 plot = YAHOO.widget.Flot(plotContainer, data, new_options);
@@ -288,7 +288,7 b" summary = lambda n:{False:'summary-short"
288 }
288 }
289 })
289 })
290 }
290 }
291 },
291 }
292 });
292 });
293 // on change of download options
293 // on change of download options
294 $('#download_options').change(function(e){
294 $('#download_options').change(function(e){
@@ -1,6 +1,6 b''
1 ## -*- coding: utf-8 -*-
1 ## -*- coding: utf-8 -*-
2 <li>
2 <li>
3 <a href="${h.url('branches_home',repo_name=c.repo_name)}" class="childs"><i class="icon-code-fork"></i> ${'%s (%s)' % (_('Branches'),len(c.db_repo_scm_instance.branches.values()),)}</a>
3 <a href="${h.url('branches_home',repo_name=c.repo_name)}" class="childs"><i class="icon-code-fork"></i> ${'%s (%s)' % (_('Branches'),len(c.db_repo_scm_instance.branches.values()))}</a>
4 <ul>
4 <ul>
5 %if c.db_repo_scm_instance.branches.values():
5 %if c.db_repo_scm_instance.branches.values():
6 %for cnt,branch in enumerate(c.db_repo_scm_instance.branches.items()):
6 %for cnt,branch in enumerate(c.db_repo_scm_instance.branches.items()):
@@ -22,7 +22,7 b''
22 </li>
22 </li>
23 %endif
23 %endif
24 <li>
24 <li>
25 <a href="${h.url('tags_home',repo_name=c.repo_name)}" class="childs"><i class="icon-tag"></i> ${'%s (%s)' % (_('Tags'),len(c.db_repo_scm_instance.tags.values()),)}</a>
25 <a href="${h.url('tags_home',repo_name=c.repo_name)}" class="childs"><i class="icon-tag"></i> ${'%s (%s)' % (_('Tags'),len(c.db_repo_scm_instance.tags.values()))}</a>
26 <ul>
26 <ul>
27 %if c.db_repo_scm_instance.tags.values():
27 %if c.db_repo_scm_instance.tags.values():
28 %for cnt,tag in enumerate(c.db_repo_scm_instance.tags.items()):
28 %for cnt,tag in enumerate(c.db_repo_scm_instance.tags.items()):
@@ -35,7 +35,7 b''
35 </li>
35 </li>
36 %if c.db_repo_scm_instance.alias == 'hg':
36 %if c.db_repo_scm_instance.alias == 'hg':
37 <li>
37 <li>
38 <a href="${h.url('bookmarks_home',repo_name=c.repo_name)}" class="childs"><i class="icon-bookmark"></i> ${'%s (%s)' % (_('Bookmarks'),len(c.db_repo_scm_instance.bookmarks.values()),)}</a>
38 <a href="${h.url('bookmarks_home',repo_name=c.repo_name)}" class="childs"><i class="icon-bookmark"></i> ${'%s (%s)' % (_('Bookmarks'),len(c.db_repo_scm_instance.bookmarks.values()))}</a>
39 <ul>
39 <ul>
40 %if c.db_repo_scm_instance.bookmarks.values():
40 %if c.db_repo_scm_instance.bookmarks.values():
41 %for cnt,book in enumerate(c.db_repo_scm_instance.bookmarks.items()):
41 %for cnt,book in enumerate(c.db_repo_scm_instance.bookmarks.items()):
@@ -55,7 +55,7 b' var myColumnDefs = ['
55 {key:"author",label:"${_('Author')}",sortable:true},
55 {key:"author",label:"${_('Author')}",sortable:true},
56 {key:"revision",label:"${_('Revision')}",sortable:true,
56 {key:"revision",label:"${_('Revision')}",sortable:true,
57 sortOptions: { sortFunction: revisionSort }},
57 sortOptions: { sortFunction: revisionSort }},
58 {key:"compare",label:"${_('Compare')}",sortable:false,},
58 {key:"compare",label:"${_('Compare')}",sortable:false}
59 ];
59 ];
60
60
61 var myDataSource = new YAHOO.util.DataSource(YUD.get("tags_data"));
61 var myDataSource = new YAHOO.util.DataSource(YUD.get("tags_data"));
@@ -71,7 +71,7 b' myDataSource.responseSchema = {'
71 {key:"author"},
71 {key:"author"},
72 {key:"last_rev_raw"},
72 {key:"last_rev_raw"},
73 {key:"revision"},
73 {key:"revision"},
74 {key:"compare"},
74 {key:"compare"}
75 ]
75 ]
76 };
76 };
77
77
@@ -82,7 +82,7 b' var myDataTable = new YAHOO.widget.DataT'
82 MSG_SORTDESC:"${_('Click to sort descending')}",
82 MSG_SORTDESC:"${_('Click to sort descending')}",
83 MSG_EMPTY:"${_('No records found.')}",
83 MSG_EMPTY:"${_('No records found.')}",
84 MSG_ERROR:"${_('Data error.')}",
84 MSG_ERROR:"${_('Data error.')}",
85 MSG_LOADING:"${_('Loading...')}",
85 MSG_LOADING:"${_('Loading...')}"
86 }
86 }
87 );
87 );
88 myDataTable.subscribe('postRenderEvent',function(oArgs) {
88 myDataTable.subscribe('postRenderEvent',function(oArgs) {
General Comments 0
You need to be logged in to leave comments. Login now