package dev

import (
	"gitote/gitote/models"
	"gitote/gitote/pkg/context"
	"gitote/gitote/pkg/setting"
)

func TemplatePreview(c *context.Context) {
	c.Data["User"] = models.User{Name: "Yoginth"}
	c.Data["AppName"] = setting.AppName
	c.Data["AppVer"] = setting.AppVer
	c.Data["AppURL"] = setting.AppURL
	c.Data["Code"] = "123456789"
	c.Data["ActiveCodeLives"] = setting.Service.ActiveCodeLives / 60
	c.Data["ResetPwdCodeLives"] = setting.Service.ResetPwdCodeLives / 60
	c.Data["CurDbValue"] = ""

	c.HTML(200, (c.Params("*")))
}
