Initial commit
This commit is contained in:
13
indefero/src/IDF/templates/idf/admin/base.html
Normal file
13
indefero/src/IDF/templates/idf/admin/base.html
Normal file
@@ -0,0 +1,13 @@
|
||||
{extends "idf/base.html"}
|
||||
{block tabadmin} class="active"{/block}
|
||||
{block subtabs}
|
||||
<div id="sub-tabs">
|
||||
<a {if $inSummary}class="active" {/if}href="{url 'IDF_Views_Project::admin', array($project.shortname)}">{trans 'Project Summary'}</a> |
|
||||
<a {if $inDownloads}class="active" {/if}href="{url 'IDF_Views_Project::adminDownloads', array($project.shortname)}">{trans 'Downloads'}</a> |
|
||||
<a {if $inWiki}class="active" {/if}href="{url 'IDF_Views_Project::adminWiki', array($project.shortname)}">{trans 'Documentation'}</a> |
|
||||
<a {if $inIssueTracking}class="active" {/if}href="{url 'IDF_Views_Project::adminIssues', array($project.shortname)}">{trans 'Issue Tracking'}</a> |
|
||||
<a {if $inSource}class="active" {/if}href="{url 'IDF_Views_Project::adminSource', array($project.shortname)}">{trans 'Source'}</a> |
|
||||
<a {if $inMembers}class="active" {/if}href="{url 'IDF_Views_Project::adminMembers', array($project.shortname)}">{trans 'Project Members'}</a> |
|
||||
<a {if $inTabs}class="active" {/if}href="{url 'IDF_Views_Project::adminTabs', array($project.shortname)}">{trans 'Tabs Access and Notifications'}</a>
|
||||
</div>
|
||||
{/block}
|
68
indefero/src/IDF/templates/idf/admin/downloads.html
Normal file
68
indefero/src/IDF/templates/idf/admin/downloads.html
Normal file
@@ -0,0 +1,68 @@
|
||||
{extends "idf/admin/base.html"}
|
||||
{block docclass}yui-t3{assign $inDownloads = true}{/block}
|
||||
{block body}
|
||||
<form method="post" action=".">
|
||||
<table class="form" summary="">
|
||||
<tr>
|
||||
<td colspan="2"><strong>{$form.f.labels_download_predefined.labelTag}:</strong><br />
|
||||
{if $form.f.labels_download_predefined.errors}{$form.f.labels_download_predefined.fieldErrors}{/if}
|
||||
{$form.f.labels_download_predefined|unsafe}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2">{$form.f.labels_download_one_max.labelTag}:<br />
|
||||
{if $form.f.labels_download_one_max.errors}{$form.f.labels_download_one_max.fieldErrors}{/if}
|
||||
{$form.f.labels_download_one_max|unsafe}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>{$form.f.upload_webhook_url.labelTag}:<br />
|
||||
{if $form.f.upload_webhook_url.errors}{$form.f.upload_webhook_url.fieldErrors}{/if}
|
||||
{$form.f.upload_webhook_url|unsafe}<br>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>{trans 'Web-Hook authentication key:'} {$hookkey}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2">
|
||||
<input type="submit" value="{trans 'Save Changes'}" name="submit" />
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
{/block}
|
||||
{block context}
|
||||
<div class="issue-submit-info">
|
||||
{blocktrans}
|
||||
<p><strong>Instructions:</strong></p>
|
||||
<p>List one status value per line in desired sort-order.</p>
|
||||
<p>Optionally, use an equals-sign to document the meaning of each status value.</p>
|
||||
{/blocktrans}
|
||||
</div>
|
||||
<div class="issue-submit-info">
|
||||
|
||||
{blocktrans}<p>The webhook URL setting specifies an URL to which a HTTP <strong>PUT</strong>
|
||||
request is sent after a new download has been added or to which a HTTP <strong>POST</strong>
|
||||
request is sent after an existing download has been updated.
|
||||
If this field is empty, notifications are disabled.</p>
|
||||
|
||||
<p>Only properly-escaped <strong>HTTP</strong> URLs are supported, for example:</p>
|
||||
|
||||
<ul>
|
||||
<li><code>http://domain.com/upload</code></li>
|
||||
<li><code>http://domain.com/upload?my%20param</code></li>
|
||||
</ul>
|
||||
|
||||
<p>In addition, the URL may contain the following "%" notation, which
|
||||
will be replaced with specific project values for each download:</p>
|
||||
|
||||
<ul>
|
||||
<li><code>%p</code> - project name</li>
|
||||
<li><code>%d</code> - download id</li>
|
||||
</ul>
|
||||
|
||||
<p>For example, updating download 123 of project 'my-project' with
|
||||
web hook URL <code>http://mydomain.com/%p/%d</code> would send a POST request to
|
||||
<code>http://mydomain.com/my-project/123</code>.</p>{/blocktrans}</div>
|
||||
{/block}
|
63
indefero/src/IDF/templates/idf/admin/issue-tracking.html
Normal file
63
indefero/src/IDF/templates/idf/admin/issue-tracking.html
Normal file
@@ -0,0 +1,63 @@
|
||||
{extends "idf/admin/base.html"}
|
||||
{block docclass}yui-t1{assign $inIssueTracking = true}{/block}
|
||||
{block body}
|
||||
<form method="post" action=".">
|
||||
<table class="form" summary="">
|
||||
<tr>
|
||||
<td colspan="2"><strong>{$form.f.labels_issue_template.labelTag}:</strong><br />
|
||||
{if $form.f.labels_issue_template.errors}{$form.f.labels_issue_template.fieldErrors}{/if}
|
||||
{$form.f.labels_issue_template|unsafe}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2"><strong>{$form.f.labels_issue_open.labelTag}:</strong><br />
|
||||
{if $form.f.labels_issue_open.errors}{$form.f.labels_issue_open.fieldErrors}{/if}
|
||||
{$form.f.labels_issue_open|unsafe}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2"><strong>{$form.f.labels_issue_closed.labelTag}:</strong><br />
|
||||
{if $form.f.labels_issue_closed.errors}{$form.f.labels_issue_closed.fieldErrors}{/if}
|
||||
{$form.f.labels_issue_closed|unsafe}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2"><strong>{$form.f.labels_issue_predefined.labelTag}:</strong><br />
|
||||
{if $form.f.labels_issue_predefined.errors}{$form.f.labels_issue_predefined.fieldErrors}{/if}
|
||||
{$form.f.labels_issue_predefined|unsafe}<br />
|
||||
<span class="helptext">{$form.f.labels_issue_predefined.help_text}</span>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2"><strong>{$form.f.labels_issue_one_max.labelTag}:</strong><br />
|
||||
{if $form.f.labels_issue_one_max.errors}{$form.f.labels_issue_one_max.fieldErrors}{/if}
|
||||
{$form.f.labels_issue_one_max|unsafe}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2"><strong>{$form.f.issue_relations.labelTag}:</strong><br />
|
||||
{if $form.f.issue_relations.errors}{$form.f.issue_relations.fieldErrors}{/if}
|
||||
{$form.f.issue_relations|unsafe}<br />
|
||||
<span class="helptext">{$form.f.issue_relations.help_text}</span>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2">
|
||||
<input type="submit" value="{trans 'Save Changes'}" name="submit" />
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
|
||||
|
||||
{/block}
|
||||
|
||||
{block context}
|
||||
<div class="issue-submit-info">
|
||||
{blocktrans}
|
||||
<p><strong>Instructions:</strong></p>
|
||||
<p>List one status value per line in desired sort-order.</p>
|
||||
<p>Optionally, use an equals-sign to document the meaning of each status value.</p>
|
||||
{/blocktrans}
|
||||
</div>
|
||||
{/block}
|
44
indefero/src/IDF/templates/idf/admin/members.html
Normal file
44
indefero/src/IDF/templates/idf/admin/members.html
Normal file
@@ -0,0 +1,44 @@
|
||||
{extends "idf/admin/base.html"}
|
||||
{block docclass}yui-t3{assign $inMembers = true}{/block}
|
||||
{block body}
|
||||
<form method="post" action=".">
|
||||
<table class="form" summary="">
|
||||
<tr>
|
||||
<td colspan="2">{$form.f.owners.labelTag}:<br />
|
||||
{if $form.f.owners.errors}{$form.f.owners.fieldErrors}{/if}
|
||||
{$form.f.owners|unsafe}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2">{$form.f.members.labelTag}:<br />
|
||||
{if $form.f.members.errors}{$form.f.members.fieldErrors}{/if}
|
||||
{$form.f.members|unsafe}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2">
|
||||
<input type="submit" value="{trans 'Save Changes'}" name="submit" />
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
|
||||
|
||||
{/block}
|
||||
|
||||
{block context}
|
||||
<div class="issue-submit-info">
|
||||
{blocktrans}
|
||||
<p><strong>Instructions:</strong></p>
|
||||
<p>Specify each person by its login. Each person must have already registered with the given login.</p>
|
||||
<p>Separate the logins with commas and/or new lines.</p>
|
||||
{/blocktrans}
|
||||
</div>
|
||||
<div class="issue-submit-info">
|
||||
{blocktrans}
|
||||
<p><strong>Notes:</strong></p>
|
||||
<p>A project owner may make any change to this project, including removing other project owners. You need to be carefull when you give owner rights.</p>
|
||||
<p>A project member will not have access to the administration area but will have more options available in the use of the project.</p>
|
||||
{/blocktrans}
|
||||
</div>
|
||||
{/block}
|
92
indefero/src/IDF/templates/idf/admin/source.html
Normal file
92
indefero/src/IDF/templates/idf/admin/source.html
Normal file
@@ -0,0 +1,92 @@
|
||||
{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 'Web-Hook 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 an URL to which a HTTP
|
||||
<strong>{$hook_request_method}</strong> 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>
|
||||
<li><code>http://domain.com/commit</code></li>
|
||||
<li><code>http://domain.com/commit?my%20param</code></li>
|
||||
</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><code>%p</code> - project name</li>
|
||||
<li><code>%r</code> - revision number</li>
|
||||
</ul>
|
||||
|
||||
<p>For example, committing revision 123 to project 'my-project' with
|
||||
post-commit URL <code>http://mydomain.com/%p/%r</code> would send a request to
|
||||
<code>http://mydomain.com/my-project/123</code>.</p>{/blocktrans}</div>
|
||||
{/block}
|
96
indefero/src/IDF/templates/idf/admin/summary.html
Normal file
96
indefero/src/IDF/templates/idf/admin/summary.html
Normal file
@@ -0,0 +1,96 @@
|
||||
{extends "idf/admin/base.html"}
|
||||
{block docclass}yui-t1{assign $inSummary = 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 summary.'}</p>
|
||||
{if $form.get_top_errors}
|
||||
{$form.render_top_errors|unsafe}
|
||||
{/if}
|
||||
</div>
|
||||
{/if}
|
||||
<form method="post" enctype="multipart/form-data" action=".">
|
||||
<table class="form" summary="">
|
||||
<tr>
|
||||
<th><strong>{$form.f.name.labelTag}:</strong></th>
|
||||
<td>{if $form.f.name.errors}{$form.f.name.fieldErrors}{/if}
|
||||
{$form.f.name|unsafe}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th><strong>{$form.f.shortdesc.labelTag}:</strong></th>
|
||||
<td>{if $form.f.shortdesc.errors}{$form.f.shortdesc.fieldErrors}{/if}
|
||||
{$form.f.shortdesc|unsafe}<br />
|
||||
<span class="helptext">{$form.f.shortdesc.help_text}</span>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>{$form.f.external_project_url.labelTag}:</th>
|
||||
<td>{if $form.f.external_project_url.errors}{$form.f.external_project_url.fieldErrors}{/if}
|
||||
{$form.f.external_project_url|unsafe}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th><strong>{$form.f.description.labelTag}:</strong></th>
|
||||
<td>{if $form.f.description.errors}{$form.f.description.fieldErrors}{/if}
|
||||
{$form.f.description|unsafe}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>{$form.f.label1.labelTag}:</th>
|
||||
<td>
|
||||
{if $form.f.label1.errors}{$form.f.label1.fieldErrors}{/if}{$form.f.label1|unsafe}
|
||||
{if $form.f.label2.errors}{$form.f.label2.fieldErrors}{/if}{$form.f.label2|unsafe}
|
||||
{if $form.f.label3.errors}{$form.f.label3.fieldErrors}{/if}{$form.f.label3|unsafe}<br />
|
||||
{if $form.f.label4.errors}{$form.f.label4.fieldErrors}{/if}{$form.f.label4|unsafe}
|
||||
{if $form.f.label5.errors}{$form.f.label5.fieldErrors}{/if}{$form.f.label5|unsafe}
|
||||
{if $form.f.label6.errors}{$form.f.label6.fieldErrors}{/if}{$form.f.label6|unsafe}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>{trans 'Current logo'}:</th>
|
||||
<td>
|
||||
{if $logo}
|
||||
<img src="{url 'IDF_Views_Project::logo', array($project.shortname)}" alt="{trans 'Project logo'}" />
|
||||
{else}
|
||||
{trans 'Your project does not have a logo configured yet.'}
|
||||
{/if}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>{$form.f.logo.labelTag}:</th>
|
||||
<td>{if $form.f.logo.errors}{$form.f.logo.fieldErrors}{/if}
|
||||
{$form.f.logo|unsafe}
|
||||
</td>
|
||||
</tr>
|
||||
{if $logo}
|
||||
<tr>
|
||||
<th>{$form.f.logo_remove.labelTag}:</th>
|
||||
<td>{if $form.f.logo_remove.errors}{$form.f.logo_remove.fieldErrors}{/if}
|
||||
{$form.f.logo_remove|unsafe}
|
||||
</td>
|
||||
</tr>
|
||||
{/if}
|
||||
<tr>
|
||||
<th>{$form.f.enableads.labelTag}:</th>
|
||||
<td>{if $form.f.enableads.errors}{$form.f.enableads.fieldErrors}{/if}
|
||||
{$form.f.enableads|unsafe}
|
||||
</td>
|
||||
<tr><td> </td>
|
||||
<td>
|
||||
<input type="submit" name="submit" value="{trans 'Save Changes'}" />
|
||||
</td>
|
||||
</table>
|
||||
</form>
|
||||
{include 'idf/project/js-autocomplete.html'}{/block}
|
||||
{/block}
|
||||
|
||||
{block context}
|
||||
<div class="issue-submit-info">
|
||||
{assign $url = 'http://daringfireball.net/projects/markdown/syntax'}
|
||||
{blocktrans}
|
||||
<p><strong>Instructions:</strong></p>
|
||||
<p>The description of the project can be improved using the <a href="{$url}">Markdown syntax</a>.</p>
|
||||
{/blocktrans}
|
||||
</div>
|
||||
{/block}
|
161
indefero/src/IDF/templates/idf/admin/tabs.html
Normal file
161
indefero/src/IDF/templates/idf/admin/tabs.html
Normal file
@@ -0,0 +1,161 @@
|
||||
{extends "idf/admin/base.html"}
|
||||
{block docclass}yui-t3{assign $inTabs = 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 access rights.'}</p>
|
||||
{if $form.get_top_errors}
|
||||
{$form.render_top_errors|unsafe}
|
||||
{/if}
|
||||
</div>
|
||||
{/if}
|
||||
<form method="post" action=".">
|
||||
<table class="form access-rights" summary="">
|
||||
<tr>
|
||||
<th> </th>
|
||||
<th class="left"><strong>{trans 'Access Rights'}</strong></th>
|
||||
<th class="left"><strong>{trans 'Notifications'}</strong></th>
|
||||
</tr>
|
||||
<tr>
|
||||
<th><strong>{$form.f.downloads_access_rights.labelTag}:</strong></th>
|
||||
<td>{if $form.f.downloads_access_rights.errors}{$form.f.downloads_access_rights.fieldErrors}{/if}
|
||||
{$form.f.downloads_access_rights|unsafe}
|
||||
</td>
|
||||
<td>{if $form.f.downloads_notification_email.errors}{$form.f.downloads_notification_email.fieldErrors}{/if}
|
||||
{$form.f.downloads_notification_owners_enabled|unsafe}
|
||||
{$form.f.downloads_notification_owners_enabled.labelTag}
|
||||
{$form.f.downloads_notification_members_enabled|unsafe}
|
||||
{$form.f.downloads_notification_members_enabled.labelTag}
|
||||
{$form.f.downloads_notification_email_enabled|unsafe}
|
||||
{$form.f.downloads_notification_email_enabled.labelTag}
|
||||
{$form.f.downloads_notification_email|unsafe}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th><strong>{$form.f.wiki_access_rights.labelTag}:</strong></th>
|
||||
<td>{if $form.f.wiki_access_rights.errors}{$form.f.wiki_access_rights.fieldErrors}{/if}
|
||||
{$form.f.wiki_access_rights|unsafe}
|
||||
</td>
|
||||
<td>{if $form.f.wiki_notification_email.errors}{$form.f.wiki_notification_email.fieldErrors}{/if}
|
||||
{$form.f.wiki_notification_owners_enabled|unsafe}
|
||||
{$form.f.wiki_notification_owners_enabled.labelTag}
|
||||
{$form.f.wiki_notification_members_enabled|unsafe}
|
||||
{$form.f.wiki_notification_members_enabled.labelTag}
|
||||
{$form.f.wiki_notification_email_enabled|unsafe}
|
||||
{$form.f.wiki_notification_email_enabled.labelTag}
|
||||
{$form.f.wiki_notification_email|unsafe}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th><strong>{$form.f.issues_access_rights.labelTag}:</strong></th>
|
||||
<td>{if $form.f.issues_access_rights.errors}{$form.f.issues_access_rights.fieldErrors}{/if}
|
||||
{$form.f.issues_access_rights|unsafe}
|
||||
</td>
|
||||
<td>{if $form.f.issues_notification_email.errors}{$form.f.issues_notification_email.fieldErrors}{/if}
|
||||
{$form.f.issues_notification_owners_enabled|unsafe}
|
||||
{$form.f.issues_notification_owners_enabled.labelTag}
|
||||
{$form.f.issues_notification_members_enabled|unsafe}
|
||||
{$form.f.issues_notification_members_enabled.labelTag}
|
||||
{$form.f.issues_notification_email_enabled|unsafe}
|
||||
{$form.f.issues_notification_email_enabled.labelTag}
|
||||
{$form.f.issues_notification_email|unsafe}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th><strong>{$form.f.source_access_rights.labelTag}:</strong></th>
|
||||
<td>{if $form.f.source_access_rights.errors}{$form.f.source_access_rights.fieldErrors}{/if}
|
||||
{$form.f.source_access_rights|unsafe}
|
||||
</td>
|
||||
<td>{if $form.f.source_notification_email.errors}{$form.f.source_notification_email.fieldErrors}{/if}
|
||||
{$form.f.source_notification_owners_enabled|unsafe}
|
||||
{$form.f.source_notification_owners_enabled.labelTag}
|
||||
{$form.f.source_notification_members_enabled|unsafe}
|
||||
{$form.f.source_notification_members_enabled.labelTag}
|
||||
{$form.f.source_notification_email_enabled|unsafe}
|
||||
{$form.f.source_notification_email_enabled.labelTag}
|
||||
{$form.f.source_notification_email|unsafe}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th><strong>{$form.f.review_access_rights.labelTag}:</strong></th>
|
||||
<td>{if $form.f.review_access_rights.errors}{$form.f.review_access_rights.fieldErrors}{/if}
|
||||
{$form.f.review_access_rights|unsafe}
|
||||
</td>
|
||||
<td>{if $form.f.review_notification_email.errors}{$form.f.review_notification_email.fieldErrors}{/if}
|
||||
{$form.f.review_notification_owners_enabled|unsafe}
|
||||
{$form.f.review_notification_owners_enabled.labelTag}
|
||||
{$form.f.review_notification_members_enabled|unsafe}
|
||||
{$form.f.review_notification_members_enabled.labelTag}
|
||||
{$form.f.review_notification_email_enabled|unsafe}
|
||||
{$form.f.review_notification_email_enabled.labelTag}
|
||||
{$form.f.review_notification_email|unsafe}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th> </th>
|
||||
<td>
|
||||
{if $form.f.private_project.errors}{$form.f.private_project.fieldErrors}{/if}
|
||||
{$form.f.private_project|unsafe}
|
||||
{$form.f.private_project.labelTag}
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="authorized-users-row">
|
||||
<td> </td>
|
||||
<td colspan="2">{$form.f.authorized_users.labelTag}:<br />
|
||||
{if $form.f.authorized_users.errors}{$form.f.authorized_users.fieldErrors}{/if}
|
||||
{$form.f.authorized_users|unsafe}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td> </td>
|
||||
<td colspan="2">
|
||||
<input type="submit" value="{trans 'Save Changes'}" name="submit" />
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
{/block}
|
||||
{block context}
|
||||
<div class="issue-submit-info">
|
||||
<p>{blocktrans}This section allows you to configure project tabs access rights and notifications.{/blocktrans}</p>
|
||||
<p><strong>{trans 'Access Rights'}</strong></p>
|
||||
<p>{blocktrans}Tab access controls whether a single user can navigate into a particular section of your project via the main menu or automatically generated object links.{/blocktrans}</p>
|
||||
<p>{blocktrans}If you mark a project as private, only the project members and administrators, together with the extra authorized users you provide will have access to the project as a whole. You will still be able to define further access rights for the different tabs but the "Open to all" and "Signed in users" will default to authorized users only.{/blocktrans}</p>
|
||||
<p>{blocktrans}For the extra authorized user list, specify each person by its login. Each person must have already registered with the given login. Separate the logins with commas and/or new lines.{/blocktrans}</p>
|
||||
<p>{blocktrans}Only project members and admins have write access to the source. If you restrict the access to the source, anonymous access is not provided and the users must authenticate themselves with their password or SSH key.{/blocktrans}</p>
|
||||
<p><strong>{trans 'Notifications'}</strong></p>
|
||||
<p>{blocktrans}Here you can configure who should be notified about changes in a particular section. You can also configure additional addresses, like the one of a mailing list, that should be notified. (Keep in mind that you might have to register the sender address <strong>{$from_email}</strong> to let the mailing list actually accept notification emails.) Multiple email addresses must be separated through commas (',').{/blocktrans}</p>
|
||||
</div>
|
||||
{/block}
|
||||
|
||||
{block javascript}{literal}
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function() {
|
||||
// if not checked, hide
|
||||
if (!$("#id_private_project").is(":checked")) {
|
||||
$("#authorized-users-row").hide();
|
||||
}
|
||||
$("#id_private_project").click(function() {
|
||||
if ($("#id_private_project").is(":checked")) {
|
||||
$("#authorized-users-row").show();
|
||||
} else {
|
||||
$("#authorized-users-row").hide();
|
||||
}
|
||||
});
|
||||
|
||||
// if not checked, hide
|
||||
$.each(['downloads', 'wiki', 'issues', 'source', 'review'], function(index, section) {
|
||||
if (!$("#id_" + section + "_notification_email_enabled").is(":checked")) {
|
||||
$("#id_" + section + "_notification_email").hide();
|
||||
}
|
||||
$("#id_" + section + "_notification_email_enabled").click(function() {
|
||||
if ($("#id_" + section + "_notification_email_enabled").is(":checked")) {
|
||||
$("#id_" + section + "_notification_email").show();
|
||||
} else {
|
||||
$("#id_" + section + "_notification_email").hide();
|
||||
}
|
||||
});
|
||||
});
|
||||
});
|
||||
</script>
|
||||
{/literal}{/block}
|
34
indefero/src/IDF/templates/idf/admin/wiki.html
Normal file
34
indefero/src/IDF/templates/idf/admin/wiki.html
Normal file
@@ -0,0 +1,34 @@
|
||||
{extends "idf/admin/base.html"}
|
||||
{block docclass}yui-t1{assign $inWiki = true}{/block}
|
||||
{block body}
|
||||
<form method="post" action=".">
|
||||
<table class="form" summary="">
|
||||
<tr>
|
||||
<td colspan="2"><strong>{$form.f.labels_wiki_predefined.labelTag}:</strong><br />
|
||||
{if $form.f.labels_wiki_predefined.errors}{$form.f.labels_wiki_predefined.fieldErrors}{/if}
|
||||
{$form.f.labels_wiki_predefined|unsafe}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2">{$form.f.labels_wiki_one_max.labelTag}:<br />
|
||||
{if $form.f.labels_wiki_one_max.errors}{$form.f.labels_wiki_one_max.fieldErrors}{/if}
|
||||
{$form.f.labels_wiki_one_max|unsafe}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2">
|
||||
<input type="submit" value="{trans 'Save Changes'}" name="submit" />
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
{/block}
|
||||
{block context}
|
||||
<div class="issue-submit-info">
|
||||
{blocktrans}
|
||||
<p><strong>Instructions:</strong></p>
|
||||
<p>List one status value per line in desired sort-order.</p>
|
||||
<p>Optionally, use an equals-sign to document the meaning of each status value.</p>
|
||||
{/blocktrans}
|
||||
</div>
|
||||
{/block}
|
Reference in New Issue
Block a user