Show More
@@ -19,7 +19,7 b' div.diffblock .code-header div{' | |||
|
19 | 19 | font-weight: bold; |
|
20 | 20 | } |
|
21 | 21 | div.diffblock .code-body{ |
|
22 |
background: # |
|
|
22 | background: #FFFFFF; | |
|
23 | 23 | } |
|
24 | 24 | div.diffblock pre.raw{ |
|
25 | 25 | background: #FFFFFF; |
@@ -6,15 +6,99 b'' | |||
|
6 | 6 | } |
|
7 | 7 | |
|
8 | 8 | a { |
|
9 |
color: # |
|
|
9 | color: #556CB5; | |
|
10 | 10 | text-decoration: none; |
|
11 | 11 | } |
|
12 | 12 | a:HOVER{ |
|
13 | 13 | text-decoration: underline; |
|
14 | 14 | } |
|
15 | ||
|
15 | 16 | /*** end of Initial Settings ***/ |
|
16 | 17 | |
|
18 | /*** ***/ | |
|
19 | .table_disp { | |
|
20 | border-left: 0px solid #666666; | |
|
21 | border-bottom: 1px solid #666666; | |
|
22 | border-right: 1px solid #666666; | |
|
23 | padding: 0px; | |
|
24 | margin: 0px; | |
|
25 | border-spacing: 0px; | |
|
26 | } | |
|
27 | ||
|
28 | .table_disp .header { | |
|
29 | border-top: 1px solid #666666; | |
|
30 | background-color: #556CB5; | |
|
31 | font-weight: bold; | |
|
32 | color: white; | |
|
33 | vertical-align: middle; | |
|
34 | padding: 3px 5px; | |
|
35 | text-align: left; | |
|
36 | font-size: 0.9em; | |
|
37 | } | |
|
38 | ||
|
39 | .table_disp .header td { | |
|
40 | padding: 4px; | |
|
41 | vertical-align: middle; | |
|
42 | border-top: 1px solid #AAAAAA; | |
|
43 | border-bottom: 2px solid #666666; | |
|
44 | } | |
|
45 | .table_disp td { | |
|
46 | border-left: 1px solid #AAAAAA; | |
|
47 | padding-left: 2px; | |
|
48 | padding-right: 0px; | |
|
49 | } | |
|
50 | ||
|
51 | table tr.parity0:hover,table tr.parity1:hover { | |
|
52 | background: #D5E1E6; | |
|
53 | } | |
|
54 | ||
|
55 | table tr.parity0 { | |
|
56 | background: #EAEAE9; | |
|
57 | } | |
|
58 | ||
|
59 | table tr.parity1 { | |
|
60 | background: #FFFFFF; | |
|
61 | } | |
|
62 | ||
|
63 | ||
|
64 | /*** ***/ | |
|
65 | ||
|
17 | 66 | /** common settings **/ |
|
67 | .add_icon{ | |
|
68 | background: url("/images/icons/add.png") no-repeat scroll 3px; | |
|
69 | height: 16px; | |
|
70 | padding-left: 20px; | |
|
71 | padding-top: 0px; | |
|
72 | text-align: left; | |
|
73 | ||
|
74 | } | |
|
75 | .edit_icon{ | |
|
76 | background: url("/images/icons/folder_edit.png") no-repeat scroll 3px; | |
|
77 | height: 16px; | |
|
78 | padding-left: 20px; | |
|
79 | padding-top: 0px; | |
|
80 | text-align: left; | |
|
81 | } | |
|
82 | ||
|
83 | .delete_icon{ | |
|
84 | background: url("/images/icons/delete.png") no-repeat scroll 3px; | |
|
85 | height: 16px; | |
|
86 | padding-left: 20px; | |
|
87 | padding-top: 0px; | |
|
88 | text-align: left; | |
|
89 | ||
|
90 | } | |
|
91 | ||
|
92 | .action_button{ | |
|
93 | border:0px; | |
|
94 | display: block; | |
|
95 | } | |
|
96 | .action_button:hover{ | |
|
97 | border:0px; | |
|
98 | font-style:italic; | |
|
99 | cursor: pointer; | |
|
100 | } | |
|
101 | ||
|
18 | 102 | div#main { |
|
19 | 103 | padding: 5px; |
|
20 | 104 | } |
@@ -121,15 +205,42 b' ul.page-nav li a:hover {' | |||
|
121 | 205 | } |
|
122 | 206 | |
|
123 | 207 | ul.submenu { |
|
124 |
margin: |
|
|
208 | margin: 5px 0px -20px 0px; | |
|
125 | 209 | list-style-type: none; |
|
126 | 210 | } |
|
127 | 211 | |
|
128 | 212 | ul.submenu li { |
|
129 | 213 | margin: 0 10px 0 0; |
|
130 |
font-size: |
|
|
214 | font-size: 0.9em; | |
|
215 | font-weight:bold; | |
|
131 | 216 | display: inline; |
|
132 | 217 | } |
|
218 | ul.submenu .repos { | |
|
219 | background: url("/images/icons/folder_edit.png") no-repeat scroll 3px; | |
|
220 | height: 16px; | |
|
221 | padding-left: 20px; | |
|
222 | padding-top: 0px; | |
|
223 | text-align: left; | |
|
224 | ||
|
225 | } | |
|
226 | ul.submenu .users { | |
|
227 | background: url("/images/icons/user_edit.png") no-repeat scroll 3px; | |
|
228 | height: 16px; | |
|
229 | padding-left: 20px; | |
|
230 | padding-top: 0px; | |
|
231 | text-align: left; | |
|
232 | } | |
|
233 | ul.submenu .permissions { | |
|
234 | background: url("/images/icons/folder_key.png") no-repeat scroll 3px; | |
|
235 | height: 16px; | |
|
236 | padding-left: 20px; | |
|
237 | padding-top: 0px; | |
|
238 | text-align: left; | |
|
239 | } | |
|
240 | ||
|
241 | ul.submenu .current_submenu { | |
|
242 | border-bottom: 2px solid #556CB5; | |
|
243 | } | |
|
133 | 244 | |
|
134 | 245 | h2 { |
|
135 | 246 | margin: 20px 0 10px; |
@@ -140,6 +251,7 b' h2 {' | |||
|
140 | 251 | font-size: 1.2em; |
|
141 | 252 | border-top: dotted 1px #D5E1E6; |
|
142 | 253 | font-weight: bold; |
|
254 | color:#556CB5; | |
|
143 | 255 | } |
|
144 | 256 | |
|
145 | 257 | h2.no-link { |
@@ -215,18 +327,6 b' p.normal {' | |||
|
215 | 327 | font-size: 1.2em; |
|
216 | 328 | } |
|
217 | 329 | |
|
218 | table tr.parity0:hover,table tr.parity1:hover { | |
|
219 | background: #D5E1E6; | |
|
220 | } | |
|
221 | ||
|
222 | table tr.parity0 { | |
|
223 | background: #EAEAE9; | |
|
224 | } | |
|
225 | ||
|
226 | table tr.parity1 { | |
|
227 | background: #FFFFFF; | |
|
228 | } | |
|
229 | ||
|
230 | 330 | span.logtags span { |
|
231 | 331 | background-repeat: no-repeat; |
|
232 | 332 | height: 16px; |
@@ -336,6 +436,9 b' dl.overview dt {' | |||
|
336 | 436 | width: 150px; |
|
337 | 437 | } |
|
338 | 438 | |
|
439 | #clone_url{ | |
|
440 | border: 0px; | |
|
441 | } | |
|
339 | 442 | /** end of summary **/ |
|
340 | 443 | |
|
341 | 444 | /** chagelog **/ |
@@ -651,10 +754,6 b' table.code-browser tbody td {' | |||
|
651 | 754 | text-align: left; |
|
652 | 755 | } |
|
653 | 756 | |
|
654 | .current_submenu { | |
|
655 | border-bottom: 2px solid; | |
|
656 | } | |
|
657 | ||
|
658 | 757 | #repos_list { |
|
659 | 758 | border: 1px solid #556CB5; |
|
660 | 759 | background: #FFFFFF; |
@@ -16,7 +16,6 b'' | |||
|
16 | 16 | %if c.admin_user: |
|
17 | 17 | <div> |
|
18 | 18 | <h2>Welcome ${c.admin_username}</h2> |
|
19 | ${_('Last actions')} | |
|
20 | 19 | <div id="user_log"> |
|
21 | 20 | ${c.log_data} |
|
22 | 21 | </div> |
@@ -1,7 +1,7 b'' | |||
|
1 | 1 | ## -*- coding: utf-8 -*- |
|
2 | 2 | %if c.users_log: |
|
3 | <table> | |
|
4 | <tr> | |
|
3 | <table class="table_disp"> | |
|
4 | <tr class="header"> | |
|
5 | 5 | <td>${_('Username')}</td> |
|
6 | 6 | <td>${_('Repository')}</td> |
|
7 | 7 | <td>${_('Action')}</td> |
@@ -15,18 +15,24 b'' | |||
|
15 | 15 | <%def name="main()"> |
|
16 | 16 | <div> |
|
17 | 17 | <h2>${_('Repositories administration')}</h2> |
|
18 | <table> | |
|
18 | <table class="table_disp"> | |
|
19 | <tr class="header"> | |
|
20 | <td>${_('name')}</td> | |
|
21 | <td>${_('last revision')}</td> | |
|
22 | <td>${_('action')}</td> | |
|
23 | </tr> | |
|
19 | 24 | %for cnt,repo in enumerate(c.repos_list): |
|
20 | 25 | <tr class="parity${cnt%2}"> |
|
21 | 26 | <td>${h.link_to(repo['name'],h.url('summary_home',repo_name=repo['name']))}</td> |
|
22 | 27 | <td>r${repo['rev']}:${repo['tip']}</td> |
|
23 | 28 | <td> |
|
24 | 29 | ${h.form(url('repo', id=repo['name']),method='delete')} |
|
25 |
${h.submit('remove',' |
|
|
30 | ${h.submit('remove','delete',class_="delete_icon action_button",onclick="return confirm('Confirm to delete this repository');")} | |
|
26 | 31 | ${h.end_form()} |
|
27 | 32 | </td> |
|
28 | 33 | </tr> |
|
29 | 34 | %endfor |
|
30 | 35 | </table> |
|
36 | <span class="add_icon">${h.link_to(u'add repo',h.url('new_repo'))}</span> | |
|
31 | 37 | </div> |
|
32 | 38 | </%def> |
@@ -15,13 +15,13 b'' | |||
|
15 | 15 | <%def name="main()"> |
|
16 | 16 | <div> |
|
17 | 17 | <h2>${_('Mercurial users')}</h2> |
|
18 | <table> | |
|
19 | <tr> | |
|
20 |
<t |
|
|
21 |
<t |
|
|
22 |
<t |
|
|
23 |
<t |
|
|
24 |
<t |
|
|
18 | <table class="table_disp"> | |
|
19 | <tr class="header"> | |
|
20 | <td>ID</td> | |
|
21 | <td>Username</td> | |
|
22 | <td>Active</td> | |
|
23 | <td>Admin</td> | |
|
24 | <td>Action</td> | |
|
25 | 25 | </tr> |
|
26 | 26 | %for user in c.users_list: |
|
27 | 27 | <tr> |
@@ -31,12 +31,12 b'' | |||
|
31 | 31 | <td>${user.admin}</td> |
|
32 | 32 | <td> |
|
33 | 33 | ${h.form(url('user', id=user.user_id),method='delete')} |
|
34 |
${h.submit('remove',' |
|
|
34 | ${h.submit('remove','delete',class_="delete_icon action_button")} | |
|
35 | 35 | ${h.end_form()} |
|
36 | 36 | </td> |
|
37 | 37 | </tr> |
|
38 | 38 | %endfor |
|
39 | 39 | </table> |
|
40 |
< |
|
|
40 | <span class="add_icon">${h.link_to(u'add user',h.url('new_user'))}</span> | |
|
41 | 41 | </div> |
|
42 | 42 | </%def> |
@@ -113,10 +113,10 b' def is_current(selected):' | |||
|
113 | 113 | %if current != None: |
|
114 | 114 | <div> |
|
115 | 115 | <ul class="submenu"> |
|
116 | <li ${is_current('repos')}>${h.link_to(u'repos',h.url('repos'))}</li> | |
|
117 | <li ${is_current('users')}>${h.link_to(u'users',h.url('users'))}</li> | |
|
116 | <li ${is_current('repos')}>${h.link_to(u'repos',h.url('repos'),class_='repos')}</li> | |
|
117 | <li ${is_current('users')}>${h.link_to(u'users',h.url('users'),class_='users')}</li> | |
|
118 | <li ${is_current('permissions')}>${h.link_to(u'permissions',h.url('permissions'),class_='permissions')}</li> | |
|
118 | 119 | </ul> |
|
119 | <br/> | |
|
120 | 120 | </div> |
|
121 | 121 | %endif |
|
122 | 122 | </%def> |
@@ -15,6 +15,22 b' from pylons_app.lib import filters' | |||
|
15 | 15 | <%def name="page_nav()"> |
|
16 | 16 | ${self.menu('summary')} |
|
17 | 17 | </%def> |
|
18 | ||
|
19 | <%def name="js()"> | |
|
20 | <script type="text/javascript" src="/js/yui/utilities/utilities.js"></script> | |
|
21 | <script type="text/javascript"> | |
|
22 | var E = YAHOO.util.Event; | |
|
23 | var D = YAHOO.util.Dom; | |
|
24 | ||
|
25 | E.onDOMReady(function(e){ | |
|
26 | id = 'clone_url'; | |
|
27 | E.addListener(id,'click',function(e){ | |
|
28 | D.get('clone_url').select(); | |
|
29 | }) | |
|
30 | }) | |
|
31 | </script> | |
|
32 | </%def> | |
|
33 | ||
|
18 | 34 | <%def name="main()"> |
|
19 | 35 | <h2 class="no-link no-border">${_('Mercurial Repository Overview')}</h2> |
|
20 | 36 | <dl class="overview"> |
@@ -26,8 +42,8 b' from pylons_app.lib import filters' | |||
|
26 | 42 | <dd>${c.repo_info.contact}</dd> |
|
27 | 43 | <dt>${_('last change')}</dt> |
|
28 | 44 | <dd>${c.repo_info.last_change|n,filters.rfc822date} - ${c.repo_info.last_change|n,filters.age}</dd> |
|
29 | <dt>${_('url')}</dt> | |
|
30 | <dd><pre style="margin:0">hg clone <a href="${c.clone_repo_url}">${c.clone_repo_url}</a></pre></dd> | |
|
45 | <dt>${_('clone url')}</dt> | |
|
46 | <dd><input type="text" id="clone_url" readonly="readonly" value="hg clone ${c.clone_repo_url}" size="40"/></dd> | |
|
31 | 47 | <dt>${_('download')}</dt> |
|
32 | 48 | <dd> |
|
33 | 49 | %for cnt,archive in enumerate(c.repo_info._get_archives()): |
General Comments 0
You need to be logged in to leave comments.
Login now