Show More
@@ -1,124 +1,124 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 | ${_('Repositories administration')} - ${c.rhodecode_name} |
|
5 | ${_('Repositories administration')} - ${c.rhodecode_name} | |
6 | </%def> |
|
6 | </%def> | |
7 |
|
7 | |||
8 |
|
8 | |||
9 | <%def name="breadcrumbs_links()"> |
|
9 | <%def name="breadcrumbs_links()"> | |
10 | ${h.link_to(_('Admin'),h.url('admin_home'))} » ${_('Repositories')} |
|
10 | ${h.link_to(_('Admin'),h.url('admin_home'))} » ${_('Repositories')} | |
11 | </%def> |
|
11 | </%def> | |
12 | <%def name="page_nav()"> |
|
12 | <%def name="page_nav()"> | |
13 | ${self.menu('admin')} |
|
13 | ${self.menu('admin')} | |
14 | </%def> |
|
14 | </%def> | |
15 | <%def name="main()"> |
|
15 | <%def name="main()"> | |
16 | <div class="box"> |
|
16 | <div class="box"> | |
17 |
|
17 | |||
18 | <div class="title"> |
|
18 | <div class="title"> | |
19 | ${self.breadcrumbs()} |
|
19 | ${self.breadcrumbs()} | |
20 | <ul class="links"> |
|
20 | <ul class="links"> | |
21 | <li> |
|
21 | <li> | |
22 | <span>${h.link_to(_(u'ADD REPOSITORY'),h.url('new_repo'))}</span> |
|
22 | <span>${h.link_to(_(u'ADD REPOSITORY'),h.url('new_repo'))}</span> | |
23 | </li> |
|
23 | </li> | |
24 | </ul> |
|
24 | </ul> | |
25 | </div> |
|
25 | </div> | |
26 |
|
26 | |||
27 | <div class="table"> |
|
27 | <div class="table"> | |
28 | <div id='repos_list_wrap' class="yui-skin-sam"> |
|
28 | <div id='repos_list_wrap' class="yui-skin-sam"> | |
29 | <%cnt=0%> |
|
29 | <%cnt=0%> | |
30 | <%namespace name="dt" file="/_data_table/_dt_elements.html"/> |
|
30 | <%namespace name="dt" file="/_data_table/_dt_elements.html"/> | |
31 |
|
31 | |||
32 | <table id="repos_list"> |
|
32 | <table id="repos_list"> | |
33 | <thead> |
|
33 | <thead> | |
34 | <tr> |
|
34 | <tr> | |
35 | <th class="left"></th> |
|
35 | <th class="left"></th> | |
36 | <th class="left">${_('Name')}</th> |
|
36 | <th class="left">${_('Name')}</th> | |
37 | <th class="left">${_('Description')}</th> |
|
37 | <th class="left">${_('Description')}</th> | |
38 | <th class="left">${_('Last change')}</th> |
|
38 | <th class="left">${_('Last change')}</th> | |
39 | <th class="left">${_('Tip')}</th> |
|
39 | <th class="left">${_('Tip')}</th> | |
40 | <th class="left">${_('Contact')}</th> |
|
40 | <th class="left">${_('Contact')}</th> | |
41 | <th class="left">${_('Action')}</th> |
|
41 | <th class="left">${_('Action')}</th> | |
42 | </tr> |
|
42 | </tr> | |
43 | </thead> |
|
43 | </thead> | |
44 |
|
44 | |||
45 | %for cnt,repo in enumerate(c.repos_list,1): |
|
45 | %for cnt,repo in enumerate(c.repos_list,1): | |
46 | <tr class="parity${cnt%2}"> |
|
46 | <tr class="parity${cnt%2}"> | |
47 | <td class="quick_repo_menu"> |
|
47 | <td class="quick_repo_menu"> | |
48 | ${dt.quick_menu(repo['name'])} |
|
48 | ${dt.quick_menu(repo['name'])} | |
49 | </td> |
|
49 | </td> | |
50 | <td class="reponame"> |
|
50 | <td class="reponame"> | |
51 | ${dt.repo_name(repo['name'],repo['dbrepo']['repo_type'],repo['dbrepo']['private'],repo['dbrepo_fork'].get('repo_name'))} |
|
51 | ${dt.repo_name(repo['name'],repo['dbrepo']['repo_type'],repo['dbrepo']['private'],repo['dbrepo_fork'].get('repo_name'))} | |
52 | </td> |
|
52 | </td> | |
53 | ##DESCRIPTION |
|
53 | ##DESCRIPTION | |
54 | <td><span class="tooltip" title="${h.tooltip(repo['description'])}"> |
|
54 | <td><span class="tooltip" title="${h.tooltip(repo['description'])}"> | |
55 | ${h.truncate(repo['description'],60)}</span> |
|
55 | ${h.truncate(repo['description'],60)}</span> | |
56 | </td> |
|
56 | </td> | |
57 | ##LAST CHANGE |
|
57 | ##LAST CHANGE | |
58 | <td> |
|
58 | <td> | |
59 | <span class="tooltip" title="${repo['last_change']}">${h.age(repo['last_change'])}</span> |
|
59 | <span class="tooltip" title="${repo['last_change']}">${h.age(repo['last_change'])}</span> | |
60 | </td> |
|
60 | </td> | |
61 | ##LAST REVISION |
|
61 | ##LAST REVISION | |
62 | <td> |
|
62 | <td> | |
63 | ${dt.revision(repo['name'],repo['rev'],repo['tip'],repo['author'],repo['last_msg'])} |
|
63 | ${dt.revision(repo['name'],repo['rev'],repo['tip'],repo['author'],repo['last_msg'])} | |
64 | </td> |
|
64 | </td> | |
65 | <td title="${repo['contact']}">${h.person(repo['contact'])}</td> |
|
65 | <td title="${repo['contact']}">${h.person(repo['contact'])}</td> | |
66 | <td> |
|
66 | <td> | |
67 | ${h.form(url('repo', repo_name=repo['name']),method='delete')} |
|
67 | ${h.form(url('repo', repo_name=repo['name']),method='delete')} | |
68 | ${h.submit('remove_%s' % repo['name'],_('delete'),class_="delete_icon action_button",onclick="return confirm('"+_('Confirm to delete this repository')+"');")} |
|
68 | ${h.submit('remove_%s' % repo['name'],_('delete'),class_="delete_icon action_button",onclick="return confirm('"+_('Confirm to delete this repository: %s') % repo['name']+"');")} | |
69 | ${h.end_form()} |
|
69 | ${h.end_form()} | |
70 | </td> |
|
70 | </td> | |
71 | </tr> |
|
71 | </tr> | |
72 | %endfor |
|
72 | %endfor | |
73 | </table> |
|
73 | </table> | |
74 | </div> |
|
74 | </div> | |
75 | </div> |
|
75 | </div> | |
76 | </div> |
|
76 | </div> | |
77 | <script> |
|
77 | <script> | |
78 |
|
78 | |||
79 | // main table sorting |
|
79 | // main table sorting | |
80 | var myColumnDefs = [ |
|
80 | var myColumnDefs = [ | |
81 | {key:"menu",label:"",sortable:false,className:"quick_repo_menu hidden"}, |
|
81 | {key:"menu",label:"",sortable:false,className:"quick_repo_menu hidden"}, | |
82 | {key:"name",label:"${_('Name')}",sortable:true, |
|
82 | {key:"name",label:"${_('Name')}",sortable:true, | |
83 | sortOptions: { sortFunction: nameSort }}, |
|
83 | sortOptions: { sortFunction: nameSort }}, | |
84 | {key:"desc",label:"${_('Description')}",sortable:true}, |
|
84 | {key:"desc",label:"${_('Description')}",sortable:true}, | |
85 | {key:"last_change",label:"${_('Last Change')}",sortable:true, |
|
85 | {key:"last_change",label:"${_('Last Change')}",sortable:true, | |
86 | sortOptions: { sortFunction: ageSort }}, |
|
86 | sortOptions: { sortFunction: ageSort }}, | |
87 | {key:"tip",label:"${_('Tip')}",sortable:true, |
|
87 | {key:"tip",label:"${_('Tip')}",sortable:true, | |
88 | sortOptions: { sortFunction: revisionSort }}, |
|
88 | sortOptions: { sortFunction: revisionSort }}, | |
89 | {key:"owner",label:"${_('Owner')}",sortable:true}, |
|
89 | {key:"owner",label:"${_('Owner')}",sortable:true}, | |
90 | {key:"action",label:"${_('Action')}",sortable:false}, |
|
90 | {key:"action",label:"${_('Action')}",sortable:false}, | |
91 | ]; |
|
91 | ]; | |
92 |
|
92 | |||
93 | var myDataSource = new YAHOO.util.DataSource(YUD.get("repos_list")); |
|
93 | var myDataSource = new YAHOO.util.DataSource(YUD.get("repos_list")); | |
94 |
|
94 | |||
95 | myDataSource.responseType = YAHOO.util.DataSource.TYPE_HTMLTABLE; |
|
95 | myDataSource.responseType = YAHOO.util.DataSource.TYPE_HTMLTABLE; | |
96 |
|
96 | |||
97 | myDataSource.responseSchema = { |
|
97 | myDataSource.responseSchema = { | |
98 | fields: [ |
|
98 | fields: [ | |
99 | {key:"menu"}, |
|
99 | {key:"menu"}, | |
100 | {key:"name"}, |
|
100 | {key:"name"}, | |
101 | {key:"desc"}, |
|
101 | {key:"desc"}, | |
102 | {key:"last_change"}, |
|
102 | {key:"last_change"}, | |
103 | {key:"tip"}, |
|
103 | {key:"tip"}, | |
104 | {key:"owner"}, |
|
104 | {key:"owner"}, | |
105 | {key:"action"}, |
|
105 | {key:"action"}, | |
106 | ] |
|
106 | ] | |
107 | }; |
|
107 | }; | |
108 |
|
108 | |||
109 | var myDataTable = new YAHOO.widget.DataTable("repos_list_wrap", myColumnDefs, myDataSource, |
|
109 | var myDataTable = new YAHOO.widget.DataTable("repos_list_wrap", myColumnDefs, myDataSource, | |
110 | { |
|
110 | { | |
111 | sortedBy:{key:"name",dir:"asc"}, |
|
111 | sortedBy:{key:"name",dir:"asc"}, | |
112 | MSG_SORTASC:"${_('Click to sort ascending')}", |
|
112 | MSG_SORTASC:"${_('Click to sort ascending')}", | |
113 | MSG_SORTDESC:"${_('Click to sort descending')}", |
|
113 | MSG_SORTDESC:"${_('Click to sort descending')}", | |
114 | MSG_EMPTY:"${_('No records found.')}", |
|
114 | MSG_EMPTY:"${_('No records found.')}", | |
115 | MSG_ERROR:"${_('Data error.')}", |
|
115 | MSG_ERROR:"${_('Data error.')}", | |
116 | MSG_LOADING:"${_('Loading...')}", |
|
116 | MSG_LOADING:"${_('Loading...')}", | |
117 | } |
|
117 | } | |
118 | ); |
|
118 | ); | |
119 | myDataTable.subscribe('postRenderEvent',function(oArgs) { |
|
119 | myDataTable.subscribe('postRenderEvent',function(oArgs) { | |
120 | tooltip_activate(); |
|
120 | tooltip_activate(); | |
121 | quick_repo_menu(); |
|
121 | quick_repo_menu(); | |
122 | }); |
|
122 | }); | |
123 | </script> |
|
123 | </script> | |
124 | </%def> |
|
124 | </%def> |
@@ -1,68 +1,68 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 | ${_('Repositories groups administration')} - ${c.rhodecode_name} |
|
5 | ${_('Repositories groups administration')} - ${c.rhodecode_name} | |
6 | </%def> |
|
6 | </%def> | |
7 |
|
7 | |||
8 |
|
8 | |||
9 | <%def name="breadcrumbs_links()"> |
|
9 | <%def name="breadcrumbs_links()"> | |
10 | ${h.link_to(_('Admin'),h.url('admin_home'))} » ${_('Repositories')} |
|
10 | ${h.link_to(_('Admin'),h.url('admin_home'))} » ${_('Repositories')} | |
11 | </%def> |
|
11 | </%def> | |
12 | <%def name="page_nav()"> |
|
12 | <%def name="page_nav()"> | |
13 | ${self.menu('admin')} |
|
13 | ${self.menu('admin')} | |
14 | </%def> |
|
14 | </%def> | |
15 | <%def name="main()"> |
|
15 | <%def name="main()"> | |
16 | <div class="box"> |
|
16 | <div class="box"> | |
17 | <!-- box / title --> |
|
17 | <!-- box / title --> | |
18 | <div class="title"> |
|
18 | <div class="title"> | |
19 | ${self.breadcrumbs()} |
|
19 | ${self.breadcrumbs()} | |
20 | <ul class="links"> |
|
20 | <ul class="links"> | |
21 | <li> |
|
21 | <li> | |
22 | <span>${h.link_to(_(u'ADD NEW GROUP'),h.url('new_repos_group'))}</span> |
|
22 | <span>${h.link_to(_(u'ADD NEW GROUP'),h.url('new_repos_group'))}</span> | |
23 | </li> |
|
23 | </li> | |
24 | </ul> |
|
24 | </ul> | |
25 | </div> |
|
25 | </div> | |
26 | <!-- end box / title --> |
|
26 | <!-- end box / title --> | |
27 | <div class="table"> |
|
27 | <div class="table"> | |
28 | % if c.groups: |
|
28 | % if c.groups: | |
29 | <table class="table_disp"> |
|
29 | <table class="table_disp"> | |
30 |
|
30 | |||
31 | <thead> |
|
31 | <thead> | |
32 | <tr> |
|
32 | <tr> | |
33 | <th class="left"><a href="#">${_('Group name')}</a></th> |
|
33 | <th class="left"><a href="#">${_('Group name')}</a></th> | |
34 | <th class="left"><a href="#">${_('Description')}</a></th> |
|
34 | <th class="left"><a href="#">${_('Description')}</a></th> | |
35 | <th class="left"><a href="#">${_('Number of toplevel repositories')}</a></th> |
|
35 | <th class="left"><a href="#">${_('Number of toplevel repositories')}</a></th> | |
36 | <th class="left">${_('action')}</th> |
|
36 | <th class="left">${_('action')}</th> | |
37 | </tr> |
|
37 | </tr> | |
38 | </thead> |
|
38 | </thead> | |
39 |
|
39 | |||
40 | ## REPO GROUPS |
|
40 | ## REPO GROUPS | |
41 |
|
41 | |||
42 | % for gr in c.groups: |
|
42 | % for gr in c.groups: | |
43 | <tr> |
|
43 | <tr> | |
44 | <td> |
|
44 | <td> | |
45 | <div style="white-space: nowrap"> |
|
45 | <div style="white-space: nowrap"> | |
46 | <img class="icon" alt="${_('Repositories group')}" src="${h.url('/images/icons/database_link.png')}"/> |
|
46 | <img class="icon" alt="${_('Repositories group')}" src="${h.url('/images/icons/database_link.png')}"/> | |
47 | ${h.link_to(h.literal(' » '.join([g.name for g in gr.parents+[gr]])),url('edit_repos_group',id=gr.group_id))} |
|
47 | ${h.link_to(h.literal(' » '.join([g.name for g in gr.parents+[gr]])),url('edit_repos_group',id=gr.group_id))} | |
48 | </div> |
|
48 | </div> | |
49 | </td> |
|
49 | </td> | |
50 | <td>${gr.group_description}</td> |
|
50 | <td>${gr.group_description}</td> | |
51 | <td><b>${gr.repositories.count()}</b></td> |
|
51 | <td><b>${gr.repositories.count()}</b></td> | |
52 | <td> |
|
52 | <td> | |
53 | ${h.form(url('repos_group', id=gr.group_id),method='delete')} |
|
53 | ${h.form(url('repos_group', id=gr.group_id),method='delete')} | |
54 | ${h.submit('remove_%s' % gr.name,'delete',class_="delete_icon action_button",onclick="return confirm('"+_('Confirm to delete this group')+"');")} |
|
54 | ${h.submit('remove_%s' % gr.name,'delete',class_="delete_icon action_button",onclick="return confirm('"+_('Confirm to delete this group: %s') % gr.name+"');")} | |
55 | ${h.end_form()} |
|
55 | ${h.end_form()} | |
56 | </td> |
|
56 | </td> | |
57 | </tr> |
|
57 | </tr> | |
58 | % endfor |
|
58 | % endfor | |
59 |
|
59 | |||
60 | </table> |
|
60 | </table> | |
61 | % else: |
|
61 | % else: | |
62 | ${_('There are no repositories groups yet')} |
|
62 | ${_('There are no repositories groups yet')} | |
63 | % endif |
|
63 | % endif | |
64 |
|
64 | |||
65 | </div> |
|
65 | </div> | |
66 | </div> |
|
66 | </div> | |
67 |
|
67 | |||
68 | </%def> |
|
68 | </%def> |
@@ -1,190 +1,190 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 | ${_('My account')} ${c.rhodecode_user.username} - ${c.rhodecode_name} |
|
5 | ${_('My account')} ${c.rhodecode_user.username} - ${c.rhodecode_name} | |
6 | </%def> |
|
6 | </%def> | |
7 |
|
7 | |||
8 | <%def name="breadcrumbs_links()"> |
|
8 | <%def name="breadcrumbs_links()"> | |
9 | ${_('My Account')} |
|
9 | ${_('My Account')} | |
10 | </%def> |
|
10 | </%def> | |
11 |
|
11 | |||
12 | <%def name="page_nav()"> |
|
12 | <%def name="page_nav()"> | |
13 | ${self.menu('admin')} |
|
13 | ${self.menu('admin')} | |
14 | </%def> |
|
14 | </%def> | |
15 |
|
15 | |||
16 | <%def name="main()"> |
|
16 | <%def name="main()"> | |
17 |
|
17 | |||
18 | <div class="box box-left"> |
|
18 | <div class="box box-left"> | |
19 | <!-- box / title --> |
|
19 | <!-- box / title --> | |
20 | <div class="title"> |
|
20 | <div class="title"> | |
21 | ${self.breadcrumbs()} |
|
21 | ${self.breadcrumbs()} | |
22 | </div> |
|
22 | </div> | |
23 | <!-- end box / title --> |
|
23 | <!-- end box / title --> | |
24 | <div> |
|
24 | <div> | |
25 | ${h.form(url('admin_settings_my_account_update'),method='put')} |
|
25 | ${h.form(url('admin_settings_my_account_update'),method='put')} | |
26 | <div class="form"> |
|
26 | <div class="form"> | |
27 |
|
27 | |||
28 | <div class="field"> |
|
28 | <div class="field"> | |
29 | <div class="gravatar_box"> |
|
29 | <div class="gravatar_box"> | |
30 | <div class="gravatar"><img alt="gravatar" src="${h.gravatar_url(c.user.email)}"/></div> |
|
30 | <div class="gravatar"><img alt="gravatar" src="${h.gravatar_url(c.user.email)}"/></div> | |
31 | <p> |
|
31 | <p> | |
32 | %if c.use_gravatar: |
|
32 | %if c.use_gravatar: | |
33 | <strong>${_('Change your avatar at')} <a href="http://gravatar.com">gravatar.com</a></strong> |
|
33 | <strong>${_('Change your avatar at')} <a href="http://gravatar.com">gravatar.com</a></strong> | |
34 | <br/>${_('Using')} ${c.user.email} |
|
34 | <br/>${_('Using')} ${c.user.email} | |
35 | %else: |
|
35 | %else: | |
36 | <br/>${c.user.email} |
|
36 | <br/>${c.user.email} | |
37 | %endif |
|
37 | %endif | |
38 | </p> |
|
38 | </p> | |
39 | </div> |
|
39 | </div> | |
40 | </div> |
|
40 | </div> | |
41 | <div class="field"> |
|
41 | <div class="field"> | |
42 | <div class="label"> |
|
42 | <div class="label"> | |
43 | <label>${_('API key')}</label> ${c.user.api_key} |
|
43 | <label>${_('API key')}</label> ${c.user.api_key} | |
44 | </div> |
|
44 | </div> | |
45 | </div> |
|
45 | </div> | |
46 | <div class="fields"> |
|
46 | <div class="fields"> | |
47 | <div class="field"> |
|
47 | <div class="field"> | |
48 | <div class="label"> |
|
48 | <div class="label"> | |
49 | <label for="username">${_('Username')}:</label> |
|
49 | <label for="username">${_('Username')}:</label> | |
50 | </div> |
|
50 | </div> | |
51 | <div class="input"> |
|
51 | <div class="input"> | |
52 | ${h.text('username',class_="medium")} |
|
52 | ${h.text('username',class_="medium")} | |
53 | </div> |
|
53 | </div> | |
54 | </div> |
|
54 | </div> | |
55 |
|
55 | |||
56 | <div class="field"> |
|
56 | <div class="field"> | |
57 | <div class="label"> |
|
57 | <div class="label"> | |
58 | <label for="new_password">${_('New password')}:</label> |
|
58 | <label for="new_password">${_('New password')}:</label> | |
59 | </div> |
|
59 | </div> | |
60 | <div class="input"> |
|
60 | <div class="input"> | |
61 | ${h.password('new_password',class_="medium",autocomplete="off")} |
|
61 | ${h.password('new_password',class_="medium",autocomplete="off")} | |
62 | </div> |
|
62 | </div> | |
63 | </div> |
|
63 | </div> | |
64 |
|
64 | |||
65 | <div class="field"> |
|
65 | <div class="field"> | |
66 | <div class="label"> |
|
66 | <div class="label"> | |
67 | <label for="password_confirmation">${_('New password confirmation')}:</label> |
|
67 | <label for="password_confirmation">${_('New password confirmation')}:</label> | |
68 | </div> |
|
68 | </div> | |
69 | <div class="input"> |
|
69 | <div class="input"> | |
70 | ${h.password('password_confirmation',class_="medium",autocomplete="off")} |
|
70 | ${h.password('password_confirmation',class_="medium",autocomplete="off")} | |
71 | </div> |
|
71 | </div> | |
72 | </div> |
|
72 | </div> | |
73 |
|
73 | |||
74 | <div class="field"> |
|
74 | <div class="field"> | |
75 | <div class="label"> |
|
75 | <div class="label"> | |
76 | <label for="name">${_('First Name')}:</label> |
|
76 | <label for="name">${_('First Name')}:</label> | |
77 | </div> |
|
77 | </div> | |
78 | <div class="input"> |
|
78 | <div class="input"> | |
79 | ${h.text('name',class_="medium")} |
|
79 | ${h.text('name',class_="medium")} | |
80 | </div> |
|
80 | </div> | |
81 | </div> |
|
81 | </div> | |
82 |
|
82 | |||
83 | <div class="field"> |
|
83 | <div class="field"> | |
84 | <div class="label"> |
|
84 | <div class="label"> | |
85 | <label for="lastname">${_('Last Name')}:</label> |
|
85 | <label for="lastname">${_('Last Name')}:</label> | |
86 | </div> |
|
86 | </div> | |
87 | <div class="input"> |
|
87 | <div class="input"> | |
88 | ${h.text('lastname',class_="medium")} |
|
88 | ${h.text('lastname',class_="medium")} | |
89 | </div> |
|
89 | </div> | |
90 | </div> |
|
90 | </div> | |
91 |
|
91 | |||
92 | <div class="field"> |
|
92 | <div class="field"> | |
93 | <div class="label"> |
|
93 | <div class="label"> | |
94 | <label for="email">${_('Email')}:</label> |
|
94 | <label for="email">${_('Email')}:</label> | |
95 | </div> |
|
95 | </div> | |
96 | <div class="input"> |
|
96 | <div class="input"> | |
97 | ${h.text('email',class_="medium")} |
|
97 | ${h.text('email',class_="medium")} | |
98 | </div> |
|
98 | </div> | |
99 | </div> |
|
99 | </div> | |
100 |
|
100 | |||
101 | <div class="buttons"> |
|
101 | <div class="buttons"> | |
102 | ${h.submit('save',_('Save'),class_="ui-button")} |
|
102 | ${h.submit('save',_('Save'),class_="ui-button")} | |
103 | ${h.reset('reset',_('Reset'),class_="ui-button")} |
|
103 | ${h.reset('reset',_('Reset'),class_="ui-button")} | |
104 | </div> |
|
104 | </div> | |
105 | </div> |
|
105 | </div> | |
106 | </div> |
|
106 | </div> | |
107 | ${h.end_form()} |
|
107 | ${h.end_form()} | |
108 | </div> |
|
108 | </div> | |
109 | </div> |
|
109 | </div> | |
110 |
|
110 | |||
111 | <div class="box box-right"> |
|
111 | <div class="box box-right"> | |
112 | <!-- box / title --> |
|
112 | <!-- box / title --> | |
113 | <div class="title"> |
|
113 | <div class="title"> | |
114 | <h5> |
|
114 | <h5> | |
115 | <input class="q_filter_box" id="q_filter" size="15" type="text" name="filter" value="${_('quick filter...')}"/> |
|
115 | <input class="q_filter_box" id="q_filter" size="15" type="text" name="filter" value="${_('quick filter...')}"/> | |
116 | ${_('My repositories')} |
|
116 | ${_('My repositories')} | |
117 | </h5> |
|
117 | </h5> | |
118 | %if h.HasPermissionAny('hg.admin','hg.create.repository')(): |
|
118 | %if h.HasPermissionAny('hg.admin','hg.create.repository')(): | |
119 | <ul class="links"> |
|
119 | <ul class="links"> | |
120 | <li> |
|
120 | <li> | |
121 | <span>${h.link_to(_('ADD REPOSITORY'),h.url('admin_settings_create_repository'))}</span> |
|
121 | <span>${h.link_to(_('ADD REPOSITORY'),h.url('admin_settings_create_repository'))}</span> | |
122 | </li> |
|
122 | </li> | |
123 | </ul> |
|
123 | </ul> | |
124 | %endif |
|
124 | %endif | |
125 | </div> |
|
125 | </div> | |
126 | <!-- end box / title --> |
|
126 | <!-- end box / title --> | |
127 | <div class="table"> |
|
127 | <div class="table"> | |
128 | <table> |
|
128 | <table> | |
129 | <thead> |
|
129 | <thead> | |
130 | <tr> |
|
130 | <tr> | |
131 | <th class="left">${_('Name')}</th> |
|
131 | <th class="left">${_('Name')}</th> | |
132 | <th class="left">${_('revision')}</th> |
|
132 | <th class="left">${_('revision')}</th> | |
133 | <th colspan="2" class="left">${_('action')}</th> |
|
133 | <th colspan="2" class="left">${_('action')}</th> | |
134 | </thead> |
|
134 | </thead> | |
135 | <tbody> |
|
135 | <tbody> | |
136 | %if c.user_repos: |
|
136 | %if c.user_repos: | |
137 | %for repo in c.user_repos: |
|
137 | %for repo in c.user_repos: | |
138 | <tr> |
|
138 | <tr> | |
139 | <td> |
|
139 | <td> | |
140 | %if repo['dbrepo']['repo_type'] =='hg': |
|
140 | %if repo['dbrepo']['repo_type'] =='hg': | |
141 | <img class="icon" title="${_('Mercurial repository')}" alt="${_('Mercurial repository')}" src="${h.url('/images/icons/hgicon.png')}"/> |
|
141 | <img class="icon" title="${_('Mercurial repository')}" alt="${_('Mercurial repository')}" src="${h.url('/images/icons/hgicon.png')}"/> | |
142 | %elif repo['dbrepo']['repo_type'] =='git': |
|
142 | %elif repo['dbrepo']['repo_type'] =='git': | |
143 | <img class="icon" title="${_('Git repository')}" alt="${_('Git repository')}" src="${h.url('/images/icons/giticon.png')}"/> |
|
143 | <img class="icon" title="${_('Git repository')}" alt="${_('Git repository')}" src="${h.url('/images/icons/giticon.png')}"/> | |
144 | %else: |
|
144 | %else: | |
145 |
|
145 | |||
146 | %endif |
|
146 | %endif | |
147 | %if repo['dbrepo']['private']: |
|
147 | %if repo['dbrepo']['private']: | |
148 | <img class="icon" alt="${_('private')}" src="${h.url('/images/icons/lock.png')}"/> |
|
148 | <img class="icon" alt="${_('private')}" src="${h.url('/images/icons/lock.png')}"/> | |
149 | %else: |
|
149 | %else: | |
150 | <img class="icon" alt="${_('public')}" src="${h.url('/images/icons/lock_open.png')}"/> |
|
150 | <img class="icon" alt="${_('public')}" src="${h.url('/images/icons/lock_open.png')}"/> | |
151 | %endif |
|
151 | %endif | |
152 |
|
152 | |||
153 | ${h.link_to(repo['name'], h.url('summary_home',repo_name=repo['name']),class_="repo_name")} |
|
153 | ${h.link_to(repo['name'], h.url('summary_home',repo_name=repo['name']),class_="repo_name")} | |
154 | %if repo['dbrepo_fork']: |
|
154 | %if repo['dbrepo_fork']: | |
155 | <a href="${h.url('summary_home',repo_name=repo['dbrepo_fork']['repo_name'])}"> |
|
155 | <a href="${h.url('summary_home',repo_name=repo['dbrepo_fork']['repo_name'])}"> | |
156 | <img class="icon" alt="${_('public')}" |
|
156 | <img class="icon" alt="${_('public')}" | |
157 | title="${_('Fork of')} ${repo['dbrepo_fork']['repo_name']}" |
|
157 | title="${_('Fork of')} ${repo['dbrepo_fork']['repo_name']}" | |
158 | src="${h.url('/images/icons/arrow_divide.png')}"/></a> |
|
158 | src="${h.url('/images/icons/arrow_divide.png')}"/></a> | |
159 | %endif |
|
159 | %endif | |
160 | </td> |
|
160 | </td> | |
161 | <td><span class="tooltip" title="${repo['last_change']}">${("r%s:%s") % (repo['rev'],h.short_id(repo['tip']))}</span></td> |
|
161 | <td><span class="tooltip" title="${repo['last_change']}">${("r%s:%s") % (repo['rev'],h.short_id(repo['tip']))}</span></td> | |
162 | <td><a href="${h.url('repo_settings_home',repo_name=repo['name'])}" title="${_('edit')}"><img class="icon" alt="${_('private')}" src="${h.url('/images/icons/application_form_edit.png')}"/></a></td> |
|
162 | <td><a href="${h.url('repo_settings_home',repo_name=repo['name'])}" title="${_('edit')}"><img class="icon" alt="${_('private')}" src="${h.url('/images/icons/application_form_edit.png')}"/></a></td> | |
163 | <td> |
|
163 | <td> | |
164 | ${h.form(url('repo_settings_delete', repo_name=repo['name']),method='delete')} |
|
164 | ${h.form(url('repo_settings_delete', repo_name=repo['name']),method='delete')} | |
165 | ${h.submit('remove_%s' % repo['name'],'',class_="delete_icon action_button",onclick="return confirm('Confirm to delete this repository');")} |
|
165 | ${h.submit('remove_%s' % repo['name'],'',class_="delete_icon action_button",onclick="return confirm('"+_('Confirm to delete this repository: %s') % repo['name']+"');")} | |
166 | ${h.end_form()} |
|
166 | ${h.end_form()} | |
167 | </td> |
|
167 | </td> | |
168 | </tr> |
|
168 | </tr> | |
169 | %endfor |
|
169 | %endfor | |
170 | %else: |
|
170 | %else: | |
171 | <div style="padding:5px 0px 10px 0px;"> |
|
171 | <div style="padding:5px 0px 10px 0px;"> | |
172 | ${_('No repositories yet')} |
|
172 | ${_('No repositories yet')} | |
173 | %if h.HasPermissionAny('hg.admin','hg.create.repository')(): |
|
173 | %if h.HasPermissionAny('hg.admin','hg.create.repository')(): | |
174 | ${h.link_to(_('create one now'),h.url('admin_settings_create_repository'),class_="ui-btn")} |
|
174 | ${h.link_to(_('create one now'),h.url('admin_settings_create_repository'),class_="ui-btn")} | |
175 | %endif |
|
175 | %endif | |
176 | </div> |
|
176 | </div> | |
177 | %endif |
|
177 | %endif | |
178 | </tbody> |
|
178 | </tbody> | |
179 | </table> |
|
179 | </table> | |
180 | </div> |
|
180 | </div> | |
181 | </div> |
|
181 | </div> | |
182 | <script type="text/javascript"> |
|
182 | <script type="text/javascript"> | |
183 | var nodes = YUQ('div.table tr td a.repo_name'); |
|
183 | var nodes = YUQ('div.table tr td a.repo_name'); | |
184 | var target = 'q_filter'; |
|
184 | var target = 'q_filter'; | |
185 | var func = function(node){ |
|
185 | var func = function(node){ | |
186 | return node.parentNode.parentNode; |
|
186 | return node.parentNode.parentNode; | |
187 | } |
|
187 | } | |
188 | q_filter(target,nodes,func); |
|
188 | q_filter(target,nodes,func); | |
189 | </script> |
|
189 | </script> | |
190 | </%def> |
|
190 | </%def> |
@@ -1,65 +1,65 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 | ${_('Users administration')} - ${c.rhodecode_name} |
|
5 | ${_('Users administration')} - ${c.rhodecode_name} | |
6 | </%def> |
|
6 | </%def> | |
7 |
|
7 | |||
8 | <%def name="breadcrumbs_links()"> |
|
8 | <%def name="breadcrumbs_links()"> | |
9 | ${h.link_to(_('Admin'),h.url('admin_home'))} » ${_('Users')} |
|
9 | ${h.link_to(_('Admin'),h.url('admin_home'))} » ${_('Users')} | |
10 | </%def> |
|
10 | </%def> | |
11 |
|
11 | |||
12 | <%def name="page_nav()"> |
|
12 | <%def name="page_nav()"> | |
13 | ${self.menu('admin')} |
|
13 | ${self.menu('admin')} | |
14 | </%def> |
|
14 | </%def> | |
15 |
|
15 | |||
16 | <%def name="main()"> |
|
16 | <%def name="main()"> | |
17 | <div class="box"> |
|
17 | <div class="box"> | |
18 | <!-- box / title --> |
|
18 | <!-- box / title --> | |
19 | <div class="title"> |
|
19 | <div class="title"> | |
20 | ${self.breadcrumbs()} |
|
20 | ${self.breadcrumbs()} | |
21 | <ul class="links"> |
|
21 | <ul class="links"> | |
22 | <li> |
|
22 | <li> | |
23 | <span>${h.link_to(_(u'ADD NEW USER'),h.url('new_user'))}</span> |
|
23 | <span>${h.link_to(_(u'ADD NEW USER'),h.url('new_user'))}</span> | |
24 | </li> |
|
24 | </li> | |
25 |
|
25 | |||
26 | </ul> |
|
26 | </ul> | |
27 | </div> |
|
27 | </div> | |
28 | <!-- end box / title --> |
|
28 | <!-- end box / title --> | |
29 | <div class="table"> |
|
29 | <div class="table"> | |
30 | <table class="table_disp"> |
|
30 | <table class="table_disp"> | |
31 | <tr class="header"> |
|
31 | <tr class="header"> | |
32 | <th></th> |
|
32 | <th></th> | |
33 | <th class="left">${_('username')}</th> |
|
33 | <th class="left">${_('username')}</th> | |
34 | <th class="left">${_('name')}</th> |
|
34 | <th class="left">${_('name')}</th> | |
35 | <th class="left">${_('lastname')}</th> |
|
35 | <th class="left">${_('lastname')}</th> | |
36 | <th class="left">${_('last login')}</th> |
|
36 | <th class="left">${_('last login')}</th> | |
37 | <th class="left">${_('active')}</th> |
|
37 | <th class="left">${_('active')}</th> | |
38 | <th class="left">${_('admin')}</th> |
|
38 | <th class="left">${_('admin')}</th> | |
39 | <th class="left">${_('ldap')}</th> |
|
39 | <th class="left">${_('ldap')}</th> | |
40 | <th class="left">${_('action')}</th> |
|
40 | <th class="left">${_('action')}</th> | |
41 | </tr> |
|
41 | </tr> | |
42 | %for cnt,user in enumerate(c.users_list): |
|
42 | %for cnt,user in enumerate(c.users_list): | |
43 | %if user.name !='default': |
|
43 | %if user.name !='default': | |
44 | <tr class="parity${cnt%2}"> |
|
44 | <tr class="parity${cnt%2}"> | |
45 | <td><div class="gravatar"><img alt="gravatar" src="${h.gravatar_url(user.email,24)}"/> </div></td> |
|
45 | <td><div class="gravatar"><img alt="gravatar" src="${h.gravatar_url(user.email,24)}"/> </div></td> | |
46 | <td>${h.link_to(user.username,h.url('edit_user', id=user.user_id))}</td> |
|
46 | <td>${h.link_to(user.username,h.url('edit_user', id=user.user_id))}</td> | |
47 | <td>${user.name}</td> |
|
47 | <td>${user.name}</td> | |
48 | <td>${user.lastname}</td> |
|
48 | <td>${user.lastname}</td> | |
49 | <td>${user.last_login}</td> |
|
49 | <td>${user.last_login}</td> | |
50 | <td>${h.bool2icon(user.active)}</td> |
|
50 | <td>${h.bool2icon(user.active)}</td> | |
51 | <td>${h.bool2icon(user.admin)}</td> |
|
51 | <td>${h.bool2icon(user.admin)}</td> | |
52 | <td>${h.bool2icon(bool(user.ldap_dn))}</td> |
|
52 | <td>${h.bool2icon(bool(user.ldap_dn))}</td> | |
53 | <td> |
|
53 | <td> | |
54 | ${h.form(url('delete_user', id=user.user_id),method='delete')} |
|
54 | ${h.form(url('delete_user', id=user.user_id),method='delete')} | |
55 | ${h.submit('remove_',_('delete'),id="remove_user_%s" % user.user_id, |
|
55 | ${h.submit('remove_',_('delete'),id="remove_user_%s" % user.user_id, | |
56 | class_="delete_icon action_button",onclick="return confirm('"+_('Confirm to delete this user')+"');")} |
|
56 | class_="delete_icon action_button",onclick="return confirm('"+_('Confirm to delete this user: %s') % user.username+"');")} | |
57 | ${h.end_form()} |
|
57 | ${h.end_form()} | |
58 | </td> |
|
58 | </td> | |
59 | </tr> |
|
59 | </tr> | |
60 | %endif |
|
60 | %endif | |
61 | %endfor |
|
61 | %endfor | |
62 | </table> |
|
62 | </table> | |
63 | </div> |
|
63 | </div> | |
64 | </div> |
|
64 | </div> | |
65 | </%def> |
|
65 | </%def> |
@@ -1,53 +1,53 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 | ${_('Users groups administration')} - ${c.rhodecode_name} |
|
5 | ${_('Users groups administration')} - ${c.rhodecode_name} | |
6 | </%def> |
|
6 | </%def> | |
7 |
|
7 | |||
8 | <%def name="breadcrumbs_links()"> |
|
8 | <%def name="breadcrumbs_links()"> | |
9 | ${h.link_to(_('Admin'),h.url('admin_home'))} » ${_('Users groups')} |
|
9 | ${h.link_to(_('Admin'),h.url('admin_home'))} » ${_('Users groups')} | |
10 | </%def> |
|
10 | </%def> | |
11 |
|
11 | |||
12 | <%def name="page_nav()"> |
|
12 | <%def name="page_nav()"> | |
13 | ${self.menu('admin')} |
|
13 | ${self.menu('admin')} | |
14 | </%def> |
|
14 | </%def> | |
15 |
|
15 | |||
16 | <%def name="main()"> |
|
16 | <%def name="main()"> | |
17 | <div class="box"> |
|
17 | <div class="box"> | |
18 | <!-- box / title --> |
|
18 | <!-- box / title --> | |
19 | <div class="title"> |
|
19 | <div class="title"> | |
20 | ${self.breadcrumbs()} |
|
20 | ${self.breadcrumbs()} | |
21 | <ul class="links"> |
|
21 | <ul class="links"> | |
22 | <li> |
|
22 | <li> | |
23 | <span>${h.link_to(_(u'ADD NEW USER GROUP'),h.url('new_users_group'))}</span> |
|
23 | <span>${h.link_to(_(u'ADD NEW USER GROUP'),h.url('new_users_group'))}</span> | |
24 | </li> |
|
24 | </li> | |
25 |
|
25 | |||
26 | </ul> |
|
26 | </ul> | |
27 | </div> |
|
27 | </div> | |
28 | <!-- end box / title --> |
|
28 | <!-- end box / title --> | |
29 | <div class="table"> |
|
29 | <div class="table"> | |
30 | <table class="table_disp"> |
|
30 | <table class="table_disp"> | |
31 | <tr class="header"> |
|
31 | <tr class="header"> | |
32 | <th class="left">${_('group name')}</th> |
|
32 | <th class="left">${_('group name')}</th> | |
33 | <th class="left">${_('members')}</th> |
|
33 | <th class="left">${_('members')}</th> | |
34 | <th class="left">${_('active')}</th> |
|
34 | <th class="left">${_('active')}</th> | |
35 | <th class="left">${_('action')}</th> |
|
35 | <th class="left">${_('action')}</th> | |
36 | </tr> |
|
36 | </tr> | |
37 | %for cnt,u_group in enumerate(c.users_groups_list): |
|
37 | %for cnt,u_group in enumerate(c.users_groups_list): | |
38 | <tr class="parity${cnt%2}"> |
|
38 | <tr class="parity${cnt%2}"> | |
39 | <td>${h.link_to(u_group.users_group_name,h.url('edit_users_group', id=u_group.users_group_id))}</td> |
|
39 | <td>${h.link_to(u_group.users_group_name,h.url('edit_users_group', id=u_group.users_group_id))}</td> | |
40 | <td><span class="tooltip" title="${', '.join([x.user.username for x in u_group.members[:50]])}">${len(u_group.members)}</span></td> |
|
40 | <td><span class="tooltip" title="${', '.join([x.user.username for x in u_group.members[:50]])}">${len(u_group.members)}</span></td> | |
41 | <td>${h.bool2icon(u_group.users_group_active)}</td> |
|
41 | <td>${h.bool2icon(u_group.users_group_active)}</td> | |
42 | <td> |
|
42 | <td> | |
43 | ${h.form(url('users_group', id=u_group.users_group_id),method='delete')} |
|
43 | ${h.form(url('users_group', id=u_group.users_group_id),method='delete')} | |
44 | ${h.submit('remove_','delete',id="remove_group_%s" % u_group.users_group_id, |
|
44 | ${h.submit('remove_','delete',id="remove_group_%s" % u_group.users_group_id, | |
45 | class_="delete_icon action_button",onclick="return confirm('Confirm to delete this users group');")} |
|
45 | class_="delete_icon action_button",onclick="return confirm('"+_('Confirm to delete this users group: %s') % u_group.users_group_name+"');")} | |
46 | ${h.end_form()} |
|
46 | ${h.end_form()} | |
47 | </td> |
|
47 | </td> | |
48 | </tr> |
|
48 | </tr> | |
49 | %endfor |
|
49 | %endfor | |
50 | </table> |
|
50 | </table> | |
51 | </div> |
|
51 | </div> | |
52 | </div> |
|
52 | </div> | |
53 | </%def> |
|
53 | </%def> |
General Comments 0
You need to be logged in to leave comments.
Login now