diff --git a/components/components.go b/components/components.go index 6106bd9ebe..3a6823291f 100644 --- a/components/components.go +++ b/components/components.go @@ -1,3 +1,6 @@ +// Copyright 2020 The Gitea Authors. All rights reserved. +// SPDX-License-Identifier: MIT + package components import ( diff --git a/components/explore_navbar.go b/components/explore_navbar.go index 2edb2c35dc..9309046716 100644 --- a/components/explore_navbar.go +++ b/components/explore_navbar.go @@ -1,3 +1,6 @@ +// Copyright 2020 The Gitea Authors. All rights reserved. +// SPDX-License-Identifier: MIT + package components import ( diff --git a/components/explore_search.go b/components/explore_search.go index c1789939fe..c1427fd0d6 100644 --- a/components/explore_search.go +++ b/components/explore_search.go @@ -1,3 +1,6 @@ +// Copyright 2020 The Gitea Authors. All rights reserved. +// SPDX-License-Identifier: MIT + package components import ( diff --git a/components/explore_users_page.go b/components/explore_users_page.go index 31ebe3c44b..e7c8f82f45 100644 --- a/components/explore_users_page.go +++ b/components/explore_users_page.go @@ -1,3 +1,6 @@ +// Copyright 2020 The Gitea Authors. All rights reserved. +// SPDX-License-Identifier: MIT + package components import ( diff --git a/components/search_button.go b/components/search_button.go index fe62b7c803..b8d5625484 100644 --- a/components/search_button.go +++ b/components/search_button.go @@ -1,3 +1,6 @@ +// Copyright 2020 The Gitea Authors. All rights reserved. +// SPDX-License-Identifier: MIT + package components import ( diff --git a/components/search_combo.go b/components/search_combo.go index 67abe4788b..5ebec514dd 100644 --- a/components/search_combo.go +++ b/components/search_combo.go @@ -1,3 +1,6 @@ +// Copyright 2020 The Gitea Authors. All rights reserved. +// SPDX-License-Identifier: MIT + package components import ( diff --git a/components/search_input.go b/components/search_input.go index ef23e53bb2..aef68bdbfa 100644 --- a/components/search_input.go +++ b/components/search_input.go @@ -1,3 +1,6 @@ +// Copyright 2020 The Gitea Authors. All rights reserved. +// SPDX-License-Identifier: MIT + package components import ( diff --git a/components/sort_option.go b/components/sort_option.go index e7bea224a2..03b14b6c2a 100644 --- a/components/sort_option.go +++ b/components/sort_option.go @@ -1,3 +1,6 @@ +// Copyright 2020 The Gitea Authors. All rights reserved. +// SPDX-License-Identifier: MIT + package components import ( diff --git a/components/user_list.go b/components/user_list.go index 6e684e91b9..571b83ba4e 100644 --- a/components/user_list.go +++ b/components/user_list.go @@ -1,3 +1,6 @@ +// Copyright 2020 The Gitea Authors. All rights reserved. +// SPDX-License-Identifier: MIT + package components import ( diff --git a/components/user_name.go b/components/user_name.go index 6060a824d0..0ab3f5e210 100644 --- a/components/user_name.go +++ b/components/user_name.go @@ -1,3 +1,6 @@ +// Copyright 2020 The Gitea Authors. All rights reserved. +// SPDX-License-Identifier: MIT + package components import ( diff --git a/services/context/context_response.go b/services/context/context_response.go index 231ebc1a88..9cd8dbf8ac 100644 --- a/services/context/context_response.go +++ b/services/context/context_response.go @@ -105,7 +105,7 @@ func (ctx *Context) HTMLPartial(status int, name templates.TplName) (string, err return rec.Body.String(), nil } -func (ctx *Context) Gomponents(status int, html string, tplName string) { +func (ctx *Context) Gomponents(status int, html, tplName string) { log.Debug("Component: %s", tplName) err := ctx.Render.Gomponents(ctx.Resp, status, []byte(html))