Show More
@@ -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(h.route_path('admin_defaults_repositories_update'), |
|
6 | ${h.secure_form(h.route_path('admin_defaults_repositories_update'), request=request)} | |
7 | <div class="form"> |
|
7 | <div class="form"> | |
8 | <!-- fields --> |
|
8 | <!-- fields --> | |
9 |
|
9 |
@@ -26,7 +26,7 b'' | |||||
26 | <div class="table"> |
|
26 | <div class="table"> | |
27 |
|
27 | |||
28 | <div id="files_data"> |
|
28 | <div id="files_data"> | |
29 |
${h.secure_form(h.route_path('gist_update', gist_id=c.gist.gist_access_id), id='eform', |
|
29 | ${h.secure_form(h.route_path('gist_update', gist_id=c.gist.gist_access_id), id='eform', request=request)} | |
30 | <div> |
|
30 | <div> | |
31 | <input type="hidden" value="${c.file_last_commit.raw_id}" name="parent_hash"> |
|
31 | <input type="hidden" value="${c.file_last_commit.raw_id}" name="parent_hash"> | |
32 | <textarea id="description" name="description" |
|
32 | <textarea id="description" name="description" |
@@ -25,7 +25,7 b'' | |||||
25 |
|
25 | |||
26 | <div class="table"> |
|
26 | <div class="table"> | |
27 | <div id="files_data"> |
|
27 | <div id="files_data"> | |
28 |
${h.secure_form(h.route_path('gists_create'), id='eform', |
|
28 | ${h.secure_form(h.route_path('gists_create'), id='eform', request=request)} | |
29 | <div> |
|
29 | <div> | |
30 | <textarea id="description" name="description" placeholder="${_('Gist description ...')}"></textarea> |
|
30 | <textarea id="description" name="description" placeholder="${_('Gist description ...')}"></textarea> | |
31 |
|
31 |
@@ -45,7 +45,7 b'' | |||||
45 | <div class="stats"> |
|
45 | <div class="stats"> | |
46 | %if h.HasPermissionAny('hg.admin')() or c.gist.gist_owner == c.rhodecode_user.user_id: |
|
46 | %if h.HasPermissionAny('hg.admin')() or c.gist.gist_owner == c.rhodecode_user.user_id: | |
47 | <div class="remove_gist"> |
|
47 | <div class="remove_gist"> | |
48 |
${h.secure_form(h.route_path('gist_delete', gist_id=c.gist.gist_access_id), |
|
48 | ${h.secure_form(h.route_path('gist_delete', gist_id=c.gist.gist_access_id), request=request)} | |
49 | ${h.submit('remove_gist', _('Delete'),class_="btn btn-mini btn-danger",onclick="return confirm('"+_('Confirm to delete this Gist')+"');")} |
|
49 | ${h.submit('remove_gist', _('Delete'),class_="btn btn-mini btn-danger",onclick="return confirm('"+_('Confirm to delete this Gist')+"');")} | |
50 | ${h.end_form()} |
|
50 | ${h.end_form()} | |
51 | </div> |
|
51 | </div> |
@@ -42,7 +42,7 b'' | |||||
42 | %endif |
|
42 | %endif | |
43 | </td> |
|
43 | </td> | |
44 | <td class="td-action"> |
|
44 | <td class="td-action"> | |
45 |
${h.secure_form(h.route_path('my_account_auth_tokens_delete'), |
|
45 | ${h.secure_form(h.route_path('my_account_auth_tokens_delete'), request=request)} | |
46 | ${h.hidden('del_auth_token', auth_token.user_api_key_id)} |
|
46 | ${h.hidden('del_auth_token', auth_token.user_api_key_id)} | |
47 | <button class="btn btn-link btn-danger" type="submit" |
|
47 | <button class="btn btn-link btn-danger" type="submit" | |
48 | onclick="return confirm('${_('Confirm to remove this auth token: %s') % auth_token.token_obfuscated}');"> |
|
48 | onclick="return confirm('${_('Confirm to remove this auth token: %s') % auth_token.token_obfuscated}');"> | |
@@ -59,7 +59,7 b'' | |||||
59 | </div> |
|
59 | </div> | |
60 |
|
60 | |||
61 | <div class="user_auth_tokens"> |
|
61 | <div class="user_auth_tokens"> | |
62 |
${h.secure_form(h.route_path('my_account_auth_tokens_add'), |
|
62 | ${h.secure_form(h.route_path('my_account_auth_tokens_add'), request=request)} | |
63 | <div class="form form-vertical"> |
|
63 | <div class="form form-vertical"> | |
64 | <!-- fields --> |
|
64 | <!-- fields --> | |
65 | <div class="fields"> |
|
65 | <div class="fields"> |
@@ -25,7 +25,7 b'' | |||||
25 | <span class="user email">${em.email}</span> |
|
25 | <span class="user email">${em.email}</span> | |
26 | </td> |
|
26 | </td> | |
27 | <td class="td-action"> |
|
27 | <td class="td-action"> | |
28 |
${h.secure_form(h.route_path('my_account_emails_delete'), |
|
28 | ${h.secure_form(h.route_path('my_account_emails_delete'), request=request)} | |
29 | ${h.hidden('del_email_id',em.email_id)} |
|
29 | ${h.hidden('del_email_id',em.email_id)} | |
30 | <button class="btn btn-link btn-danger" type="submit" id="${'remove_email_%s'.format(em.email_id)}" |
|
30 | <button class="btn btn-link btn-danger" type="submit" id="${'remove_email_%s'.format(em.email_id)}" | |
31 | onclick="return confirm('${_('Confirm to delete this email: {}').format(em.email)}');"> |
|
31 | onclick="return confirm('${_('Confirm to delete this email: {}').format(em.email)}');"> | |
@@ -48,7 +48,7 b'' | |||||
48 | </div> |
|
48 | </div> | |
49 |
|
49 | |||
50 | <div> |
|
50 | <div> | |
51 |
${h.secure_form(h.route_path('my_account_emails_add'), |
|
51 | ${h.secure_form(h.route_path('my_account_emails_add'), request=request)} | |
52 | <div class="form"> |
|
52 | <div class="form"> | |
53 | <!-- fields --> |
|
53 | <!-- fields --> | |
54 | <div class="fields"> |
|
54 | <div class="fields"> |
@@ -6,7 +6,7 b'' | |||||
6 | </div> |
|
6 | </div> | |
7 |
|
7 | |||
8 | <div class="panel-body"> |
|
8 | <div class="panel-body"> | |
9 |
${h.secure_form(h.route_path('my_account_update'), class_='form', |
|
9 | ${h.secure_form(h.route_path('my_account_update'), class_='form', request=request)} | |
10 | <% readonly = None %> |
|
10 | <% readonly = None %> | |
11 | <% disabled = "" %> |
|
11 | <% disabled = "" %> | |
12 |
|
12 |
@@ -24,7 +24,7 b'' | |||||
24 | <td class="td-tags">${h.format_date(ssh_key.created_on)}</td> |
|
24 | <td class="td-tags">${h.format_date(ssh_key.created_on)}</td> | |
25 |
|
25 | |||
26 | <td class="td-action"> |
|
26 | <td class="td-action"> | |
27 |
${h.secure_form(h.route_path('my_account_ssh_keys_delete'), |
|
27 | ${h.secure_form(h.route_path('my_account_ssh_keys_delete'), request=request)} | |
28 | ${h.hidden('del_ssh_key', ssh_key.ssh_key_id)} |
|
28 | ${h.hidden('del_ssh_key', ssh_key.ssh_key_id)} | |
29 | <button class="btn btn-link btn-danger" type="submit" |
|
29 | <button class="btn btn-link btn-danger" type="submit" | |
30 | onclick="return confirm('${_('Confirm to remove ssh key %s') % ssh_key.ssh_key_fingerprint}');"> |
|
30 | onclick="return confirm('${_('Confirm to remove ssh key %s') % ssh_key.ssh_key_fingerprint}');"> | |
@@ -43,7 +43,7 b'' | |||||
43 |
|
43 | |||
44 | % if c.ssh_enabled: |
|
44 | % if c.ssh_enabled: | |
45 | <div class="user_ssh_keys"> |
|
45 | <div class="user_ssh_keys"> | |
46 |
${h.secure_form(h.route_path('my_account_ssh_keys_add'), |
|
46 | ${h.secure_form(h.route_path('my_account_ssh_keys_add'), request=request)} | |
47 | <div class="form form-vertical"> |
|
47 | <div class="form form-vertical"> | |
48 | <!-- fields --> |
|
48 | <!-- fields --> | |
49 | <div class="fields"> |
|
49 | <div class="fields"> |
@@ -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(h.route_path('admin_permissions_application_update'), |
|
6 | ${h.secure_form(h.route_path('admin_permissions_application_update'), request=request)} | |
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(h.route_path('admin_permissions_global_update'), |
|
2 | ${h.secure_form(h.route_path('admin_permissions_global_update'), request=request)} | |
3 | <div class="form permissions-global"> |
|
3 | <div class="form permissions-global"> | |
4 | <!-- fields --> |
|
4 | <!-- fields --> | |
5 | <div class="fields"> |
|
5 | <div class="fields"> |
@@ -23,7 +23,7 b'' | |||||
23 | <td class="td-iprange"><div class="ip">${h.ip_range(ip.ip_addr)}</div></td> |
|
23 | <td class="td-iprange"><div class="ip">${h.ip_range(ip.ip_addr)}</div></td> | |
24 | <td class="td-description"><div class="ip">${ip.description}</div></td> |
|
24 | <td class="td-description"><div class="ip">${ip.description}</div></td> | |
25 | <td class="td-action"> |
|
25 | <td class="td-action"> | |
26 |
${h.secure_form(h.route_path('edit_user_ips_delete', user_id=c.user.user_id), |
|
26 | ${h.secure_form(h.route_path('edit_user_ips_delete', user_id=c.user.user_id), request=request)} | |
27 | ${h.hidden('del_ip_id',ip.ip_id)} |
|
27 | ${h.hidden('del_ip_id',ip.ip_id)} | |
28 | ${h.hidden('default_user', 'True')} |
|
28 | ${h.hidden('default_user', 'True')} | |
29 | ${h.submit('remove_',_('Delete'),id="remove_ip_%s" % ip.ip_id, |
|
29 | ${h.submit('remove_',_('Delete'),id="remove_ip_%s" % ip.ip_id, | |
@@ -43,7 +43,7 b'' | |||||
43 | </table> |
|
43 | </table> | |
44 | </div> |
|
44 | </div> | |
45 |
|
45 | |||
46 |
${h.secure_form(h.route_path('edit_user_ips_add', user_id=c.user.user_id), |
|
46 | ${h.secure_form(h.route_path('edit_user_ips_add', user_id=c.user.user_id), request=request)} | |
47 | <div class="form"> |
|
47 | <div class="form"> | |
48 | <!-- fields --> |
|
48 | <!-- fields --> | |
49 | <div class="fields"> |
|
49 | <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(h.route_path('admin_permissions_object_update'), |
|
8 | ${h.secure_form(h.route_path('admin_permissions_object_update'), request=request)} | |
9 | <div class="form"> |
|
9 | <div class="form"> | |
10 | <div class="fields"> |
|
10 | <div class="fields"> | |
11 | <div class="field"> |
|
11 | <div class="field"> |
@@ -3,7 +3,7 b'' | |||||
3 | <div class="panel-heading"> |
|
3 | <div class="panel-heading"> | |
4 | <h3 class="panel-title">${_('SSH Keys')} - <span id="ssh_keys_count"></span></h3> |
|
4 | <h3 class="panel-title">${_('SSH Keys')} - <span id="ssh_keys_count"></span></h3> | |
5 |
|
5 | |||
6 |
${h.secure_form(h.route_path('admin_permissions_ssh_keys_update'), |
|
6 | ${h.secure_form(h.route_path('admin_permissions_ssh_keys_update'), request=request)} | |
7 | <button class="btn btn-link pull-right" type="submit">${_('Update SSH keys file')}</button> |
|
7 | <button class="btn btn-link pull-right" type="submit">${_('Update SSH keys file')}</button> | |
8 | ${h.end_form()} |
|
8 | ${h.end_form()} | |
9 | </div> |
|
9 | </div> |
@@ -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(h.url('repo_groups'), |
|
30 | ${h.secure_form(h.url('repo_groups'), request=request)} | |
31 | <div class="form"> |
|
31 | <div class="form"> | |
32 | <!-- fields --> |
|
32 | <!-- fields --> | |
33 | <div class="fields"> |
|
33 | <div class="fields"> |
@@ -28,7 +28,7 b'' | |||||
28 | <h3 class="panel-title">${_('Delete repository group')}</h3> |
|
28 | <h3 class="panel-title">${_('Delete repository group')}</h3> | |
29 | </div> |
|
29 | </div> | |
30 | <div class="panel-body"> |
|
30 | <div class="panel-body"> | |
31 | ${h.secure_form(h.url('delete_repo_group', group_name=c.repo_group.group_name),method='delete')} |
|
31 | ${h.secure_form(h.url('delete_repo_group', group_name=c.repo_group.group_name),method='delete', request=request)} | |
32 | <table class="display"> |
|
32 | <table class="display"> | |
33 |
|
33 | |||
34 | <tr> |
|
34 | <tr> |
@@ -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(h.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', request=request)} | |
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(h.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', request=request)} | |
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(h.route_path('repo_create'), |
|
3 | ${h.secure_form(h.route_path('repo_create'), request=request)} | |
4 | <div class="form"> |
|
4 | <div class="form"> | |
5 | <!-- fields --> |
|
5 | <!-- fields --> | |
6 | <div class="fields"> |
|
6 | <div class="fields"> |
@@ -24,7 +24,7 b'' | |||||
24 | <h3 class="panel-title">${_('Fork Reference')} <a class="permalink" href="#advanced-fork"> ¶</a></h3> |
|
24 | <h3 class="panel-title">${_('Fork Reference')} <a class="permalink" href="#advanced-fork"> ¶</a></h3> | |
25 | </div> |
|
25 | </div> | |
26 | <div class="panel-body"> |
|
26 | <div class="panel-body"> | |
27 |
${h.secure_form(h.route_path('edit_repo_advanced_fork', repo_name=c.rhodecode_db_repo.repo_name), |
|
27 | ${h.secure_form(h.route_path('edit_repo_advanced_fork', repo_name=c.rhodecode_db_repo.repo_name), request=request)} | |
28 |
|
28 | |||
29 | % if c.rhodecode_db_repo.fork: |
|
29 | % if c.rhodecode_db_repo.fork: | |
30 | <div class="panel-body-title-text">${h.literal(_('This repository is a fork of %(repo_link)s') % {'repo_link': h.link_to_if(c.has_origin_repo_read_perm,c.rhodecode_db_repo.fork.repo_name, h.route_path('repo_summary', repo_name=c.rhodecode_db_repo.fork.repo_name))})} |
|
30 | <div class="panel-body-title-text">${h.literal(_('This repository is a fork of %(repo_link)s') % {'repo_link': h.link_to_if(c.has_origin_repo_read_perm,c.rhodecode_db_repo.fork.repo_name, h.route_path('repo_summary', repo_name=c.rhodecode_db_repo.fork.repo_name))})} | |
@@ -48,7 +48,7 b'' | |||||
48 | <h3 class="panel-title">${_('Public Journal Visibility')} <a class="permalink" href="#advanced-journal"> ¶</a></h3> |
|
48 | <h3 class="panel-title">${_('Public Journal Visibility')} <a class="permalink" href="#advanced-journal"> ¶</a></h3> | |
49 | </div> |
|
49 | </div> | |
50 | <div class="panel-body"> |
|
50 | <div class="panel-body"> | |
51 |
${h.secure_form(h.route_path('edit_repo_advanced_journal', repo_name=c.rhodecode_db_repo.repo_name), |
|
51 | ${h.secure_form(h.route_path('edit_repo_advanced_journal', repo_name=c.rhodecode_db_repo.repo_name), request=request)} | |
52 | <div class="field"> |
|
52 | <div class="field"> | |
53 | %if c.in_public_journal: |
|
53 | %if c.in_public_journal: | |
54 | <button class="btn btn-small" type="submit"> |
|
54 | <button class="btn btn-small" type="submit"> | |
@@ -73,7 +73,7 b'' | |||||
73 | <h3 class="panel-title">${_('Locking state')} <a class="permalink" href="#advanced-locking"> ¶</a></h3> |
|
73 | <h3 class="panel-title">${_('Locking state')} <a class="permalink" href="#advanced-locking"> ¶</a></h3> | |
74 | </div> |
|
74 | </div> | |
75 | <div class="panel-body"> |
|
75 | <div class="panel-body"> | |
76 |
${h.secure_form(h.route_path('edit_repo_advanced_locking', repo_name=c.rhodecode_db_repo.repo_name), |
|
76 | ${h.secure_form(h.route_path('edit_repo_advanced_locking', repo_name=c.rhodecode_db_repo.repo_name), request=request)} | |
77 |
|
77 | |||
78 | %if c.rhodecode_db_repo.locked[0]: |
|
78 | %if c.rhodecode_db_repo.locked[0]: | |
79 | <div class="panel-body-title-text">${'Locked by %s on %s. Lock reason: %s' % (h.person_by_id(c.rhodecode_db_repo.locked[0]), |
|
79 | <div class="panel-body-title-text">${'Locked by %s on %s. Lock reason: %s' % (h.person_by_id(c.rhodecode_db_repo.locked[0]), | |
@@ -113,7 +113,7 b'' | |||||
113 | <h3 class="panel-title">${_('Delete repository')} <a class="permalink" href="#advanced-delete"> ¶</a></h3> |
|
113 | <h3 class="panel-title">${_('Delete repository')} <a class="permalink" href="#advanced-delete"> ¶</a></h3> | |
114 | </div> |
|
114 | </div> | |
115 | <div class="panel-body"> |
|
115 | <div class="panel-body"> | |
116 |
${h.secure_form(h.route_path('edit_repo_advanced_delete', repo_name=c.repo_name), |
|
116 | ${h.secure_form(h.route_path('edit_repo_advanced_delete', repo_name=c.repo_name), request=request)} | |
117 | <table class="display"> |
|
117 | <table class="display"> | |
118 | <tr> |
|
118 | <tr> | |
119 | <td> |
|
119 | <td> |
@@ -14,7 +14,7 b'' | |||||
14 | </code> |
|
14 | </code> | |
15 | </p> |
|
15 | </p> | |
16 |
|
16 | |||
17 |
${h.secure_form(h.route_path('edit_repo_caches', repo_name=c.repo_name), |
|
17 | ${h.secure_form(h.route_path('edit_repo_caches', repo_name=c.repo_name), request=request)} | |
18 | <div class="form"> |
|
18 | <div class="form"> | |
19 | <div class="fields"> |
|
19 | <div class="fields"> | |
20 | ${h.submit('reset_cache_%s' % c.rhodecode_db_repo.repo_name,_('Invalidate repository cache'),class_="btn btn-small",onclick="return confirm('"+_('Confirm to invalidate repository cache')+"');")} |
|
20 | ${h.submit('reset_cache_%s' % c.rhodecode_db_repo.repo_name,_('Invalidate repository cache'),class_="btn btn-small",onclick="return confirm('"+_('Confirm to invalidate repository cache')+"');")} |
@@ -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(h.route_path('edit_repo_fields_delete', repo_name=c.rhodecode_db_repo.repo_name, field_id=field.repo_field_id), |
|
21 | ${h.secure_form(h.route_path('edit_repo_fields_delete', repo_name=c.rhodecode_db_repo.repo_name, field_id=field.repo_field_id), request=request)} | |
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(h.route_path('edit_repo_fields_create', repo_name=c.repo_name), |
|
34 | ${h.secure_form(h.route_path('edit_repo_fields_create', repo_name=c.repo_name), request=request)} | |
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(h.route_path('edit_repo_issuetracker_update', repo_name=c.repo_name), id="inherit-form", |
|
4 | ${h.secure_form(h.route_path('edit_repo_issuetracker_update', repo_name=c.repo_name), id="inherit-form", request=request)} | |
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"> |
@@ -5,7 +5,7 b'' | |||||
5 | <h3 class="panel-title">${_('Repository Permissions')}</h3> |
|
5 | <h3 class="panel-title">${_('Repository Permissions')}</h3> | |
6 | </div> |
|
6 | </div> | |
7 | <div class="panel-body"> |
|
7 | <div class="panel-body"> | |
8 |
${h.secure_form(h.route_path('edit_repo_perms', repo_name=c.repo_name), |
|
8 | ${h.secure_form(h.route_path('edit_repo_perms', repo_name=c.repo_name), request=request)} | |
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> |
@@ -19,7 +19,7 b'' | |||||
19 | </code> |
|
19 | </code> | |
20 | </p> |
|
20 | </p> | |
21 |
|
21 | |||
22 |
${h.secure_form(h.route_path('edit_repo_remote_pull', repo_name=c.repo_name), |
|
22 | ${h.secure_form(h.route_path('edit_repo_remote_pull', repo_name=c.repo_name), request=request)} | |
23 | <div class="form"> |
|
23 | <div class="form"> | |
24 | <div class="fields"> |
|
24 | <div class="fields"> | |
25 | ${h.submit('remote_pull_%s' % c.rhodecode_db_repo.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.rhodecode_db_repo.repo_name,_('Pull changes from remote location'),class_="btn btn-small",onclick="return confirm('"+_('Confirm to pull changes from remote side')+"');")} |
@@ -6,7 +6,7 b'' | |||||
6 | <h3 class="panel-title">${_('Settings for Repository: %s') % c.rhodecode_db_repo.repo_name}</h3> |
|
6 | <h3 class="panel-title">${_('Settings for Repository: %s') % c.rhodecode_db_repo.repo_name}</h3> | |
7 | </div> |
|
7 | </div> | |
8 | <div class="panel-body"> |
|
8 | <div class="panel-body"> | |
9 |
${h.secure_form(h.route_path('edit_repo', repo_name=c.rhodecode_db_repo.repo_name), |
|
9 | ${h.secure_form(h.route_path('edit_repo', repo_name=c.rhodecode_db_repo.repo_name), request=request)} | |
10 | <div class="form"> |
|
10 | <div class="form"> | |
11 | <!-- fields --> |
|
11 | <!-- fields --> | |
12 | <div class="fields"> |
|
12 | <div class="fields"> |
@@ -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(h.route_path('edit_repo_statistics_reset', repo_name=c.rhodecode_db_repo.repo_name), |
|
6 | ${h.secure_form(h.route_path('edit_repo_statistics_reset', repo_name=c.rhodecode_db_repo.repo_name), request=request)} | |
7 | <div class="form"> |
|
7 | <div class="form"> | |
8 | <div class="fields"> |
|
8 | <div class="fields"> | |
9 | <div class="field" > |
|
9 | <div class="field" > |
@@ -9,7 +9,7 b'' | |||||
9 | ${_('In the first step commits will be verified for existance in the repository')}. </br> |
|
9 | ${_('In the first step commits will be verified for existance in the repository')}. </br> | |
10 | ${_('In the second step, correct commits will be available for stripping')}. |
|
10 | ${_('In the second step, correct commits will be available for stripping')}. | |
11 | </p> |
|
11 | </p> | |
12 |
${h.secure_form(h.route_path('strip_check', repo_name=c.rhodecode_db_repo.repo_name), |
|
12 | ${h.secure_form(h.route_path('strip_check', repo_name=c.rhodecode_db_repo.repo_name), request=request)} | |
13 | <div id="change_body" class="field"> |
|
13 | <div id="change_body" class="field"> | |
14 | <div id="box-1" class="inputx locked_input"> |
|
14 | <div id="box-1" class="inputx locked_input"> | |
15 | <input class="text" id="changeset_id-1" name="changeset_id-1" size="59" |
|
15 | <input class="text" id="changeset_id-1" name="changeset_id-1" size="59" |
@@ -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(h.route_path('edit_repo_vcs_update', repo_name=c.rhodecode_db_repo.repo_name), |
|
4 | ${h.secure_form(h.route_path('edit_repo_vcs_update', repo_name=c.rhodecode_db_repo.repo_name), request=request)} | |
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(h.url('admin_settings_email'), |
|
37 | ${h.secure_form(h.url('admin_settings_email'), request=request)} | |
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(h.url('admin_settings_global'), |
|
1 | ${h.secure_form(h.url('admin_settings_global'), request=request)} | |
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(h.url('admin_settings_hooks'), |
|
31 | ${h.secure_form(h.url('admin_settings_hooks'), request=request)} | |
32 | <div class="form"> |
|
32 | <div class="form"> | |
33 | <div class="fields"> |
|
33 | <div class="fields"> | |
34 |
|
34 |
@@ -5,7 +5,7 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(h.url('admin_settings_issuetracker_save'), |
|
8 | ${h.secure_form(h.url('admin_settings_issuetracker_save'), request=request)} | |
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=h.url('admin_settings_issuetracker'), |
|
11 | form_url=h.url('admin_settings_issuetracker'), |
@@ -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(h.url('admin_settings_labs'), |
|
6 | ${h.secure_form(h.url('admin_settings_labs'), request=request)} | |
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(h.url('admin_settings_mapping'), |
|
1 | ${h.secure_form(h.url('admin_settings_mapping'), request=request)} | |
2 |
|
2 | |||
3 | <div class="panel panel-default"> |
|
3 | <div class="panel panel-default"> | |
4 | <div class="panel-heading"> |
|
4 | <div class="panel-heading"> |
@@ -28,7 +28,7 b'' | |||||
28 | <h3 class="panel-title">${_('Cleanup Old Sessions')}</h3> |
|
28 | <h3 class="panel-title">${_('Cleanup Old Sessions')}</h3> | |
29 | </div> |
|
29 | </div> | |
30 | <div class="panel-body"> |
|
30 | <div class="panel-body"> | |
31 |
${h.secure_form(h.route_path('admin_settings_sessions_cleanup'), |
|
31 | ${h.secure_form(h.route_path('admin_settings_sessions_cleanup'), request=request)} | |
32 |
|
32 | |||
33 | <p> |
|
33 | <p> | |
34 | ${_('Cleanup user sessions that were not active during chosen time frame.')} <br/> |
|
34 | ${_('Cleanup user sessions that were not active during chosen time frame.')} <br/> |
@@ -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(h.url('admin_settings_vcs'), |
|
3 | ${h.secure_form(h.url('admin_settings_vcs'), request=request)} | |
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(h.url('admin_settings_visual'), |
|
1 | ${h.secure_form(h.url('admin_settings_visual'), request=request)} | |
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(h.route_path('user_groups_create'), |
|
29 | ${h.secure_form(h.route_path('user_groups_create'), request=request)} | |
30 | <div class="form"> |
|
30 | <div class="form"> | |
31 | <!-- fields --> |
|
31 | <!-- fields --> | |
32 | <div class="fields"> |
|
32 | <div class="fields"> |
@@ -44,7 +44,7 b'' | |||||
44 | % endif |
|
44 | % endif | |
45 |
|
45 | |||
46 | <div> |
|
46 | <div> | |
47 |
${h.secure_form(h.route_path('edit_user_group_advanced_sync', user_group_id=c.user_group.users_group_id), |
|
47 | ${h.secure_form(h.route_path('edit_user_group_advanced_sync', user_group_id=c.user_group.users_group_id), request=request)} | |
48 | <div class="field"> |
|
48 | <div class="field"> | |
49 | <button class="btn btn-default" type="submit"> |
|
49 | <button class="btn btn-default" type="submit"> | |
50 | %if sync_type: |
|
50 | %if sync_type: | |
@@ -72,7 +72,7 b'' | |||||
72 | <h3 class="panel-title">${_('Delete User Group')}</h3> |
|
72 | <h3 class="panel-title">${_('Delete User Group')}</h3> | |
73 | </div> |
|
73 | </div> | |
74 | <div class="panel-body"> |
|
74 | <div class="panel-body"> | |
75 |
${h.secure_form(h.route_path('user_groups_delete', user_group_id=c.user_group.users_group_id), |
|
75 | ${h.secure_form(h.route_path('user_groups_delete', user_group_id=c.user_group.users_group_id), request=request)} | |
76 | ${h.hidden('force', 1)} |
|
76 | ${h.hidden('force', 1)} | |
77 | <button class="btn btn-small btn-danger" type="submit" |
|
77 | <button class="btn btn-small btn-danger" type="submit" | |
78 | onclick="return confirm('${_('Confirm to delete user group `%(ugroup)s` with all permission assignments') % {'ugroup': c.user_group.users_group_name}}');"> |
|
78 | onclick="return confirm('${_('Confirm to delete user group `%(ugroup)s` with all permission assignments') % {'ugroup': c.user_group.users_group_name}}');"> |
@@ -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(h.route_path('edit_user_group_perms_update', user_group_id=c.user_group.users_group_id), |
|
8 | ${h.secure_form(h.route_path('edit_user_group_perms_update', user_group_id=c.user_group.users_group_id), request=request)} | |
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(h.route_path('user_groups_update', user_group_id=c.user_group.users_group_id), id='edit_user_group', |
|
9 | ${h.secure_form(h.route_path('user_groups_update', user_group_id=c.user_group.users_group_id), id='edit_user_group', request=request)} | |
10 | <div class="form"> |
|
10 | <div class="form"> | |
11 | <!-- fields --> |
|
11 | <!-- fields --> | |
12 | <div class="fields"> |
|
12 | <div class="fields"> |
@@ -38,7 +38,7 b'' | |||||
38 | %endif |
|
38 | %endif | |
39 | </td> |
|
39 | </td> | |
40 | <td class="td-action"> |
|
40 | <td class="td-action"> | |
41 |
${h.secure_form(h.route_path('edit_user_auth_tokens_delete', user_id=c.user.user_id), |
|
41 | ${h.secure_form(h.route_path('edit_user_auth_tokens_delete', user_id=c.user.user_id), request=request)} | |
42 | ${h.hidden('del_auth_token', auth_token.user_api_key_id)} |
|
42 | ${h.hidden('del_auth_token', auth_token.user_api_key_id)} | |
43 | <button class="btn btn-link btn-danger" type="submit" |
|
43 | <button class="btn btn-link btn-danger" type="submit" | |
44 | onclick="return confirm('${_('Confirm to remove this auth token: %s') % auth_token.token_obfuscated}');"> |
|
44 | onclick="return confirm('${_('Confirm to remove this auth token: %s') % auth_token.token_obfuscated}');"> | |
@@ -55,7 +55,7 b'' | |||||
55 | </div> |
|
55 | </div> | |
56 |
|
56 | |||
57 | <div class="user_auth_tokens"> |
|
57 | <div class="user_auth_tokens"> | |
58 |
${h.secure_form(h.route_path('edit_user_auth_tokens_add', user_id=c.user.user_id), |
|
58 | ${h.secure_form(h.route_path('edit_user_auth_tokens_add', user_id=c.user.user_id), request=request)} | |
59 | <div class="form form-vertical"> |
|
59 | <div class="form form-vertical"> | |
60 | <!-- fields --> |
|
60 | <!-- fields --> | |
61 | <div class="fields"> |
|
61 | <div class="fields"> |
@@ -24,7 +24,7 b'' | |||||
24 | <span class="user email">${em.email}</span> |
|
24 | <span class="user email">${em.email}</span> | |
25 | </td> |
|
25 | </td> | |
26 | <td class="td-action"> |
|
26 | <td class="td-action"> | |
27 |
${h.secure_form(h.route_path('edit_user_emails_delete', user_id=c.user.user_id), |
|
27 | ${h.secure_form(h.route_path('edit_user_emails_delete', user_id=c.user.user_id), request=request)} | |
28 | ${h.hidden('del_email_id', em.email_id)} |
|
28 | ${h.hidden('del_email_id', em.email_id)} | |
29 | <button class="btn btn-link btn-danger" type="submit" |
|
29 | <button class="btn btn-link btn-danger" type="submit" | |
30 | onclick="return confirm('${_('Confirm to delete this email: %s') % em.email}');"> |
|
30 | onclick="return confirm('${_('Confirm to delete this email: %s') % em.email}');"> | |
@@ -46,7 +46,7 b'' | |||||
46 | </table> |
|
46 | </table> | |
47 | </div> |
|
47 | </div> | |
48 |
|
48 | |||
49 |
${h.secure_form(h.route_path('edit_user_emails_add', user_id=c.user.user_id), |
|
49 | ${h.secure_form(h.route_path('edit_user_emails_add', user_id=c.user.user_id), request=request)} | |
50 | <div class="form"> |
|
50 | <div class="form"> | |
51 | <!-- fields --> |
|
51 | <!-- fields --> | |
52 | <div class="fields"> |
|
52 | <div class="fields"> |
@@ -19,7 +19,7 b'' | |||||
19 | </div> |
|
19 | </div> | |
20 |
|
20 | |||
21 | <div class="groups_management"> |
|
21 | <div class="groups_management"> | |
22 |
${h.secure_form(h.route_path('edit_user_groups_management_updates', user_id=c.user.user_id), |
|
22 | ${h.secure_form(h.route_path('edit_user_groups_management_updates', user_id=c.user.user_id), request=request)} | |
23 | <div id="repos_list_wrap"> |
|
23 | <div id="repos_list_wrap"> | |
24 | <table id="user_group_list_table" class="display"></table> |
|
24 | <table id="user_group_list_table" class="display"></table> | |
25 | </div> |
|
25 | </div> |
@@ -30,7 +30,7 b'' | |||||
30 | <td class="td-iprange"><div class="ip">${h.ip_range(ip.ip_addr)}</div></td> |
|
30 | <td class="td-iprange"><div class="ip">${h.ip_range(ip.ip_addr)}</div></td> | |
31 | <td class="td-description"><div class="ip">${ip.description}</div></td> |
|
31 | <td class="td-description"><div class="ip">${ip.description}</div></td> | |
32 | <td class="td-action"> |
|
32 | <td class="td-action"> | |
33 |
${h.secure_form(h.route_path('edit_user_ips_delete', user_id=c.user.user_id), |
|
33 | ${h.secure_form(h.route_path('edit_user_ips_delete', user_id=c.user.user_id), request=request)} | |
34 | ${h.hidden('del_ip_id', ip.ip_id)} |
|
34 | ${h.hidden('del_ip_id', ip.ip_id)} | |
35 | ${h.submit('remove_', _('Delete'),id="remove_ip_%s" % ip.ip_id, |
|
35 | ${h.submit('remove_', _('Delete'),id="remove_ip_%s" % ip.ip_id, | |
36 | class_="btn btn-link btn-danger", onclick="return confirm('"+_('Confirm to delete this ip: %s') % ip.ip_addr+"');")} |
|
36 | class_="btn btn-link btn-danger", onclick="return confirm('"+_('Confirm to delete this ip: %s') % ip.ip_addr+"');")} | |
@@ -51,7 +51,7 b'' | |||||
51 | </div> |
|
51 | </div> | |
52 |
|
52 | |||
53 | <div> |
|
53 | <div> | |
54 |
${h.secure_form(h.route_path('edit_user_ips_add', user_id=c.user.user_id), |
|
54 | ${h.secure_form(h.route_path('edit_user_ips_add', user_id=c.user.user_id), request=request)} | |
55 | <div class="form"> |
|
55 | <div class="form"> | |
56 | <!-- fields --> |
|
56 | <!-- fields --> | |
57 | <div class="fields"> |
|
57 | <div class="fields"> |
@@ -21,7 +21,7 b'' | |||||
21 | <td class="td-tags">${h.format_date(ssh_key.created_on)}</td> |
|
21 | <td class="td-tags">${h.format_date(ssh_key.created_on)}</td> | |
22 |
|
22 | |||
23 | <td class="td-action"> |
|
23 | <td class="td-action"> | |
24 |
${h.secure_form(h.route_path('edit_user_ssh_keys_delete', user_id=c.user.user_id), |
|
24 | ${h.secure_form(h.route_path('edit_user_ssh_keys_delete', user_id=c.user.user_id), request=request)} | |
25 | ${h.hidden('del_ssh_key', ssh_key.ssh_key_id)} |
|
25 | ${h.hidden('del_ssh_key', ssh_key.ssh_key_id)} | |
26 | <button class="btn btn-link btn-danger" type="submit" |
|
26 | <button class="btn btn-link btn-danger" type="submit" | |
27 | onclick="return confirm('${_('Confirm to remove ssh key %s') % ssh_key.ssh_key_fingerprint}');"> |
|
27 | onclick="return confirm('${_('Confirm to remove ssh key %s') % ssh_key.ssh_key_fingerprint}');"> | |
@@ -38,7 +38,7 b'' | |||||
38 | </div> |
|
38 | </div> | |
39 |
|
39 | |||
40 | <div class="user_ssh_keys"> |
|
40 | <div class="user_ssh_keys"> | |
41 |
${h.secure_form(h.route_path('edit_user_ssh_keys_add', user_id=c.user.user_id), |
|
41 | ${h.secure_form(h.route_path('edit_user_ssh_keys_add', user_id=c.user.user_id), request=request)} | |
42 | <div class="form form-vertical"> |
|
42 | <div class="form form-vertical"> | |
43 | <!-- fields --> |
|
43 | <!-- fields --> | |
44 | <div class="fields"> |
|
44 | <div class="fields"> |
@@ -94,7 +94,7 b'' | |||||
94 | </%def> |
|
94 | </%def> | |
95 |
|
95 | |||
96 | <%def name="default_perms_box(form_url)"> |
|
96 | <%def name="default_perms_box(form_url)"> | |
97 |
${h.secure_form(form_url, |
|
97 | ${h.secure_form(form_url, request=request)} | |
98 | <div class="form"> |
|
98 | <div class="form"> | |
99 | <div class="fields"> |
|
99 | <div class="fields"> | |
100 | <div class="field panel panel-default panel-body"> |
|
100 | <div class="field panel panel-default panel-body"> |
@@ -167,7 +167,7 b'' | |||||
167 | <i class="icon-pencil"></i>Edit</a> |
|
167 | <i class="icon-pencil"></i>Edit</a> | |
168 | </div> |
|
168 | </div> | |
169 | <div class="grid_delete"> |
|
169 | <div class="grid_delete"> | |
170 |
${h.secure_form(h.route_path('edit_repo_advanced_delete', repo_name=repo_name), |
|
170 | ${h.secure_form(h.route_path('edit_repo_advanced_delete', repo_name=repo_name), request=request)} | |
171 | ${h.submit('remove_%s' % repo_name,_('Delete'),class_="btn btn-link btn-danger", |
|
171 | ${h.submit('remove_%s' % repo_name,_('Delete'),class_="btn btn-link btn-danger", | |
172 | onclick="return confirm('"+_('Confirm to delete this repository: %s') % repo_name+"');")} |
|
172 | onclick="return confirm('"+_('Confirm to delete this repository: %s') % repo_name+"');")} | |
173 | ${h.end_form()} |
|
173 | ${h.end_form()} | |
@@ -240,7 +240,7 b'' | |||||
240 | <a href="${h.url('edit_repo_group',group_name=repo_group_name)}" title="${_('Edit')}">Edit</a> |
|
240 | <a href="${h.url('edit_repo_group',group_name=repo_group_name)}" title="${_('Edit')}">Edit</a> | |
241 | </div> |
|
241 | </div> | |
242 | <div class="grid_delete"> |
|
242 | <div class="grid_delete"> | |
243 | ${h.secure_form(h.url('delete_repo_group', group_name=repo_group_name),method='delete')} |
|
243 | ${h.secure_form(h.url('delete_repo_group', group_name=repo_group_name),method='delete', request=request)} | |
244 | ${h.submit('remove_%s' % repo_group_name,_('Delete'),class_="btn btn-link btn-danger", |
|
244 | ${h.submit('remove_%s' % repo_group_name,_('Delete'),class_="btn btn-link btn-danger", | |
245 | onclick="return confirm('"+_ungettext('Confirm to delete this group: %s with %s repository','Confirm to delete this group: %s with %s repositories',gr_count) % (repo_group_name, gr_count)+"');")} |
|
245 | onclick="return confirm('"+_ungettext('Confirm to delete this group: %s with %s repository','Confirm to delete this group: %s with %s repositories',gr_count) % (repo_group_name, gr_count)+"');")} | |
246 | ${h.end_form()} |
|
246 | ${h.end_form()} | |
@@ -266,7 +266,7 b'' | |||||
266 | <a href="${h.route_path('edit_user_group', user_group_id=user_group_id)}" title="${_('Edit')}">Edit</a> |
|
266 | <a href="${h.route_path('edit_user_group', user_group_id=user_group_id)}" title="${_('Edit')}">Edit</a> | |
267 | </div> |
|
267 | </div> | |
268 | <div class="grid_delete"> |
|
268 | <div class="grid_delete"> | |
269 |
${h.secure_form(h.route_path('user_groups_delete', user_group_id=user_group_id), |
|
269 | ${h.secure_form(h.route_path('user_groups_delete', user_group_id=user_group_id), request=request)} | |
270 | ${h.submit('remove_',_('Delete'),id="remove_group_%s" % user_group_id, class_="btn btn-link btn-danger", |
|
270 | ${h.submit('remove_',_('Delete'),id="remove_group_%s" % user_group_id, class_="btn btn-link btn-danger", | |
271 | onclick="return confirm('"+_('Confirm to delete this user group: %s') % user_group_name+"');")} |
|
271 | onclick="return confirm('"+_('Confirm to delete this user group: %s') % user_group_name+"');")} | |
272 | ${h.end_form()} |
|
272 | ${h.end_form()} |
@@ -27,7 +27,7 b'' | |||||
27 | <div class="edit-file-title"> |
|
27 | <div class="edit-file-title"> | |
28 | ${self.breadcrumbs()} |
|
28 | ${self.breadcrumbs()} | |
29 | </div> |
|
29 | </div> | |
30 |
${h.secure_form(h.route_path('repo_files_create_file', repo_name=c.repo_name, commit_id=c.commit.raw_id, f_path=c.f_path), id='eform', |
|
30 | ${h.secure_form(h.route_path('repo_files_create_file', repo_name=c.repo_name, commit_id=c.commit.raw_id, f_path=c.f_path), id='eform', enctype="multipart/form-data", class_="form-horizontal", request=request)} | |
31 | <div class="edit-file-fieldset"> |
|
31 | <div class="edit-file-fieldset"> | |
32 | <div class="fieldset"> |
|
32 | <div class="fieldset"> | |
33 | <div id="destination-label" class="left-label"> |
|
33 | <div id="destination-label" class="left-label"> |
@@ -27,7 +27,7 b'' | |||||
27 | <div class="edit-file-title"> |
|
27 | <div class="edit-file-title"> | |
28 | ${self.breadcrumbs()} |
|
28 | ${self.breadcrumbs()} | |
29 | </div> |
|
29 | </div> | |
30 |
${h.secure_form(h.route_path('repo_files_delete_file', repo_name=c.repo_name, commit_id=c.commit.raw_id, f_path=c.f_path), id='eform', |
|
30 | ${h.secure_form(h.route_path('repo_files_delete_file', repo_name=c.repo_name, commit_id=c.commit.raw_id, f_path=c.f_path), id='eform', class_="form-horizontal", request=request)} | |
31 | <div class="edit-file-fieldset"> |
|
31 | <div class="edit-file-fieldset"> | |
32 | <div class="fieldset"> |
|
32 | <div class="fieldset"> | |
33 | <div id="destination-label" class="left-label"> |
|
33 | <div id="destination-label" class="left-label"> |
@@ -42,7 +42,7 b'' | |||||
42 | </div> |
|
42 | </div> | |
43 |
|
43 | |||
44 | <div class="table"> |
|
44 | <div class="table"> | |
45 |
${h.secure_form(h.route_path('repo_files_update_file', repo_name=c.repo_name, commit_id=c.commit.raw_id, f_path=c.f_path), id='eform', |
|
45 | ${h.secure_form(h.route_path('repo_files_update_file', repo_name=c.repo_name, commit_id=c.commit.raw_id, f_path=c.f_path), id='eform', request=request)} | |
46 | <div id="codeblock" class="codeblock" > |
|
46 | <div id="codeblock" class="codeblock" > | |
47 | <div class="code-header"> |
|
47 | <div class="code-header"> | |
48 | <div class="stats"> |
|
48 | <div class="stats"> |
@@ -27,7 +27,7 b'' | |||||
27 | ${self.breadcrumbs()} |
|
27 | ${self.breadcrumbs()} | |
28 | </div> |
|
28 | </div> | |
29 |
|
29 | |||
30 |
${h.secure_form(h.route_path('repo_fork_create',repo_name=c.rhodecode_db_repo.repo_name), |
|
30 | ${h.secure_form(h.route_path('repo_fork_create',repo_name=c.rhodecode_db_repo.repo_name), request=request)} | |
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(h.route_path('pullrequest_create', repo_name=c.repo_name, _query=request.GET.mixed()), id='pull_request_form', |
|
25 | ${h.secure_form(h.route_path('pullrequest_create', repo_name=c.repo_name, _query=request.GET.mixed()), id='pull_request_form', request=request)} | |
26 |
|
26 | |||
27 | ${self.breadcrumbs()} |
|
27 | ${self.breadcrumbs()} | |
28 |
|
28 |
@@ -47,7 +47,7 b'' | |||||
47 | % endif |
|
47 | % endif | |
48 |
|
48 | |||
49 | <div> |
|
49 | <div> | |
50 |
${h.secure_form(h.route_path('pullrequest_merge', repo_name=c.repo_name, pull_request_id=c.pull_request.pull_request_id), id='merge_pull_request_form', |
|
50 | ${h.secure_form(h.route_path('pullrequest_merge', repo_name=c.repo_name, pull_request_id=c.pull_request.pull_request_id), id='merge_pull_request_form', request=request)} | |
51 | <% merge_disabled = ' disabled' if c.pr_merge_possible is False else '' %> |
|
51 | <% merge_disabled = ' disabled' if c.pr_merge_possible is False else '' %> | |
52 | <a class="btn" href="#" onclick="refreshMergeChecks(); return false;">${_('refresh checks')}</a> |
|
52 | <a class="btn" href="#" onclick="refreshMergeChecks(); return false;">${_('refresh checks')}</a> | |
53 | <input type="submit" id="merge_pull_request" value="${_('Merge Pull Request')}" class="btn${merge_disabled}"${merge_disabled}> |
|
53 | <input type="submit" id="merge_pull_request" value="${_('Merge Pull Request')}" class="btn${merge_disabled}"${merge_disabled}> |
@@ -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(h.route_path('pullrequest_delete', repo_name=c.pull_request.target_repo.repo_name, pull_request_id=c.pull_request.pull_request_id), |
|
55 | ${h.secure_form(h.route_path('pullrequest_delete', repo_name=c.pull_request.target_repo.repo_name, pull_request_id=c.pull_request.pull_request_id), request=request)} | |
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