{extends "idf/admin/base.html"}
{block docclass}yui-t3{assign $inSource = true}{/block}
{block body}
{if $form.errors}
<
div
class
=
"px-message-error"
>
<
p
>{trans 'The form contains some errors. Please correct them to update the source configuration.'}</
p
>
{if $form.get_top_errors}
{$form.render_top_errors|unsafe}
{/if}
</
div
>
{/if}
<
form
method
=
"post"
action
=
"."
>
<
table
class
=
"form"
summary
=
""
>
<
tr
>
<
th
>{trans 'Repository type:'}</
th
>
<
td
>{$repository_type}
</
td
>
</
tr
>
<
tr
>
<
th
>{trans 'Repository access:'}</
th
>
<
td
>{$repository_access}
</
td
>
</
tr
>{if $repository_size != -1}
<
tr
>
<
th
>{trans 'Repository size:'}</
th
>
<
td
>{$repository_size|size}
</
td
>
</
tr
>{/if}{if $remote_svn}
<
tr
>
<
th
>{$form.f.svn_username.labelTag}:</
th
>
<
td
>{if $form.f.svn_username.errors}{$form.f.svn_username.fieldErrors}{/if}
{$form.f.svn_username|unsafe}
</
td
>
</
tr
>
<
tr
>
<
th
>{$form.f.svn_password.labelTag}:</
th
>
<
td
>{if $form.f.svn_password.errors}{$form.f.svn_password.fieldErrors}{/if}
{$form.f.svn_password|unsafe}
</
td
>
</
tr
>{/if}
<
tr
>
<
th
>{$form.f.webhook_url.labelTag}:</
th
>
<
td
>{if $form.f.webhook_url.errors}{$form.f.webhook_url.fieldErrors}{/if}
{$form.f.webhook_url|unsafe}<
br
>
</
td
>
</
tr
>
<
tr
>
<
th
>{trans 'Post-commit authentication key:'}</
th
>
<
td
>{$hookkey}
</
td
>
</
tr
>
<
tr
>
<
td
> </
td
>
<
td
>
<
input
type
=
"submit"
value
=
"{trans 'Save Changes'}"
name
=
"submit"
/>
</
td
>
</
tr
>
</
table
>
</
form
>
{/block}
{block context}
<
div
class
=
"issue-submit-info"
>
<
p
>{blocktrans}You can find here the current repository configuration of your project.{/blocktrans}</
p
>
</
div
>
<
br
>
<
div
class
=
"issue-submit-info"
>
{blocktrans}<
p
>The webhook URL setting specifies a URL to which a HTTP POST
request is sent after each repository commit. If this field is empty,
notifications are disabled.</
p
>
<
p
>Only properly-escaped <
strong
>HTTP</
strong
> URLs are supported, for example:</
p
>
<
ul
>
</
ul
>
<
p
>In addition, the URL may contain the following "%" notation, which
will be replaced with specific project values for each commit:</
p
>
<
ul
>
<
li
>%p - project name</
li
>
<
li
>%r - revision number</
li
>
</
ul
>
<
p
>For example, committing revision 123 to project 'my-project' with
{/block}