Show More
@@ -1,42 +1,44 b'' | |||||
1 | ## -*- coding: utf-8 -*- |
|
1 | ## -*- coding: utf-8 -*- | |
2 | <%inherit file="/base/base.html"/> |
|
2 | <%inherit file="/base/base.html"/> | |
3 |
|
3 | |||
4 | <%def name="title()"> |
|
4 | <%def name="title()"> | |
5 | ${_('Add new repository')} |
|
5 | ${_('Add new repository')} | |
6 | </%def> |
|
6 | </%def> | |
7 |
|
7 | |||
8 | <%def name="breadcrumbs()"> |
|
8 | <%def name="breadcrumbs()"> | |
9 | ${h.link_to(u'Home',h.url('/'))} |
|
9 | ${h.link_to(u'Home',h.url('/'))} | |
10 | / |
|
10 | / | |
11 | ${h.link_to(u'Admin',h.url('admin_home'))} |
|
11 | ${h.link_to(u'Admin',h.url('admin_home'))} | |
12 | </%def> |
|
12 | </%def> | |
13 |
|
13 | |||
14 | <%def name="page_nav()"> |
|
14 | <%def name="page_nav()"> | |
|
15 | <ul class="page-nav"> | |||
15 | <li>${h.link_to(u'Home',h.url('/'))}</li> |
|
16 | <li>${h.link_to(u'Home',h.url('/'))}</li> | |
16 | <li class="current">${_('Admin')}</li> |
|
17 | <li class="current">${_('Admin')}</li> | |
|
18 | </ul> | |||
17 | </%def> |
|
19 | </%def> | |
18 |
|
20 | |||
19 | <%def name="main()"> |
|
21 | <%def name="main()"> | |
20 | <table cellspacing="0"> |
|
22 | <table cellspacing="0"> | |
21 | <tr> |
|
23 | <tr> | |
22 | <td><h1>${c.msg}</h1></td> |
|
24 | <td><h1>${c.msg}</h1></td> | |
23 | </tr> |
|
25 | </tr> | |
24 | <tr> |
|
26 | <tr> | |
25 | <td><h2>${c.new_repo}</h2></td> |
|
27 | <td><h2>${c.new_repo}</h2></td> | |
26 | </tr> |
|
28 | </tr> | |
27 | </table> |
|
29 | </table> | |
28 | </%def> |
|
30 | </%def> | |
29 |
|
31 | |||
30 |
|
32 | |||
31 |
|
33 | |||
32 |
|
34 | |||
33 |
|
35 | |||
34 |
|
36 | |||
35 |
|
37 | |||
36 |
|
38 | |||
37 |
|
39 | |||
38 |
|
40 | |||
39 |
|
41 | |||
40 |
|
42 | |||
41 |
|
43 | |||
42 |
|
44 |
@@ -1,41 +1,43 b'' | |||||
1 | <%inherit file="/base/base.html"/> |
|
1 | <%inherit file="/base/base.html"/> | |
2 | <%def name="title()"> |
|
2 | <%def name="title()"> | |
3 | ${_('Repository managment')} |
|
3 | ${_('Repository managment')} | |
4 | </%def> |
|
4 | </%def> | |
5 | <%def name="breadcrumbs()"> |
|
5 | <%def name="breadcrumbs()"> | |
6 | ${h.link_to(u'Home',h.url('/'))} |
|
6 | ${h.link_to(u'Home',h.url('/'))} | |
7 | / |
|
7 | / | |
8 | ${h.link_to(u'Admin',h.url('admin_home'))} |
|
8 | ${h.link_to(u'Admin',h.url('admin_home'))} | |
9 | / |
|
9 | / | |
10 | ${h.link_to(u'Repos managment',h.url('repos'))} |
|
10 | ${h.link_to(u'Repos managment',h.url('repos'))} | |
11 | </%def> |
|
11 | </%def> | |
12 | <%def name="page_nav()"> |
|
12 | <%def name="page_nav()"> | |
|
13 | <ul class="page-nav"> | |||
13 | <li>${h.link_to(u'Home',h.url('/'))}</li> |
|
14 | <li>${h.link_to(u'Home',h.url('/'))}</li> | |
14 | <li class="current">${_('Admin')}</li> |
|
15 | <li class="current">${_('Admin')}</li> | |
|
16 | </ul> | |||
15 | </%def> |
|
17 | </%def> | |
16 | <%def name="main()"> |
|
18 | <%def name="main()"> | |
17 | <ul class="submenu"> |
|
19 | <ul class="submenu"> | |
18 | <li> |
|
20 | <li> | |
19 | ${h.link_to(u'Repos',h.url('repos'), class_="current_submenu")} |
|
21 | ${h.link_to(u'Repos',h.url('repos'), class_="current_submenu")} | |
20 | </li> |
|
22 | </li> | |
21 | <li> |
|
23 | <li> | |
22 | ${h.link_to(u'Users',h.url('users'))} |
|
24 | ${h.link_to(u'Users',h.url('users'))} | |
23 | </li> |
|
25 | </li> | |
24 | </ul> |
|
26 | </ul> | |
25 | <div> |
|
27 | <div> | |
26 | <h2>${_('Mercurial repos')}</h2> |
|
28 | <h2>${_('Mercurial repos')}</h2> | |
27 | <table> |
|
29 | <table> | |
28 | %for cnt,repo in enumerate(c.repos_list): |
|
30 | %for cnt,repo in enumerate(c.repos_list): | |
29 | <tr class="parity${cnt%2}"> |
|
31 | <tr class="parity${cnt%2}"> | |
30 | <td>${h.link_to(repo['name'],h.url('summary_home',repo_name=repo['name']))}</td> |
|
32 | <td>${h.link_to(repo['name'],h.url('summary_home',repo_name=repo['name']))}</td> | |
31 | <td>r${repo['rev']}:${repo['tip']}</td> |
|
33 | <td>r${repo['rev']}:${repo['tip']}</td> | |
32 | <td> |
|
34 | <td> | |
33 | ${h.form(url('repo', id=repo['name']),method='delete')} |
|
35 | ${h.form(url('repo', id=repo['name']),method='delete')} | |
34 | ${h.submit('remove','remove',class_="submit",onclick="return confirm('Confirm to delete this repository');")} |
|
36 | ${h.submit('remove','remove',class_="submit",onclick="return confirm('Confirm to delete this repository');")} | |
35 | ${h.end_form()} |
|
37 | ${h.end_form()} | |
36 | </td> |
|
38 | </td> | |
37 | </tr> |
|
39 | </tr> | |
38 | %endfor |
|
40 | %endfor | |
39 | </table> |
|
41 | </table> | |
40 | </div> |
|
42 | </div> | |
41 | </%def> No newline at end of file |
|
43 | </%def> |
@@ -1,52 +1,54 b'' | |||||
1 | <%inherit file="/base/base.html"/> |
|
1 | <%inherit file="/base/base.html"/> | |
2 | <%def name="title()"> |
|
2 | <%def name="title()"> | |
3 | ${_('Repository managment')} |
|
3 | ${_('Repository managment')} | |
4 | </%def> |
|
4 | </%def> | |
5 | <%def name="breadcrumbs()"> |
|
5 | <%def name="breadcrumbs()"> | |
6 | ${h.link_to(u'Home',h.url('/'))} |
|
6 | ${h.link_to(u'Home',h.url('/'))} | |
7 | / |
|
7 | / | |
8 | ${h.link_to(u'Admin',h.url('admin_home'))} |
|
8 | ${h.link_to(u'Admin',h.url('admin_home'))} | |
9 | / |
|
9 | / | |
10 | ${h.link_to(u'Users managment',h.url('users'))} |
|
10 | ${h.link_to(u'Users managment',h.url('users'))} | |
11 | </%def> |
|
11 | </%def> | |
12 | <%def name="page_nav()"> |
|
12 | <%def name="page_nav()"> | |
13 | <li>${h.link_to(u'Home',h.url('/'))}</li> |
|
13 | <ul class="page-nav"> | |
14 | <li class="current">${_('Admin')}</li> |
|
14 | <li>${h.link_to(u'Home',h.url('/'))}</li> | |
|
15 | <li class="current">${_('Admin')}</li> | |||
|
16 | </ul> | |||
15 | </%def> |
|
17 | </%def> | |
16 | <%def name="main()"> |
|
18 | <%def name="main()"> | |
17 | <ul class="submenu"> |
|
19 | <ul class="submenu"> | |
18 | <li> |
|
20 | <li> | |
19 | ${h.link_to(u'Repos',h.url('repos'))} |
|
21 | ${h.link_to(u'Repos',h.url('repos'))} | |
20 | </li> |
|
22 | </li> | |
21 | <li> |
|
23 | <li> | |
22 | ${h.link_to(u'Users',h.url('users'), class_="current_submenu")} |
|
24 | ${h.link_to(u'Users',h.url('users'), class_="current_submenu")} | |
23 | </li> |
|
25 | </li> | |
24 | </ul> |
|
26 | </ul> | |
25 | <div> |
|
27 | <div> | |
26 | <h2>${_('Mercurial users')}</h2> |
|
28 | <h2>${_('Mercurial users')}</h2> | |
27 | <table> |
|
29 | <table> | |
28 | <tr> |
|
30 | <tr> | |
29 | <th>Id</th> |
|
31 | <th>Id</th> | |
30 | <th>Username</th> |
|
32 | <th>Username</th> | |
31 | <th>Active</th> |
|
33 | <th>Active</th> | |
32 | <th>Admin</th> |
|
34 | <th>Admin</th> | |
33 | <th>Action</th> |
|
35 | <th>Action</th> | |
34 | </tr> |
|
36 | </tr> | |
35 | %for user in c.users_list: |
|
37 | %for user in c.users_list: | |
36 | <tr> |
|
38 | <tr> | |
37 | <td>${user.user_id}</td> |
|
39 | <td>${user.user_id}</td> | |
38 | <td>${h.link_to(user.username,h.url('edit_user', id=user.user_id))}</td> |
|
40 | <td>${h.link_to(user.username,h.url('edit_user', id=user.user_id))}</td> | |
39 | <td>${user.active}</td> |
|
41 | <td>${user.active}</td> | |
40 | <td>${user.admin}</td> |
|
42 | <td>${user.admin}</td> | |
41 | <td> |
|
43 | <td> | |
42 | ${h.form(url('user', id=user.user_id),method='delete')} |
|
44 | ${h.form(url('user', id=user.user_id),method='delete')} | |
43 | ${h.submit('remove','remove',class_="submit")} |
|
45 | ${h.submit('remove','remove',class_="submit")} | |
44 | ${h.end_form()} |
|
46 | ${h.end_form()} | |
45 | </td> |
|
47 | </td> | |
46 | </tr> |
|
48 | </tr> | |
47 | %endfor |
|
49 | %endfor | |
48 | </table> |
|
50 | </table> | |
49 | <h3>${h.link_to(u'Add user',h.url('new_user'))}</h3> |
|
51 | <h3>${h.link_to(u'Add user',h.url('new_user'))}</h3> | |
50 | </div> |
|
52 | </div> | |
51 |
|
53 | |||
52 | </%def> No newline at end of file |
|
54 | </%def> |
@@ -1,35 +1,37 b'' | |||||
1 | ## -*- coding: utf-8 -*- |
|
1 | ## -*- coding: utf-8 -*- | |
2 | <%! |
|
2 | <%! | |
3 | from pylons_app.lib import filters |
|
3 | from pylons_app.lib import filters | |
4 | %> |
|
4 | %> | |
5 | <%inherit file="./../base/base.html"/> |
|
5 | <%inherit file="./../base/base.html"/> | |
6 |
|
6 | |||
7 | <%def name="title()"> |
|
7 | <%def name="title()"> | |
8 | ${_('Repository not found')} |
|
8 | ${_('Repository not found')} | |
9 | </%def> |
|
9 | </%def> | |
10 |
|
10 | |||
11 | <%def name="breadcrumbs()"> |
|
11 | <%def name="breadcrumbs()"> | |
12 | ${h.link_to(u'Home',h.url('hg_home'))} |
|
12 | ${h.link_to(u'Home',h.url('hg_home'))} | |
13 | / |
|
13 | / | |
14 | ${h.link_to(u'Admin',h.url('admin_home'))} |
|
14 | ${h.link_to(u'Admin',h.url('admin_home'))} | |
15 | </%def> |
|
15 | </%def> | |
16 |
|
16 | |||
17 | <%def name="page_nav()"> |
|
17 | <%def name="page_nav()"> | |
18 | <li>${h.link_to(u'Home',h.url('hg_home'))}</li> |
|
18 | <ul class="page-nav"> | |
19 | <li class="current">${_('Admin')}</li> |
|
19 | <li>${h.link_to(u'Home',h.url('hg_home'))}</li> | |
|
20 | <li class="current">${_('Admin')}</li> | |||
|
21 | </ul> | |||
20 | </%def> |
|
22 | </%def> | |
21 | <%def name="js()"> |
|
23 | <%def name="js()"> | |
22 |
|
24 | |||
23 | </%def> |
|
25 | </%def> | |
24 | <%def name="main()"> |
|
26 | <%def name="main()"> | |
25 |
|
27 | |||
26 | <h2 class="no-link no-border">Not Found</h2> |
|
28 | <h2 class="no-link no-border">Not Found</h2> | |
27 | <p class="normal">The specified repository "${c.repo_name}" is unknown, sorry.</p> |
|
29 | <p class="normal">The specified repository "${c.repo_name}" is unknown, sorry.</p> | |
28 | <p class="normal"> |
|
30 | <p class="normal"> | |
29 | <a href="/_admin/add_repo/${c.repo_name|n,filters.clean_repo}">Create "${c.repo_name}" repository as ${c.repo_name|n,filters.clean_repo}</a> |
|
31 | <a href="/_admin/add_repo/${c.repo_name|n,filters.clean_repo}">Create "${c.repo_name}" repository as ${c.repo_name|n,filters.clean_repo}</a> | |
30 |
|
32 | |||
31 | </p> |
|
33 | </p> | |
32 | <p class="normal">Go back to the ${h.link_to(_('main repository list page'),h.url('hg_home'))}.</p> |
|
34 | <p class="normal">Go back to the ${h.link_to(_('main repository list page'),h.url('hg_home'))}.</p> | |
33 | <div class="page-footer"> |
|
35 | <div class="page-footer"> | |
34 | </div> |
|
36 | </div> | |
35 | </%def> No newline at end of file |
|
37 | </%def> |
General Comments 0
You need to be logged in to leave comments.
Login now