renamed some files
This commit is contained in:
1 parent
b190bcc21a
commit
224cf5bb0c
15 files changed
+21
-18
No files matched your search
+9
-9
@@ -39,7 +39,7 @@ type TemplateData struct {
|
||||
}
|
||||
|
||||
func favicon(w http.ResponseWriter, r *http.Request) {
|
||||
http.ServeFile(w, r, "favicon.ico")
|
||||
http.ServeFile(w, r, "ui/static/favicon.ico")
|
||||
}
|
||||
|
||||
func authenticatedUser(w http.ResponseWriter, r *http.Request) int32 {
|
||||
@@ -84,7 +84,7 @@ func home(w http.ResponseWriter, r *http.Request) {
|
||||
|
||||
active_subscription := subscriptions.HasActiveSubscription(id)
|
||||
|
||||
text, err := template.ParseFiles("ui/html/base.html", "ui/html/index.html")
|
||||
text, err := template.ParseFiles("ui/html/base.layout.html", "ui/html/index.page.html")
|
||||
if err != nil {
|
||||
http.Error(w, "Internal Server Error", 500)
|
||||
log.Println(err)
|
||||
@@ -113,7 +113,7 @@ func news(w http.ResponseWriter, r *http.Request) {
|
||||
|
||||
active_subscription := subscriptions.HasActiveSubscription(id)
|
||||
|
||||
text, err := template.ParseFiles("ui/html/base.html", "ui/html/news.html")
|
||||
text, err := template.ParseFiles("ui/html/base.layout.html", "ui/html/news.page.html")
|
||||
if err != nil {
|
||||
http.Error(w, "Internal Server Error", 500)
|
||||
log.Println(err)
|
||||
@@ -137,7 +137,7 @@ func news(w http.ResponseWriter, r *http.Request) {
|
||||
}
|
||||
|
||||
func login(w http.ResponseWriter, r *http.Request) {
|
||||
text, err := template.ParseFiles("ui/html/base.html", "ui/html/login.html")
|
||||
text, err := template.ParseFiles("ui/html/base.layout.html", "ui/html/login.page.html")
|
||||
if err != nil {
|
||||
http.Error(w, "Internal Server Error", 500)
|
||||
log.Fatal(err)
|
||||
@@ -203,7 +203,7 @@ func login(w http.ResponseWriter, r *http.Request) {
|
||||
}
|
||||
|
||||
func logout(w http.ResponseWriter, r *http.Request) {
|
||||
text, err := template.ParseFiles("ui/html/base.html", "ui/html/logout.html")
|
||||
text, err := template.ParseFiles("ui/html/base.layout.html", "ui/html/logout.page.html")
|
||||
if err != nil {
|
||||
http.Error(w, "Internal Server Error", 500)
|
||||
log.Println(err)
|
||||
@@ -238,7 +238,7 @@ func logout(w http.ResponseWriter, r *http.Request) {
|
||||
}
|
||||
|
||||
func register(w http.ResponseWriter, r *http.Request) {
|
||||
text, err := template.ParseFiles("ui/html/base.html", "ui/html/register.html")
|
||||
text, err := template.ParseFiles("ui/html/base.layout.html", "ui/html/register.page.html")
|
||||
if err != nil {
|
||||
http.Error(w, "Internal Server Error", 500)
|
||||
log.Println(err)
|
||||
@@ -320,7 +320,7 @@ func account(w http.ResponseWriter, r *http.Request) {
|
||||
|
||||
//log.Println(id, account)
|
||||
|
||||
text, err := template.ParseFiles("ui/html/base.html", "ui/html/account.html")
|
||||
text, err := template.ParseFiles("ui/html/base.layout.html", "ui/html/account.page.html")
|
||||
if err != nil {
|
||||
http.Error(w, "Internal Server Error", 500)
|
||||
log.Println(err)
|
||||
@@ -392,7 +392,7 @@ func subscribe(w http.ResponseWriter, r *http.Request) {
|
||||
},
|
||||
}
|
||||
|
||||
text, err := template.New("base.html").Funcs(fm).ParseFiles("ui/html/base.html", "ui/html/subscribe.html")
|
||||
text, err := template.New("base.html").Funcs(fm).ParseFiles("ui/html/base.layout.html", "ui/html/subscribe.page.html")
|
||||
if err != nil {
|
||||
http.Error(w, "Internal Server Error", 500)
|
||||
log.Println(err)
|
||||
@@ -428,7 +428,7 @@ func subscribeStripe(w http.ResponseWriter, r *http.Request) {
|
||||
log.Println(err)
|
||||
}
|
||||
|
||||
text, err := template.ParseFiles("ui/html/base.html", "ui/html/subscribe_stripe.html")
|
||||
text, err := template.ParseFiles("ui/html/base.layout.html", "ui/html/subscribe_stripe.page.html")
|
||||
if err != nil {
|
||||
http.Error(w, "Internal Server Error", 500)
|
||||
log.Println(err)
|
||||
|
||||
Reference in new issue
Block a user