summaryrefslogtreecommitdiffstats
path: root/templates/home.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/home.tmpl
parent4f74b4e6578be4251af65cd08daa37c884e431a0 (diff)
downloadgitea-0055cbd3651ebde0f8b6cc70c9c44de56dc38830.tar.gz
gitea-0055cbd3651ebde0f8b6cc70c9c44de56dc38830.zip
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/home.tmpl')
-rw-r--r--templates/home.tmpl4
1 files changed, 2 insertions, 2 deletions
diff --git a/templates/home.tmpl b/templates/home.tmpl
index ba9cbe402b..0fa7086940 100644
--- a/templates/home.tmpl
+++ b/templates/home.tmpl
@@ -3,12 +3,12 @@
<div id="promo-wrapper">
<div class="container clear">
<div id="promo-logo" class="left">
- <img src="/img/gogs-lg.png" alt="logo" />
+ <img src="{{AppRootSubUrl}}/img/gogs-lg.png" alt="logo" />
</div>
<div id="promo-content">
<h1>Gogs</h1>
<h2>{{.i18n.Tr "app_desc"}}</h2>
- <form id="promo-form" action="/user/login" method="post">
+ <form id="promo-form" action="{{AppRootSubUrl}}/user/login" method="post">
{{.CsrfTokenHtml}}
<input class="ipt ipt-large" id="username" name="uname" type="text" placeholder="{{.i18n.Tr "home.uname_holder"}}"/>
<input class="ipt ipt-large" name="password" type="password" placeholder="{{.i18n.Tr "home.password_holder"}}"/>