This commit is contained in:
Henrique Dias committed 2015-09-16 21:48:08 +01:00
1 parent 65041f9d70
commit d061c26caf
14 files changed
+991 -42

No files matched your search

+1 -1
View File
@@ -25,7 +25,7 @@ type Page struct {
// Render the page
func (p *Page) Render(w http.ResponseWriter, r *http.Request, templates ...string) (int, error) {
if r.URL.Query().Get("minimal") == "true" {
if r.Header.Get("X-PJAX") == "true" {
templates = append(templates, "base_minimal")
} else {
templates = append(templates, "base_full")