aboutsummaryrefslogtreecommitdiff
path: root/templates/org/new.tmpl
diff options
context:
space:
mode:
authorMartin van Beurden <chadoe@gmail.com>2014-09-14 19:35:22 +0200
committerMartin van Beurden <chadoe@gmail.com>2014-09-18 20:50:48 +0200
commit0055cbd3651ebde0f8b6cc70c9c44de56dc38830 (patch)
tree64a9ea617ba1f704139881c3960fa2425dad9018 /templates/org/new.tmpl
parent4f74b4e6578be4251af65cd08daa37c884e431a0 (diff)
Allow Gogs to run from a suburl behind a reverse proxy. e.g. http://mydomain.com/gogs/
Conflicts: modules/setting/setting.go Conflicts: templates/repo/release/list.tmpl templates/user/dashboard/dashboard.tmpl Conflicts: routers/repo/setting.go
Diffstat (limited to 'templates/org/new.tmpl')
-rw-r--r--templates/org/new.tmpl4
1 files changed, 2 insertions, 2 deletions
diff --git a/templates/org/new.tmpl b/templates/org/new.tmpl
index 870f3982..eb5fd9a3 100644
--- a/templates/org/new.tmpl
+++ b/templates/org/new.tmpl
@@ -1,7 +1,7 @@
{{template "base/head" .}}
{{template "base/navbar" .}}
<div class="container" id="body">
- <form action="/org/create" method="post" class="form-horizontal card" id="org-create">
+ <form action="{{AppRootSubUrl}}/org/create" method="post" class="form-horizontal card" id="org-create">
{{.CsrfTokenHtml}}
<h3>Create New Organization</h3>
{{template "base/alert" .}}
@@ -24,7 +24,7 @@
<div class="form-group">
<div class="col-md-offset-2 col-md-8">
<button type="submit" class="btn btn-lg btn-primary">Create An Organization</button>
- <a href="/" class="text-danger">Cancel</a>
+ <a href="{{AppRootSubUrl}}/" class="text-danger">Cancel</a>
</div>
</div>
</form>