diff --git a/internal/lkgateway/lkhistory.go b/internal/lkgateway/lkhistory.go index 612b0d4..c5083a4 100644 --- a/internal/lkgateway/lkhistory.go +++ b/internal/lkgateway/lkhistory.go @@ -103,7 +103,7 @@ func inClause(ids []int64) string { func parseRange(from, to string) (time.Time, time.Time) { fromT, err := time.Parse("2006-01-02", strings.TrimSpace(from)) if err != nil { - fromT = time.Now().AddDate(-1, 0, 0) + fromT = time.Now().AddDate(0, -3, 0) // по умолчанию — последние три месяца } toT, err := time.Parse("2006-01-02", strings.TrimSpace(to)) if err != nil { diff --git a/modules/lk/templates.go b/modules/lk/templates.go index d29a139..1d24669 100644 --- a/modules/lk/templates.go +++ b/modules/lk/templates.go @@ -31,6 +31,7 @@ a{color:var(--acc)}a:hover{color:#1e3395} .top nav a:hover{background:var(--board-3);color:#f3f0e7} .top nav a.on{background:var(--board-3);color:#f3f0e7} .top .who{color:var(--dim);font-size:12px;white-space:nowrap} +.dogovor{background:var(--board-3);color:#f3f0e7;border-radius:3px;padding:3px 9px;font-size:12px;letter-spacing:.04em;white-space:nowrap} .top .exit{color:var(--dim);text-decoration:none} .lnk{background:none;border:0;padding:0;font:inherit;color:inherit;cursor:pointer;text-decoration:underline;text-underline-offset:2px} .tabs{display:flex;gap:6px;align-items:center;flex-wrap:wrap;margin:0 0 16px} @@ -57,10 +58,8 @@ a{color:var(--acc)}a:hover{color:#1e3395} .stats{display:flex;gap:14px 46px;flex-wrap:wrap} .stat{display:flex;flex-direction:column;gap:3px} .stat .v{font-family:var(--mono);font-variant-numeric:tabular-nums;font-size:22px} -.meta{display:flex;gap:6px 30px;flex-wrap:wrap;margin-top:12px} -.meta .m{display:flex;flex-direction:column;gap:1px} -.meta .k{font-family:var(--mono);font-size:9.5px;letter-spacing:.1em;text-transform:uppercase;color:#8e8879} -.meta .v{font-size:13px;color:#d9d3c6} +.rside{display:flex;flex-direction:column;align-items:flex-end;gap:10px} +.asof{font-size:11.5px;color:#8e8879;letter-spacing:.04em} .imp{background:var(--board);color:#f3f0e7;padding:10px 20px;font-size:13px;display:flex;gap:10px;align-items:center;flex-wrap:wrap} main{max-width:1180px;margin:0 auto;padding:22px 20px 34px} h1{font-size:23px;margin:0 0 6px;letter-spacing:-.01em}h2{font-size:15px;margin:0 0 12px;letter-spacing:-.005em} @@ -112,9 +111,9 @@ input[type=checkbox]{width:20px;min-height:20px;height:20px} {{define "mark"}}{{end}} {{define "nav"}}
- {{template "mark" .}}{{.Title}} + {{template "mark" .}}Личный кабинет{{with .Contract}}{{.}}{{end}} Новое поручение - {{with .FullName}}{{.}}{{end}}{{with .Contract}} · {{.}}{{end}} + {{with .FullName}}{{.}}{{end}}
{{if .AsClient}}
@@ -163,17 +162,15 @@ input[type=checkbox]{width:20px;min-height:20px;height:20px}
Стоимость портфеля{{if eq .View "archive"}} на {{$p.AsOf}}{{end}}
{{fmtmoney $p.Total}} ₽
-
- {{with .FullName}}Клиент{{.}}{{end}} - {{with .Contract}}Договор{{.}}{{end}} - {{with $p.AsOf}}{{if eq $.View "archive"}}На дату{{else}}Данные на{{end}}{{.}}{{end}} -
+
+
+ {{with $p.AsOf}}
{{if eq $.View "archive"}}на дату{{else}}данные на{{end}} {{.}}
{{end}}
Бумаги{{fmtmoney $p.Securities}} ₽ Деньги{{fmtmoney $p.CashRUB}} ₽ Результат{{if ne $p.Cost 0.0}}{{fmtsigned $p.PnL}} ₽ · {{fmtpct $p.PnLPct}}{{else}}—{{end}} -
+
{{if .Flash}}
{{.Flash}}
{{end}} @@ -409,7 +406,8 @@ input[type=checkbox]{width:20px;min-height:20px;height:20px} {{define "profile"}}{{template "head" .}}{{template "nav" .}}
Профиль -
{{if .FullName}}{{.FullName}}{{else}}Клиент депозитария{{end}}
+
{{if .FullName}}{{.FullName}}{{else}}Клиент депозитария{{end}}
+
договор {{.Contract}}
Договор{{.Contract}} Счетов депо{{.Accounts}}