Show More
@@ -54,7 +54,6 b' def add_renderer_globals(event):' | |||||
54 | # Put pylons stuff into the context. This will be removed as soon as |
|
54 | # Put pylons stuff into the context. This will be removed as soon as | |
55 | # migration to pyramid is finished. |
|
55 | # migration to pyramid is finished. | |
56 | event['c'] = pylons.tmpl_context |
|
56 | event['c'] = pylons.tmpl_context | |
57 | event['url'] = pylons.url |
|
|||
58 |
|
57 | |||
59 | # TODO: When executed in pyramid view context the request is not available |
|
58 | # TODO: When executed in pyramid view context the request is not available | |
60 | # in the event. Find a better solution to get the request. |
|
59 | # in the event. Find a better solution to get the request. |
@@ -3,7 +3,7 b'' | |||||
3 | <h3 class="panel-title">${_('Default Settings For New Repositories')}</h3> |
|
3 | <h3 class="panel-title">${_('Default Settings For New Repositories')}</h3> | |
4 | </div> |
|
4 | </div> | |
5 | <div class="panel-body"> |
|
5 | <div class="panel-body"> | |
6 | ${h.secure_form(url('admin_defaults_repositories'), method='post')} |
|
6 | ${h.secure_form(h.url('admin_defaults_repositories'), method='post')} | |
7 | <div class="form"> |
|
7 | <div class="form"> | |
8 | <!-- fields --> |
|
8 | <!-- fields --> | |
9 |
|
9 |
@@ -44,7 +44,7 b'' | |||||
44 | </div> |
|
44 | </div> | |
45 | </div> |
|
45 | </div> | |
46 | <script type="text/javascript"> |
|
46 | <script type="text/javascript"> | |
47 | var url_action = "${url('notification', notification_id='__NOTIFICATION_ID__')}"; |
|
47 | var url_action = "${h.url('notification', notification_id='__NOTIFICATION_ID__')}"; | |
48 | var run = function(){ |
|
48 | var run = function(){ | |
49 | $('#notification_data').on('click','.delete-notification',function(e){ |
|
49 | $('#notification_data').on('click','.delete-notification',function(e){ | |
50 | var notification_id = e.currentTarget.id; |
|
50 | var notification_id = e.currentTarget.id; |
@@ -10,7 +10,7 b" unread = lambda n:{False:'unread'}.get(n" | |||||
10 | <div id="notification_${notification.notification.notification_id}" class="container ${unread(notification.read)}"> |
|
10 | <div id="notification_${notification.notification.notification_id}" class="container ${unread(notification.read)}"> | |
11 | <div class="notification-header"> |
|
11 | <div class="notification-header"> | |
12 | <div class="desc ${unread(notification.read)}"> |
|
12 | <div class="desc ${unread(notification.read)}"> | |
13 | <a href="${url('notification', notification_id=notification.notification.notification_id)}"> |
|
13 | <a href="${h.url('notification', notification_id=notification.notification.notification_id)}"> | |
14 | ${base.gravatar(notification.notification.created_by_user.email, 16)} |
|
14 | ${base.gravatar(notification.notification.created_by_user.email, 16)} | |
15 | ${notification.notification.description} |
|
15 | ${notification.notification.description} | |
16 | </a> |
|
16 | </a> |
@@ -47,8 +47,8 b'' | |||||
47 | </div> |
|
47 | </div> | |
48 | </div> |
|
48 | </div> | |
49 | <script type="text/javascript"> |
|
49 | <script type="text/javascript"> | |
50 | var url = "${url('notification', notification_id='__NOTIFICATION_ID__')}"; |
|
50 | var url = "${h.url('notification', notification_id='__NOTIFICATION_ID__')}"; | |
51 | var main = "${url('notifications')}"; |
|
51 | var main = "${h.url('notifications')}"; | |
52 | $('.delete-notification').on('click',function(e){ |
|
52 | $('.delete-notification').on('click',function(e){ | |
53 | var notification_id = e.currentTarget.id; |
|
53 | var notification_id = e.currentTarget.id; | |
54 | deleteNotification(url,notification_id,[function(){window.location=main}]) |
|
54 | deleteNotification(url,notification_id,[function(){window.location=main}]) |
@@ -3,7 +3,7 b'' | |||||
3 | <h3 class="panel-title">${_('System Wide Application Permissions')}</h3> |
|
3 | <h3 class="panel-title">${_('System Wide Application Permissions')}</h3> | |
4 | </div> |
|
4 | </div> | |
5 | <div class="panel-body"> |
|
5 | <div class="panel-body"> | |
6 | ${h.secure_form(url('admin_permissions_application'), method='post')} |
|
6 | ${h.secure_form(h.url('admin_permissions_application'), method='post')} | |
7 | <div class="form"> |
|
7 | <div class="form"> | |
8 | <!-- fields --> |
|
8 | <!-- fields --> | |
9 | <div class="fields"> |
|
9 | <div class="fields"> |
@@ -1,5 +1,5 b'' | |||||
1 |
|
1 | |||
2 | ${h.secure_form(url('admin_permissions_global'), method='post')} |
|
2 | ${h.secure_form(h.url('admin_permissions_global'), method='post')} | |
3 | <div class="form permissions-global"> |
|
3 | <div class="form permissions-global"> | |
4 | <!-- fields --> |
|
4 | <!-- fields --> | |
5 | <div class="fields"> |
|
5 | <div class="fields"> |
@@ -5,7 +5,7 b'' | |||||
5 | <div class="panel-body"> |
|
5 | <div class="panel-body"> | |
6 | <p>${_('Default system permissions. Each permissions management entity will be created with the following default settings. Check the overwrite checkbox to force any permission changes on already existing settings.')} |
|
6 | <p>${_('Default system permissions. Each permissions management entity will be created with the following default settings. Check the overwrite checkbox to force any permission changes on already existing settings.')} | |
7 | </p> |
|
7 | </p> | |
8 | ${h.secure_form(url('admin_permissions_object'), method='post')} |
|
8 | ${h.secure_form(h.url('admin_permissions_object'), method='post')} | |
9 | <div class="form"> |
|
9 | <div class="form"> | |
10 | <div class="fields"> |
|
10 | <div class="fields"> | |
11 | <div class="field"> |
|
11 | <div class="field"> |
@@ -27,7 +27,7 b'' | |||||
27 | ${self.breadcrumbs()} |
|
27 | ${self.breadcrumbs()} | |
28 | </div> |
|
28 | </div> | |
29 | <!-- end box / title --> |
|
29 | <!-- end box / title --> | |
30 | ${h.secure_form(url('repo_groups'), method='post')} |
|
30 | ${h.secure_form(h.url('repo_groups'), method='post')} | |
31 | <div class="form"> |
|
31 | <div class="form"> | |
32 | <!-- fields --> |
|
32 | <!-- fields --> | |
33 | <div class="fields"> |
|
33 | <div class="fields"> |
@@ -5,7 +5,7 b'' | |||||
5 | <h3 class="panel-title">${_('Repository Group Permissions')}</h3> |
|
5 | <h3 class="panel-title">${_('Repository Group Permissions')}</h3> | |
6 | </div> |
|
6 | </div> | |
7 | <div class="panel-body"> |
|
7 | <div class="panel-body"> | |
8 | ${h.secure_form(url('edit_repo_group_perms', group_name=c.repo_group.group_name),method='put')} |
|
8 | ${h.secure_form(h.url('edit_repo_group_perms', group_name=c.repo_group.group_name),method='put')} | |
9 | <table id="permissions_manage" class="rctable permissions"> |
|
9 | <table id="permissions_manage" class="rctable permissions"> | |
10 | <tr> |
|
10 | <tr> | |
11 | <th class="td-radio">${_('None')}</th> |
|
11 | <th class="td-radio">${_('None')}</th> |
@@ -6,7 +6,7 b'' | |||||
6 | <h3 class="panel-title">${_('Settings for Repository Group: %s') % c.repo_group.name}</h3> |
|
6 | <h3 class="panel-title">${_('Settings for Repository Group: %s') % c.repo_group.name}</h3> | |
7 | </div> |
|
7 | </div> | |
8 | <div class="panel-body"> |
|
8 | <div class="panel-body"> | |
9 | ${h.secure_form(url('update_repo_group',group_name=c.repo_group.group_name),method='put')} |
|
9 | ${h.secure_form(h.url('update_repo_group',group_name=c.repo_group.group_name),method='put')} | |
10 | <div class="form"> |
|
10 | <div class="form"> | |
11 | <!-- fields --> |
|
11 | <!-- fields --> | |
12 | <div class="fields"> |
|
12 | <div class="fields"> |
@@ -1,6 +1,6 b'' | |||||
1 | ## -*- coding: utf-8 -*- |
|
1 | ## -*- coding: utf-8 -*- | |
2 |
|
2 | |||
3 | ${h.secure_form(url('repos'))} |
|
3 | ${h.secure_form(h.url('repos'))} | |
4 | <div class="form"> |
|
4 | <div class="form"> | |
5 | <!-- fields --> |
|
5 | <!-- fields --> | |
6 | <div class="fields"> |
|
6 | <div class="fields"> |
@@ -18,7 +18,7 b'' | |||||
18 | <td class="td-hash">${field.field_key}</td> |
|
18 | <td class="td-hash">${field.field_key}</td> | |
19 | <td class="td-type">${field.field_type}</td> |
|
19 | <td class="td-type">${field.field_type}</td> | |
20 | <td class="td-action"> |
|
20 | <td class="td-action"> | |
21 | ${h.secure_form(url('delete_repo_fields', repo_name=c.repo_info.repo_name, field_id=field.repo_field_id),method='delete')} |
|
21 | ${h.secure_form(h.url('delete_repo_fields', repo_name=c.repo_info.repo_name, field_id=field.repo_field_id),method='delete')} | |
22 | ${h.hidden('del_repo_field',field.repo_field_id)} |
|
22 | ${h.hidden('del_repo_field',field.repo_field_id)} | |
23 | <button class="btn btn-link btn-danger" type="submit" |
|
23 | <button class="btn btn-link btn-danger" type="submit" | |
24 | onclick="return confirm('${_('Confirm to delete this field: %s') % field.field_key}');"> |
|
24 | onclick="return confirm('${_('Confirm to delete this field: %s') % field.field_key}');"> | |
@@ -31,7 +31,7 b'' | |||||
31 | </table> |
|
31 | </table> | |
32 | </div> |
|
32 | </div> | |
33 | %endif |
|
33 | %endif | |
34 | ${h.secure_form(url('create_repo_fields', repo_name=c.repo_name),method='put')} |
|
34 | ${h.secure_form(h.url('create_repo_fields', repo_name=c.repo_name),method='put')} | |
35 | <div class="form"> |
|
35 | <div class="form"> | |
36 | <!-- fields --> |
|
36 | <!-- fields --> | |
37 | <div class="fields"> |
|
37 | <div class="fields"> |
@@ -1,7 +1,7 b'' | |||||
1 | <%namespace name="its" file="/base/issue_tracker_settings.mako"/> |
|
1 | <%namespace name="its" file="/base/issue_tracker_settings.mako"/> | |
2 |
|
2 | |||
3 | <div id="repo_issue_tracker" class="${'inherited' if c.settings_model.inherit_global_settings else ''}"> |
|
3 | <div id="repo_issue_tracker" class="${'inherited' if c.settings_model.inherit_global_settings else ''}"> | |
4 | ${h.secure_form(url('repo_issuetracker_save', repo_name=c.repo_name), method='post', id="inherit-form")} |
|
4 | ${h.secure_form(h.url('repo_issuetracker_save', repo_name=c.repo_name), method='post', id="inherit-form")} | |
5 | <div class="panel panel-default panel-body"> |
|
5 | <div class="panel panel-default panel-body"> | |
6 | <div class="fields"> |
|
6 | <div class="fields"> | |
7 | <div class="field"> |
|
7 | <div class="field"> | |
@@ -72,8 +72,8 b'' | |||||
72 | <div class="panel-body"> |
|
72 | <div class="panel-body"> | |
73 | ${its.issue_tracker_settings_table( |
|
73 | ${its.issue_tracker_settings_table( | |
74 | patterns=c.repo_patterns.items(), |
|
74 | patterns=c.repo_patterns.items(), | |
75 | form_url=url('repo_settings_issuetracker', repo_name=c.repo_info.repo_name), |
|
75 | form_url=h.url('repo_settings_issuetracker', repo_name=c.repo_info.repo_name), | |
76 | delete_url=url('repo_issuetracker_delete', repo_name=c.repo_info.repo_name) |
|
76 | delete_url=h.url('repo_issuetracker_delete', repo_name=c.repo_info.repo_name) | |
77 | )} |
|
77 | )} | |
78 | <div class="buttons"> |
|
78 | <div class="buttons"> | |
79 | <button type="submit" class="btn btn-primary save-inheritance" id="save">${_('Save')}</button> |
|
79 | <button type="submit" class="btn btn-primary save-inheritance" id="save">${_('Save')}</button> | |
@@ -92,7 +92,7 b'' | |||||
92 | </div> |
|
92 | </div> | |
93 | <div class="panel-body"> |
|
93 | <div class="panel-body"> | |
94 | ${its.issue_tracker_new_row()} |
|
94 | ${its.issue_tracker_new_row()} | |
95 | ${its.issue_tracker_settings_test(test_url=url('repo_issuetracker_test', repo_name=c.repo_info.repo_name))} |
|
95 | ${its.issue_tracker_settings_test(test_url=h.url('repo_issuetracker_test', repo_name=c.repo_info.repo_name))} | |
96 | </div> |
|
96 | </div> | |
97 | </div> |
|
97 | </div> | |
98 |
|
98 |
@@ -19,7 +19,7 b'' | |||||
19 | </code> |
|
19 | </code> | |
20 | </p> |
|
20 | </p> | |
21 |
|
21 | |||
22 | ${h.secure_form(url('edit_repo_remote', repo_name=c.repo_name), method='put')} |
|
22 | ${h.secure_form(h.url('edit_repo_remote', repo_name=c.repo_name), method='put')} | |
23 | <div class="form"> |
|
23 | <div class="form"> | |
24 | <div class="fields"> |
|
24 | <div class="fields"> | |
25 | ${h.submit('remote_pull_%s' % c.repo_info.repo_name,_('Pull changes from remote location'),class_="btn btn-small",onclick="return confirm('"+_('Confirm to pull changes from remote side')+"');")} |
|
25 | ${h.submit('remote_pull_%s' % c.repo_info.repo_name,_('Pull changes from remote location'),class_="btn btn-small",onclick="return confirm('"+_('Confirm to pull changes from remote side')+"');")} |
@@ -3,7 +3,7 b'' | |||||
3 | <h3 class="panel-title">${_('Repository statistics')}</h3> |
|
3 | <h3 class="panel-title">${_('Repository statistics')}</h3> | |
4 | </div> |
|
4 | </div> | |
5 | <div class="panel-body"> |
|
5 | <div class="panel-body"> | |
6 | ${h.secure_form(url('edit_repo_statistics', repo_name=c.repo_info.repo_name), method='put')} |
|
6 | ${h.secure_form(h.url('edit_repo_statistics', repo_name=c.repo_info.repo_name), method='put')} | |
7 | <div class="form"> |
|
7 | <div class="form"> | |
8 | <div class="fields"> |
|
8 | <div class="fields"> | |
9 | <div class="field" > |
|
9 | <div class="field" > |
@@ -1,7 +1,7 b'' | |||||
1 | <%namespace name="vcss" file="/base/vcs_settings.mako"/> |
|
1 | <%namespace name="vcss" file="/base/vcs_settings.mako"/> | |
2 |
|
2 | |||
3 | <div id="repo_vcs_settings" class="${'inherited' if c.inherit_global_settings else ''}"> |
|
3 | <div id="repo_vcs_settings" class="${'inherited' if c.inherit_global_settings else ''}"> | |
4 | ${h.secure_form(url('repo_vcs_settings', repo_name=c.repo_info.repo_name), method='post')} |
|
4 | ${h.secure_form(h.url('repo_vcs_settings', repo_name=c.repo_info.repo_name), method='post')} | |
5 | <div class="form panel panel-default"> |
|
5 | <div class="form panel panel-default"> | |
6 | <div class="fields panel-body"> |
|
6 | <div class="fields panel-body"> | |
7 | <div class="field"> |
|
7 | <div class="field"> |
@@ -34,7 +34,7 b'' | |||||
34 | <h3 class="panel-title">${_('Test Email')}</h3> |
|
34 | <h3 class="panel-title">${_('Test Email')}</h3> | |
35 | </div> |
|
35 | </div> | |
36 | <div class="panel-body"> |
|
36 | <div class="panel-body"> | |
37 | ${h.secure_form(url('admin_settings_email'), method='post')} |
|
37 | ${h.secure_form(h.url('admin_settings_email'), method='post')} | |
38 |
|
38 | |||
39 | <div class="field input"> |
|
39 | <div class="field input"> | |
40 | ${h.text('test_email', size=60, placeholder=_('enter valid email'))} |
|
40 | ${h.text('test_email', size=60, placeholder=_('enter valid email'))} |
@@ -1,4 +1,4 b'' | |||||
1 | ${h.secure_form(url('admin_settings_global'), method='post')} |
|
1 | ${h.secure_form(h.url('admin_settings_global'), method='post')} | |
2 |
|
2 | |||
3 | <div class="panel panel-default"> |
|
3 | <div class="panel panel-default"> | |
4 | <div class="panel-heading" id="branding-options"> |
|
4 | <div class="panel-heading" id="branding-options"> |
@@ -28,7 +28,7 b'' | |||||
28 | </div> |
|
28 | </div> | |
29 | <div class="panel-body"> |
|
29 | <div class="panel-body"> | |
30 | % if c.visual.allow_custom_hooks_settings: |
|
30 | % if c.visual.allow_custom_hooks_settings: | |
31 | ${h.secure_form(url('admin_settings_hooks'), method='post')} |
|
31 | ${h.secure_form(h.url('admin_settings_hooks'), method='post')} | |
32 | <div class="form"> |
|
32 | <div class="form"> | |
33 | <div class="fields"> |
|
33 | <div class="fields"> | |
34 |
|
34 |
@@ -5,11 +5,11 b'' | |||||
5 | <h3 class="panel-title">${_('Issue Tracker / Wiki Patterns')}</h3> |
|
5 | <h3 class="panel-title">${_('Issue Tracker / Wiki Patterns')}</h3> | |
6 | </div> |
|
6 | </div> | |
7 | <div class="panel-body"> |
|
7 | <div class="panel-body"> | |
8 | ${h.secure_form(url('admin_settings_issuetracker_save'), method='post')} |
|
8 | ${h.secure_form(h.url('admin_settings_issuetracker_save'), method='post')} | |
9 | ${its.issue_tracker_settings_table( |
|
9 | ${its.issue_tracker_settings_table( | |
10 | patterns=c.issuetracker_entries.items(), |
|
10 | patterns=c.issuetracker_entries.items(), | |
11 | form_url=url('admin_settings_issuetracker'), |
|
11 | form_url=h.url('admin_settings_issuetracker'), | |
12 | delete_url=url('admin_issuetracker_delete') |
|
12 | delete_url=h.url('admin_issuetracker_delete') | |
13 | )} |
|
13 | )} | |
14 | <div class="buttons"> |
|
14 | <div class="buttons"> | |
15 | <button type="submit" class="btn btn-primary" id="save">${_('Save')}</button> |
|
15 | <button type="submit" class="btn btn-primary" id="save">${_('Save')}</button> | |
@@ -25,7 +25,7 b'' | |||||
25 | </div> |
|
25 | </div> | |
26 | <div class="panel-body"> |
|
26 | <div class="panel-body"> | |
27 | ${its.issue_tracker_new_row()} |
|
27 | ${its.issue_tracker_new_row()} | |
28 | ${its.issue_tracker_settings_test(test_url=url('admin_issuetracker_test'))} |
|
28 | ${its.issue_tracker_settings_test(test_url=h.url('admin_issuetracker_test'))} | |
29 | </div> |
|
29 | </div> | |
30 | </div> |
|
30 | </div> | |
31 |
|
31 |
@@ -3,7 +3,7 b'' | |||||
3 | <h3 class="panel-title">${_('Labs Settings')}</h3> |
|
3 | <h3 class="panel-title">${_('Labs Settings')}</h3> | |
4 | </div> |
|
4 | </div> | |
5 | <div class="panel-body"> |
|
5 | <div class="panel-body"> | |
6 | ${h.secure_form(url('admin_settings_labs'), method='post')} |
|
6 | ${h.secure_form(h.url('admin_settings_labs'), method='post')} | |
7 | <div class="form"> |
|
7 | <div class="form"> | |
8 | <div class="fields"> |
|
8 | <div class="fields"> | |
9 | % if not c.lab_settings: |
|
9 | % if not c.lab_settings: |
@@ -1,4 +1,4 b'' | |||||
1 | ${h.secure_form(url('admin_settings_mapping'), method='post')} |
|
1 | ${h.secure_form(h.url('admin_settings_mapping'), method='post')} | |
2 |
|
2 | |||
3 | <div class="panel panel-default"> |
|
3 | <div class="panel panel-default"> | |
4 | <div class="panel-heading"> |
|
4 | <div class="panel-heading"> |
@@ -1,6 +1,6 b'' | |||||
1 | <%namespace name="vcss" file="/base/vcs_settings.mako"/> |
|
1 | <%namespace name="vcss" file="/base/vcs_settings.mako"/> | |
2 |
|
2 | |||
3 | ${h.secure_form(url('admin_settings_vcs'), method='post')} |
|
3 | ${h.secure_form(h.url('admin_settings_vcs'), method='post')} | |
4 | <div> |
|
4 | <div> | |
5 | ${vcss.vcs_settings_fields( |
|
5 | ${vcss.vcs_settings_fields( | |
6 | suffix='', |
|
6 | suffix='', |
@@ -1,4 +1,4 b'' | |||||
1 | ${h.secure_form(url('admin_settings_visual'), method='post')} |
|
1 | ${h.secure_form(h.url('admin_settings_visual'), method='post')} | |
2 |
|
2 | |||
3 | <div class="panel panel-default"> |
|
3 | <div class="panel panel-default"> | |
4 | <div class="panel-heading" id="general"> |
|
4 | <div class="panel-heading" id="general"> |
@@ -26,7 +26,7 b'' | |||||
26 | ${self.breadcrumbs()} |
|
26 | ${self.breadcrumbs()} | |
27 | </div> |
|
27 | </div> | |
28 | <!-- end box / title --> |
|
28 | <!-- end box / title --> | |
29 | ${h.secure_form(url('users_groups'))} |
|
29 | ${h.secure_form(h.url('users_groups'))} | |
30 | <div class="form"> |
|
30 | <div class="form"> | |
31 | <!-- fields --> |
|
31 | <!-- fields --> | |
32 | <div class="fields"> |
|
32 | <div class="fields"> |
@@ -1,3 +1,3 b'' | |||||
1 | <%namespace name="dpb" file="/base/default_perms_box.mako"/> |
|
1 | <%namespace name="dpb" file="/base/default_perms_box.mako"/> | |
2 | ${dpb.default_perms_box(url('edit_user_group_global_perms', user_group_id=c.user_group.users_group_id))} |
|
2 | ${dpb.default_perms_box(h.url('edit_user_group_global_perms', user_group_id=c.user_group.users_group_id))} | |
3 |
|
3 |
@@ -5,7 +5,7 b'' | |||||
5 | <h3 class="panel-title">${_('User Group Permissions')}</h3> |
|
5 | <h3 class="panel-title">${_('User Group Permissions')}</h3> | |
6 | </div> |
|
6 | </div> | |
7 | <div class="panel-body"> |
|
7 | <div class="panel-body"> | |
8 | ${h.secure_form(url('edit_user_group_perms', user_group_id=c.user_group.users_group_id),method='put')} |
|
8 | ${h.secure_form(h.url('edit_user_group_perms', user_group_id=c.user_group.users_group_id),method='put')} | |
9 | <table id="permissions_manage" class="rctable permissions"> |
|
9 | <table id="permissions_manage" class="rctable permissions"> | |
10 | <tr> |
|
10 | <tr> | |
11 | <th class="td-radio">${_('None')}</th> |
|
11 | <th class="td-radio">${_('None')}</th> |
@@ -6,7 +6,7 b'' | |||||
6 | <h3 class="panel-title">${_('User Group: %s') % c.user_group.users_group_name}</h3> |
|
6 | <h3 class="panel-title">${_('User Group: %s') % c.user_group.users_group_name}</h3> | |
7 | </div> |
|
7 | </div> | |
8 | <div class="panel-body"> |
|
8 | <div class="panel-body"> | |
9 | ${h.secure_form(url('update_users_group', user_group_id=c.user_group.users_group_id),method='put', id='edit_users_group')} |
|
9 | ${h.secure_form(h.url('update_users_group', user_group_id=c.user_group.users_group_id),method='put', id='edit_users_group')} | |
10 | <div class="form"> |
|
10 | <div class="form"> | |
11 | <!-- fields --> |
|
11 | <!-- fields --> | |
12 | <div class="fields"> |
|
12 | <div class="fields"> |
@@ -26,7 +26,7 b'' | |||||
26 | ${self.breadcrumbs()} |
|
26 | ${self.breadcrumbs()} | |
27 | </div> |
|
27 | </div> | |
28 | <!-- end box / title --> |
|
28 | <!-- end box / title --> | |
29 | ${h.secure_form(url('users'))} |
|
29 | ${h.secure_form(h.url('users'))} | |
30 | <div class="form"> |
|
30 | <div class="form"> | |
31 | <!-- fields --> |
|
31 | <!-- fields --> | |
32 | <div class="fields"> |
|
32 | <div class="fields"> |
@@ -1,2 +1,2 b'' | |||||
1 | <%namespace name="dpb" file="/base/default_perms_box.mako"/> |
|
1 | <%namespace name="dpb" file="/base/default_perms_box.mako"/> | |
2 | ${dpb.default_perms_box(url('edit_user_global_perms', user_id=c.user.user_id))} |
|
2 | ${dpb.default_perms_box(h.url('edit_user_global_perms', user_id=c.user.user_id))} |
@@ -6,7 +6,7 b'' | |||||
6 | </div> |
|
6 | </div> | |
7 | <div class="panel-body"> |
|
7 | <div class="panel-body"> | |
8 | <div class="user-profile-content"> |
|
8 | <div class="user-profile-content"> | |
9 | ${h.secure_form(url('update_user', user_id=c.user.user_id),method='put', class_='form')} |
|
9 | ${h.secure_form(h.url('update_user', user_id=c.user.user_id),method='put', class_='form')} | |
10 | <% readonly = None %> |
|
10 | <% readonly = None %> | |
11 | <% disabled = "" %> |
|
11 | <% disabled = "" %> | |
12 | %if c.extern_type != 'rhodecode': |
|
12 | %if c.extern_type != 'rhodecode': |
@@ -106,7 +106,7 b'' | |||||
106 | <span class="help-block"> |
|
106 | <span class="help-block"> | |
107 | ${h.literal(_('Select to inherit permissions from %s permissions settings, ' |
|
107 | ${h.literal(_('Select to inherit permissions from %s permissions settings, ' | |
108 | 'including default IP address whitelist and inheritance of \npermission by members of user groups.') |
|
108 | 'including default IP address whitelist and inheritance of \npermission by members of user groups.') | |
109 | % h.link_to('default user', url('admin_permissions_global')))} |
|
109 | % h.link_to('default user', h.url('admin_permissions_global')))} | |
110 | </span> |
|
110 | </span> | |
111 | </div> |
|
111 | </div> | |
112 | </div> |
|
112 | </div> |
@@ -21,7 +21,7 b'' | |||||
21 | <%def name="main()"> |
|
21 | <%def name="main()"> | |
22 | <script> |
|
22 | <script> | |
23 | // TODO: marcink switch this to pyroutes |
|
23 | // TODO: marcink switch this to pyroutes | |
24 | AJAX_COMMENT_DELETE_URL = "${url('changeset_comment_delete',repo_name=c.repo_name,comment_id='__COMMENT_ID__')}"; |
|
24 | AJAX_COMMENT_DELETE_URL = "${h.url('changeset_comment_delete',repo_name=c.repo_name,comment_id='__COMMENT_ID__')}"; | |
25 | templateContext.commit_data.commit_id = "${c.commit.raw_id}"; |
|
25 | templateContext.commit_data.commit_id = "${c.commit.raw_id}"; | |
26 | </script> |
|
26 | </script> | |
27 | <div class="box"> |
|
27 | <div class="box"> |
@@ -27,7 +27,7 b'' | |||||
27 | ${self.breadcrumbs()} |
|
27 | ${self.breadcrumbs()} | |
28 | </div> |
|
28 | </div> | |
29 |
|
29 | |||
30 | ${h.secure_form(url('repo_fork_create_home',repo_name=c.repo_info.repo_name))} |
|
30 | ${h.secure_form(h.url('repo_fork_create_home',repo_name=c.repo_info.repo_name))} | |
31 | <div class="form"> |
|
31 | <div class="form"> | |
32 | <!-- fields --> |
|
32 | <!-- fields --> | |
33 | <div class="fields"> |
|
33 | <div class="fields"> |
@@ -22,7 +22,7 b'' | |||||
22 | ${self.repo_page_title(c.rhodecode_db_repo)} |
|
22 | ${self.repo_page_title(c.rhodecode_db_repo)} | |
23 | </div> |
|
23 | </div> | |
24 |
|
24 | |||
25 | ${h.secure_form(url('pullrequest', repo_name=c.repo_name), method='post', id='pull_request_form')} |
|
25 | ${h.secure_form(h.url('pullrequest', repo_name=c.repo_name), method='post', id='pull_request_form')} | |
26 |
|
26 | |||
27 | ${self.breadcrumbs()} |
|
27 | ${self.breadcrumbs()} | |
28 |
|
28 |
@@ -32,7 +32,7 b'' | |||||
32 | <div class="pull-request-merge-actions"> |
|
32 | <div class="pull-request-merge-actions"> | |
33 | % if c.allowed_to_merge: |
|
33 | % if c.allowed_to_merge: | |
34 | <div class="pull-right"> |
|
34 | <div class="pull-right"> | |
35 | ${h.secure_form(url('pullrequest_merge', repo_name=c.repo_name, pull_request_id=c.pull_request.pull_request_id), id='merge_pull_request_form')} |
|
35 | ${h.secure_form(h.url('pullrequest_merge', repo_name=c.repo_name, pull_request_id=c.pull_request.pull_request_id), id='merge_pull_request_form')} | |
36 | <% merge_disabled = ' disabled' if c.pr_merge_possible is False else '' %> |
|
36 | <% merge_disabled = ' disabled' if c.pr_merge_possible is False else '' %> | |
37 | <a class="btn" href="#" onclick="refreshMergeChecks(); return false;">${_('refresh checks')}</a> |
|
37 | <a class="btn" href="#" onclick="refreshMergeChecks(); return false;">${_('refresh checks')}</a> | |
38 | <input type="submit" id="merge_pull_request" value="${_('Merge Pull Request')}" class="btn${merge_disabled}"${merge_disabled}> |
|
38 | <input type="submit" id="merge_pull_request" value="${_('Merge Pull Request')}" class="btn${merge_disabled}"${merge_disabled}> |
@@ -32,7 +32,7 b'' | |||||
32 |
|
32 | |||
33 | <script type="text/javascript"> |
|
33 | <script type="text/javascript"> | |
34 | // TODO: marcink switch this to pyroutes |
|
34 | // TODO: marcink switch this to pyroutes | |
35 | AJAX_COMMENT_DELETE_URL = "${url('pullrequest_comment_delete',repo_name=c.repo_name,comment_id='__COMMENT_ID__')}"; |
|
35 | AJAX_COMMENT_DELETE_URL = "${h.url('pullrequest_comment_delete',repo_name=c.repo_name,comment_id='__COMMENT_ID__')}"; | |
36 | templateContext.pull_request_data.pull_request_id = ${c.pull_request.pull_request_id}; |
|
36 | templateContext.pull_request_data.pull_request_id = ${c.pull_request.pull_request_id}; | |
37 | </script> |
|
37 | </script> | |
38 | <div class="box"> |
|
38 | <div class="box"> | |
@@ -52,7 +52,7 b'' | |||||
52 | %if c.allowed_to_update: |
|
52 | %if c.allowed_to_update: | |
53 | <div id="delete_pullrequest" class="pull-right action_button ${'' if c.allowed_to_delete else 'disabled' }" style="clear:inherit;padding: 0"> |
|
53 | <div id="delete_pullrequest" class="pull-right action_button ${'' if c.allowed_to_delete else 'disabled' }" style="clear:inherit;padding: 0"> | |
54 | % if c.allowed_to_delete: |
|
54 | % if c.allowed_to_delete: | |
55 | ${h.secure_form(url('pullrequest_delete', repo_name=c.pull_request.target_repo.repo_name, pull_request_id=c.pull_request.pull_request_id),method='delete')} |
|
55 | ${h.secure_form(h.url('pullrequest_delete', repo_name=c.pull_request.target_repo.repo_name, pull_request_id=c.pull_request.pull_request_id),method='delete')} | |
56 | ${h.submit('remove_%s' % c.pull_request.pull_request_id, _('Delete'), |
|
56 | ${h.submit('remove_%s' % c.pull_request.pull_request_id, _('Delete'), | |
57 | class_="btn btn-link btn-danger no-margin",onclick="return confirm('"+_('Confirm to delete this pull request')+"');")} |
|
57 | class_="btn btn-link btn-danger no-margin",onclick="return confirm('"+_('Confirm to delete this pull request')+"');")} | |
58 | ${h.end_form()} |
|
58 | ${h.end_form()} |
General Comments 0
You need to be logged in to leave comments.
Login now