Show More
@@ -54,7 +54,6 b' def add_renderer_globals(event):' | |||
|
54 | 54 | # Put pylons stuff into the context. This will be removed as soon as |
|
55 | 55 | # migration to pyramid is finished. |
|
56 | 56 | event['c'] = pylons.tmpl_context |
|
57 | event['url'] = pylons.url | |
|
58 | 57 | |
|
59 | 58 | # TODO: When executed in pyramid view context the request is not available |
|
60 | 59 | # in the event. Find a better solution to get the request. |
@@ -3,7 +3,7 b'' | |||
|
3 | 3 | <h3 class="panel-title">${_('Default Settings For New Repositories')}</h3> |
|
4 | 4 | </div> |
|
5 | 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 | 7 | <div class="form"> |
|
8 | 8 | <!-- fields --> |
|
9 | 9 |
@@ -44,7 +44,7 b'' | |||
|
44 | 44 | </div> |
|
45 | 45 | </div> |
|
46 | 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 | 48 | var run = function(){ |
|
49 | 49 | $('#notification_data').on('click','.delete-notification',function(e){ |
|
50 | 50 | var notification_id = e.currentTarget.id; |
@@ -10,7 +10,7 b" unread = lambda n:{False:'unread'}.get(n" | |||
|
10 | 10 | <div id="notification_${notification.notification.notification_id}" class="container ${unread(notification.read)}"> |
|
11 | 11 | <div class="notification-header"> |
|
12 | 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 | 14 | ${base.gravatar(notification.notification.created_by_user.email, 16)} |
|
15 | 15 | ${notification.notification.description} |
|
16 | 16 | </a> |
@@ -47,8 +47,8 b'' | |||
|
47 | 47 | </div> |
|
48 | 48 | </div> |
|
49 | 49 | <script type="text/javascript"> |
|
50 | var url = "${url('notification', notification_id='__NOTIFICATION_ID__')}"; | |
|
51 | var main = "${url('notifications')}"; | |
|
50 | var url = "${h.url('notification', notification_id='__NOTIFICATION_ID__')}"; | |
|
51 | var main = "${h.url('notifications')}"; | |
|
52 | 52 | $('.delete-notification').on('click',function(e){ |
|
53 | 53 | var notification_id = e.currentTarget.id; |
|
54 | 54 | deleteNotification(url,notification_id,[function(){window.location=main}]) |
@@ -3,7 +3,7 b'' | |||
|
3 | 3 | <h3 class="panel-title">${_('System Wide Application Permissions')}</h3> |
|
4 | 4 | </div> |
|
5 | 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 | 7 | <div class="form"> |
|
8 | 8 | <!-- fields --> |
|
9 | 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 | 3 | <div class="form permissions-global"> |
|
4 | 4 | <!-- fields --> |
|
5 | 5 | <div class="fields"> |
@@ -5,7 +5,7 b'' | |||
|
5 | 5 | <div class="panel-body"> |
|
6 | 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 | 7 | </p> |
|
8 | ${h.secure_form(url('admin_permissions_object'), method='post')} | |
|
8 | ${h.secure_form(h.url('admin_permissions_object'), method='post')} | |
|
9 | 9 | <div class="form"> |
|
10 | 10 | <div class="fields"> |
|
11 | 11 | <div class="field"> |
@@ -27,7 +27,7 b'' | |||
|
27 | 27 | ${self.breadcrumbs()} |
|
28 | 28 | </div> |
|
29 | 29 | <!-- end box / title --> |
|
30 | ${h.secure_form(url('repo_groups'), method='post')} | |
|
30 | ${h.secure_form(h.url('repo_groups'), method='post')} | |
|
31 | 31 | <div class="form"> |
|
32 | 32 | <!-- fields --> |
|
33 | 33 | <div class="fields"> |
@@ -5,7 +5,7 b'' | |||
|
5 | 5 | <h3 class="panel-title">${_('Repository Group Permissions')}</h3> |
|
6 | 6 | </div> |
|
7 | 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 | 9 | <table id="permissions_manage" class="rctable permissions"> |
|
10 | 10 | <tr> |
|
11 | 11 | <th class="td-radio">${_('None')}</th> |
@@ -6,7 +6,7 b'' | |||
|
6 | 6 | <h3 class="panel-title">${_('Settings for Repository Group: %s') % c.repo_group.name}</h3> |
|
7 | 7 | </div> |
|
8 | 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 | 10 | <div class="form"> |
|
11 | 11 | <!-- fields --> |
|
12 | 12 | <div class="fields"> |
@@ -1,6 +1,6 b'' | |||
|
1 | 1 | ## -*- coding: utf-8 -*- |
|
2 | 2 | |
|
3 | ${h.secure_form(url('repos'))} | |
|
3 | ${h.secure_form(h.url('repos'))} | |
|
4 | 4 | <div class="form"> |
|
5 | 5 | <!-- fields --> |
|
6 | 6 | <div class="fields"> |
@@ -18,7 +18,7 b'' | |||
|
18 | 18 | <td class="td-hash">${field.field_key}</td> |
|
19 | 19 | <td class="td-type">${field.field_type}</td> |
|
20 | 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 | 22 | ${h.hidden('del_repo_field',field.repo_field_id)} |
|
23 | 23 | <button class="btn btn-link btn-danger" type="submit" |
|
24 | 24 | onclick="return confirm('${_('Confirm to delete this field: %s') % field.field_key}');"> |
@@ -31,7 +31,7 b'' | |||
|
31 | 31 | </table> |
|
32 | 32 | </div> |
|
33 | 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 | 35 | <div class="form"> |
|
36 | 36 | <!-- fields --> |
|
37 | 37 | <div class="fields"> |
@@ -1,7 +1,7 b'' | |||
|
1 | 1 | <%namespace name="its" file="/base/issue_tracker_settings.mako"/> |
|
2 | 2 | |
|
3 | 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 | 5 | <div class="panel panel-default panel-body"> |
|
6 | 6 | <div class="fields"> |
|
7 | 7 | <div class="field"> |
@@ -72,8 +72,8 b'' | |||
|
72 | 72 | <div class="panel-body"> |
|
73 | 73 | ${its.issue_tracker_settings_table( |
|
74 | 74 | patterns=c.repo_patterns.items(), |
|
75 | form_url=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) | |
|
75 | form_url=h.url('repo_settings_issuetracker', 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 | 78 | <div class="buttons"> |
|
79 | 79 | <button type="submit" class="btn btn-primary save-inheritance" id="save">${_('Save')}</button> |
@@ -92,7 +92,7 b'' | |||
|
92 | 92 | </div> |
|
93 | 93 | <div class="panel-body"> |
|
94 | 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 | 96 | </div> |
|
97 | 97 | </div> |
|
98 | 98 |
@@ -19,7 +19,7 b'' | |||
|
19 | 19 | </code> |
|
20 | 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 | 23 | <div class="form"> |
|
24 | 24 | <div class="fields"> |
|
25 | 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 | 3 | <h3 class="panel-title">${_('Repository statistics')}</h3> |
|
4 | 4 | </div> |
|
5 | 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 | 7 | <div class="form"> |
|
8 | 8 | <div class="fields"> |
|
9 | 9 | <div class="field" > |
@@ -1,7 +1,7 b'' | |||
|
1 | 1 | <%namespace name="vcss" file="/base/vcs_settings.mako"/> |
|
2 | 2 | |
|
3 | 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 | 5 | <div class="form panel panel-default"> |
|
6 | 6 | <div class="fields panel-body"> |
|
7 | 7 | <div class="field"> |
@@ -34,7 +34,7 b'' | |||
|
34 | 34 | <h3 class="panel-title">${_('Test Email')}</h3> |
|
35 | 35 | </div> |
|
36 | 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 | 39 | <div class="field input"> |
|
40 | 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 | 3 | <div class="panel panel-default"> |
|
4 | 4 | <div class="panel-heading" id="branding-options"> |
@@ -28,7 +28,7 b'' | |||
|
28 | 28 | </div> |
|
29 | 29 | <div class="panel-body"> |
|
30 | 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 | 32 | <div class="form"> |
|
33 | 33 | <div class="fields"> |
|
34 | 34 |
@@ -5,11 +5,11 b'' | |||
|
5 | 5 | <h3 class="panel-title">${_('Issue Tracker / Wiki Patterns')}</h3> |
|
6 | 6 | </div> |
|
7 | 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 | 9 | ${its.issue_tracker_settings_table( |
|
10 | 10 | patterns=c.issuetracker_entries.items(), |
|
11 | form_url=url('admin_settings_issuetracker'), | |
|
12 | delete_url=url('admin_issuetracker_delete') | |
|
11 | form_url=h.url('admin_settings_issuetracker'), | |
|
12 | delete_url=h.url('admin_issuetracker_delete') | |
|
13 | 13 | )} |
|
14 | 14 | <div class="buttons"> |
|
15 | 15 | <button type="submit" class="btn btn-primary" id="save">${_('Save')}</button> |
@@ -25,7 +25,7 b'' | |||
|
25 | 25 | </div> |
|
26 | 26 | <div class="panel-body"> |
|
27 | 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 | 29 | </div> |
|
30 | 30 | </div> |
|
31 | 31 |
@@ -3,7 +3,7 b'' | |||
|
3 | 3 | <h3 class="panel-title">${_('Labs Settings')}</h3> |
|
4 | 4 | </div> |
|
5 | 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 | 7 | <div class="form"> |
|
8 | 8 | <div class="fields"> |
|
9 | 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 | 3 | <div class="panel panel-default"> |
|
4 | 4 | <div class="panel-heading"> |
@@ -1,6 +1,6 b'' | |||
|
1 | 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 | 4 | <div> |
|
5 | 5 | ${vcss.vcs_settings_fields( |
|
6 | 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 | 3 | <div class="panel panel-default"> |
|
4 | 4 | <div class="panel-heading" id="general"> |
@@ -26,7 +26,7 b'' | |||
|
26 | 26 | ${self.breadcrumbs()} |
|
27 | 27 | </div> |
|
28 | 28 | <!-- end box / title --> |
|
29 | ${h.secure_form(url('users_groups'))} | |
|
29 | ${h.secure_form(h.url('users_groups'))} | |
|
30 | 30 | <div class="form"> |
|
31 | 31 | <!-- fields --> |
|
32 | 32 | <div class="fields"> |
@@ -1,3 +1,3 b'' | |||
|
1 | 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 | 5 | <h3 class="panel-title">${_('User Group Permissions')}</h3> |
|
6 | 6 | </div> |
|
7 | 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 | 9 | <table id="permissions_manage" class="rctable permissions"> |
|
10 | 10 | <tr> |
|
11 | 11 | <th class="td-radio">${_('None')}</th> |
@@ -6,7 +6,7 b'' | |||
|
6 | 6 | <h3 class="panel-title">${_('User Group: %s') % c.user_group.users_group_name}</h3> |
|
7 | 7 | </div> |
|
8 | 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 | 10 | <div class="form"> |
|
11 | 11 | <!-- fields --> |
|
12 | 12 | <div class="fields"> |
@@ -26,7 +26,7 b'' | |||
|
26 | 26 | ${self.breadcrumbs()} |
|
27 | 27 | </div> |
|
28 | 28 | <!-- end box / title --> |
|
29 | ${h.secure_form(url('users'))} | |
|
29 | ${h.secure_form(h.url('users'))} | |
|
30 | 30 | <div class="form"> |
|
31 | 31 | <!-- fields --> |
|
32 | 32 | <div class="fields"> |
@@ -1,2 +1,2 b'' | |||
|
1 | 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 | 6 | </div> |
|
7 | 7 | <div class="panel-body"> |
|
8 | 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 | 10 | <% readonly = None %> |
|
11 | 11 | <% disabled = "" %> |
|
12 | 12 | %if c.extern_type != 'rhodecode': |
@@ -106,7 +106,7 b'' | |||
|
106 | 106 | <span class="help-block"> |
|
107 | 107 | ${h.literal(_('Select to inherit permissions from %s permissions settings, ' |
|
108 | 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 | 110 | </span> |
|
111 | 111 | </div> |
|
112 | 112 | </div> |
@@ -21,7 +21,7 b'' | |||
|
21 | 21 | <%def name="main()"> |
|
22 | 22 | <script> |
|
23 | 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 | 25 | templateContext.commit_data.commit_id = "${c.commit.raw_id}"; |
|
26 | 26 | </script> |
|
27 | 27 | <div class="box"> |
@@ -27,7 +27,7 b'' | |||
|
27 | 27 | ${self.breadcrumbs()} |
|
28 | 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 | 31 | <div class="form"> |
|
32 | 32 | <!-- fields --> |
|
33 | 33 | <div class="fields"> |
@@ -22,7 +22,7 b'' | |||
|
22 | 22 | ${self.repo_page_title(c.rhodecode_db_repo)} |
|
23 | 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 | 27 | ${self.breadcrumbs()} |
|
28 | 28 |
@@ -32,7 +32,7 b'' | |||
|
32 | 32 | <div class="pull-request-merge-actions"> |
|
33 | 33 | % if c.allowed_to_merge: |
|
34 | 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 | 36 | <% merge_disabled = ' disabled' if c.pr_merge_possible is False else '' %> |
|
37 | 37 | <a class="btn" href="#" onclick="refreshMergeChecks(); return false;">${_('refresh checks')}</a> |
|
38 | 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 | 33 | <script type="text/javascript"> |
|
34 | 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 | 36 | templateContext.pull_request_data.pull_request_id = ${c.pull_request.pull_request_id}; |
|
37 | 37 | </script> |
|
38 | 38 | <div class="box"> |
@@ -52,7 +52,7 b'' | |||
|
52 | 52 | %if c.allowed_to_update: |
|
53 | 53 | <div id="delete_pullrequest" class="pull-right action_button ${'' if c.allowed_to_delete else 'disabled' }" style="clear:inherit;padding: 0"> |
|
54 | 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 | 56 | ${h.submit('remove_%s' % c.pull_request.pull_request_id, _('Delete'), |
|
57 | 57 | class_="btn btn-link btn-danger no-margin",onclick="return confirm('"+_('Confirm to delete this pull request')+"');")} |
|
58 | 58 | ${h.end_form()} |
General Comments 0
You need to be logged in to leave comments.
Login now