summaryrefslogtreecommitdiffstats
path: root/webui_templates/repo_edit.tmpl
diff options
context:
space:
mode:
Diffstat (limited to 'webui_templates/repo_edit.tmpl')
-rw-r--r--webui_templates/repo_edit.tmpl20
1 files changed, 14 insertions, 6 deletions
diff --git a/webui_templates/repo_edit.tmpl b/webui_templates/repo_edit.tmpl
index 0794d2b5..cf7f82fc 100644
--- a/webui_templates/repo_edit.tmpl
+++ b/webui_templates/repo_edit.tmpl
@@ -85,9 +85,13 @@ function disablename(value)
<label for="keep_updated">Keep Updated</label>
</td>
<td>
- <input type="checkbox" name="keep_updated" id="keep_updated"
- #if (not $repo) or $repo.keep_updated
- checked="true"
+ <input type="checkbox" name="keep_updated" id="keep_updated"
+ #if $repo
+ #if str($repo.keep_updated) != "False"
+ checked="true"
+ #end if
+ #else
+ checked="true"
#end if
/>
<p class="context-tip">Uncheck to prevent the mirror from being updated again.</p>
@@ -100,9 +104,13 @@ function disablename(value)
<label for="keep_updated">Mirror Locally</label>
</td>
<td>
- <input type="checkbox" name="mirror_locally" id="mirror_locally"
- #if (not $repo) or $repo.mirror_locally
- checked="true"
+ <input type="checkbox" name="mirror_locally" id="mirror_locally"
+ #if $repo
+ #if str($repo.mirror_locally) != "False"
+ checked="true"
+ #end if
+ #else
+ checked="true"
#end if
/>
<p class="context-tip">Uncheck to reference the repository directly instead of mirroring.</p>