Show More
@@ -2616,7 +2616,7 b' div.options a:hover' | |||||
2616 | { |
|
2616 | { | |
2617 | margin: 2px 10px 0 0; |
|
2617 | margin: 2px 10px 0 0; | |
2618 | padding: 5px 0 0 5px; |
|
2618 | padding: 5px 0 0 5px; | |
2619 |
width: |
|
2619 | width: 100px; | |
2620 | float: left; |
|
2620 | float: left; | |
2621 | text-align: right; |
|
2621 | text-align: right; | |
2622 | } |
|
2622 | } | |
@@ -2647,7 +2647,7 b' div.options a:hover' | |||||
2647 | { |
|
2647 | { | |
2648 | margin: 0; |
|
2648 | margin: 0; | |
2649 | padding: 7px 7px 6px 7px; |
|
2649 | padding: 7px 7px 6px 7px; | |
2650 |
width: 2 |
|
2650 | width: 245px; | |
2651 | background: #FFFFFF; |
|
2651 | background: #FFFFFF; | |
2652 | border-top: 1px solid #b3b3b3; |
|
2652 | border-top: 1px solid #b3b3b3; | |
2653 | border-left: 1px solid #b3b3b3; |
|
2653 | border-left: 1px solid #b3b3b3; | |
@@ -3316,7 +3316,13 b' table#permissions_manage{' | |||||
3316 |
|
3316 | |||
3317 | } |
|
3317 | } | |
3318 | table#permissions_manage span.private_repo_msg{ |
|
3318 | table#permissions_manage span.private_repo_msg{ | |
3319 |
|
|
3319 | font-size: 0.8em; | |
|
3320 | opacity:0.6; | |||
|
3321 | ||||
|
3322 | } | |||
|
3323 | table#permissions_manage td.private_repo_msg{ | |||
|
3324 | font-size: 0.8em; | |||
|
3325 | ||||
3320 | } |
|
3326 | } | |
3321 | table#permissions_manage tr#add_perm_input td{ |
|
3327 | table#permissions_manage tr#add_perm_input td{ | |
3322 | vertical-align:middle; |
|
3328 | vertical-align:middle; |
@@ -84,12 +84,12 b'' | |||||
84 | %for r2p in c.repo_info.repo2perm: |
|
84 | %for r2p in c.repo_info.repo2perm: | |
85 | %if r2p.user.username =='default' and c.repo_info.private: |
|
85 | %if r2p.user.username =='default' and c.repo_info.private: | |
86 | <tr> |
|
86 | <tr> | |
87 |
<td colspan=" |
|
87 | <td colspan="4"> | |
88 | <span class="private_repo_msg"> |
|
88 | <span class="private_repo_msg"> | |
89 |
${_(' |
|
89 | ${_('private repository')} | |
90 | </span> |
|
90 | </span> | |
91 | </td> |
|
91 | </td> | |
92 | <td>${r2p.user.username}</td> |
|
92 | <td class="private_repo_msg">${r2p.user.username}</td> | |
93 | </tr> |
|
93 | </tr> | |
94 | %else: |
|
94 | %else: | |
95 | <tr id="id${id(r2p.user.username)}"> |
|
95 | <tr id="id${id(r2p.user.username)}"> | |
@@ -106,7 +106,8 b'' | |||||
106 | var sUrl = "${h.url('delete_repo_user',repo_name=c.repo_name)}"; |
|
106 | var sUrl = "${h.url('delete_repo_user',repo_name=c.repo_name)}"; | |
107 | var callback = { success:function(o){ |
|
107 | var callback = { success:function(o){ | |
108 | var tr = YAHOO.util.Dom.get(String(field_id)); |
|
108 | var tr = YAHOO.util.Dom.get(String(field_id)); | |
109 |
tr.parentNode.removeChild(tr);} |
|
109 | tr.parentNode.removeChild(tr);},failure:function(o){ | |
|
110 | alert("${_('Failed to remove user')}");},}; | |||
110 | var postData = '_method=delete&user_id='+user_id; |
|
111 | var postData = '_method=delete&user_id='+user_id; | |
111 | var request = YAHOO.util.Connect.asyncRequest('POST', sUrl, callback, postData);}; |
|
112 | var request = YAHOO.util.Connect.asyncRequest('POST', sUrl, callback, postData);}; | |
112 | </script> |
|
113 | </script> | |
@@ -117,7 +118,7 b'' | |||||
117 | %endif |
|
118 | %endif | |
118 | %endfor |
|
119 | %endfor | |
119 |
|
120 | |||
120 |
<tr id="add_perm_input" |
|
121 | <tr id="add_perm_input"> | |
121 | <td>${h.radio('perm_new_user','repository.none')}</td> |
|
122 | <td>${h.radio('perm_new_user','repository.none')}</td> | |
122 | <td>${h.radio('perm_new_user','repository.read')}</td> |
|
123 | <td>${h.radio('perm_new_user','repository.read')}</td> | |
123 | <td>${h.radio('perm_new_user','repository.write')}</td> |
|
124 | <td>${h.radio('perm_new_user','repository.write')}</td> |
@@ -28,6 +28,7 b'' | |||||
28 | <table class="table_disp"> |
|
28 | <table class="table_disp"> | |
29 | <tr class="header"> |
|
29 | <tr class="header"> | |
30 | <th class="left">${_('name')}</th> |
|
30 | <th class="left">${_('name')}</th> | |
|
31 | <th class="left">${_('owner')}</th> | |||
31 | <th class="left">${_('last revision')}</th> |
|
32 | <th class="left">${_('last revision')}</th> | |
32 | <th class="left">${_('action')}</th> |
|
33 | <th class="left">${_('action')}</th> | |
33 | </tr> |
|
34 | </tr> | |
@@ -40,6 +41,7 b'' | |||||
40 | <img alt="${_('public')}" src="/images/icons/lock_open.png"/> |
|
41 | <img alt="${_('public')}" src="/images/icons/lock_open.png"/> | |
41 | %endif |
|
42 | %endif | |
42 | ${h.link_to(repo['name'],h.url('edit_repo',repo_name=repo['name']))}</td> |
|
43 | ${h.link_to(repo['name'],h.url('edit_repo',repo_name=repo['name']))}</td> | |
|
44 | <td>${repo['contact']}</td> | |||
43 | <td>r${repo['rev']}:${repo['tip']}</td> |
|
45 | <td>r${repo['rev']}:${repo['tip']}</td> | |
44 | <td> |
|
46 | <td> | |
45 | ${h.form(url('repo', repo_name=repo['name']),method='delete')} |
|
47 | ${h.form(url('repo', repo_name=repo['name']),method='delete')} |
@@ -26,16 +26,16 b'' | |||||
26 | <div class="fields"> |
|
26 | <div class="fields"> | |
27 | <div class="field"> |
|
27 | <div class="field"> | |
28 | <div class="label"> |
|
28 | <div class="label"> | |
29 |
<label for=" |
|
29 | <label for="repo_name">${_('Name')}:</label> | |
30 | </div> |
|
30 | </div> | |
31 | <div class="input"> |
|
31 | <div class="input input-medium"> | |
32 | ${h.text('repo_name')} |
|
32 | ${h.text('repo_name')} | |
33 | </div> |
|
33 | </div> | |
34 | </div> |
|
34 | </div> | |
35 |
|
35 | |||
36 | <div class="field"> |
|
36 | <div class="field"> | |
37 | <div class="label label-textarea"> |
|
37 | <div class="label label-textarea"> | |
38 |
<label for=" |
|
38 | <label for="description">${_('Description')}:</label> | |
39 | </div> |
|
39 | </div> | |
40 | <div class="textarea text-area editor"> |
|
40 | <div class="textarea text-area editor"> | |
41 | ${h.textarea('description',cols=23,rows=5)} |
|
41 | ${h.textarea('description',cols=23,rows=5)} | |
@@ -44,7 +44,7 b'' | |||||
44 |
|
44 | |||
45 | <div class="field"> |
|
45 | <div class="field"> | |
46 | <div class="label label-checkbox"> |
|
46 | <div class="label label-checkbox"> | |
47 |
<label for=" |
|
47 | <label for="private">${_('Private')}:</label> | |
48 | </div> |
|
48 | </div> | |
49 | <div class="checkboxes"> |
|
49 | <div class="checkboxes"> | |
50 | ${h.checkbox('private',value="True")} |
|
50 | ${h.checkbox('private',value="True")} | |
@@ -53,7 +53,7 b'' | |||||
53 |
|
53 | |||
54 | <div class="field"> |
|
54 | <div class="field"> | |
55 | <div class="label"> |
|
55 | <div class="label"> | |
56 |
<label for=" |
|
56 | <label for="">${_('Permissions')}:</label> | |
57 | </div> |
|
57 | </div> | |
58 | <div class="input"> |
|
58 | <div class="input"> | |
59 | <table id="permissions_manage"> |
|
59 | <table id="permissions_manage"> | |
@@ -69,12 +69,12 b'' | |||||
69 | %for r2p in c.repo_info.repo2perm: |
|
69 | %for r2p in c.repo_info.repo2perm: | |
70 | %if r2p.user.username =='default' and c.repo_info.private: |
|
70 | %if r2p.user.username =='default' and c.repo_info.private: | |
71 | <tr> |
|
71 | <tr> | |
72 |
<td colspan=" |
|
72 | <td colspan="4"> | |
73 | <span class="private_repo_msg"> |
|
73 | <span class="private_repo_msg"> | |
74 |
${_(' |
|
74 | ${_('private repository')} | |
75 | </span> |
|
75 | </span> | |
76 | </td> |
|
76 | </td> | |
77 | <td>${r2p.user.username}</td> |
|
77 | <td class="private_repo_msg">${r2p.user.username}</td> | |
78 | </tr> |
|
78 | </tr> | |
79 | %else: |
|
79 | %else: | |
80 | <tr id="id${id(r2p.user.username)}"> |
|
80 | <tr id="id${id(r2p.user.username)}"> | |
@@ -91,7 +91,8 b'' | |||||
91 | var sUrl = "${h.url('delete_repo_user',repo_name=c.repo_name)}"; |
|
91 | var sUrl = "${h.url('delete_repo_user',repo_name=c.repo_name)}"; | |
92 | var callback = { success:function(o){ |
|
92 | var callback = { success:function(o){ | |
93 | var tr = YAHOO.util.Dom.get(String(field_id)); |
|
93 | var tr = YAHOO.util.Dom.get(String(field_id)); | |
94 |
tr.parentNode.removeChild(tr);} |
|
94 | tr.parentNode.removeChild(tr);},failure:function(o){ | |
|
95 | alert("${_('Failed to remove user')}");},}; | |||
95 | var postData = '_method=delete&user_id='+user_id; |
|
96 | var postData = '_method=delete&user_id='+user_id; | |
96 | var request = YAHOO.util.Connect.asyncRequest('POST', sUrl, callback, postData);}; |
|
97 | var request = YAHOO.util.Connect.asyncRequest('POST', sUrl, callback, postData);}; | |
97 | </script> |
|
98 | </script> | |
@@ -135,6 +136,9 b'' | |||||
135 | <script type="text/javascript"> |
|
136 | <script type="text/javascript"> | |
136 | YAHOO.util.Event.onDOMReady(function(){ |
|
137 | YAHOO.util.Event.onDOMReady(function(){ | |
137 | var D = YAHOO.util.Dom; |
|
138 | var D = YAHOO.util.Dom; | |
|
139 | if(!D.hasClass('perm_new_user_name','error')){ | |||
|
140 | D.setStyle('add_perm_input','display','none'); | |||
|
141 | } | |||
138 | YAHOO.util.Event.addListener('add_perm','click',function(){ |
|
142 | YAHOO.util.Event.addListener('add_perm','click',function(){ | |
139 | D.setStyle('add_perm_input','display',''); |
|
143 | D.setStyle('add_perm_input','display',''); | |
140 | D.setStyle('add_perm','opacity','0.6'); |
|
144 | D.setStyle('add_perm','opacity','0.6'); |
General Comments 0
You need to be logged in to leave comments.
Login now