Кабинет: архив не старше копии учёта (с пометкой), карточка бумаги без депозитарных реквизитов

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Q4YVo4UMopqT5DzicqpPjL
This commit is contained in:
zuevav
2026-09-18 15:56:48 +03:00
parent e7344d8121
commit 68e1153cb2
4 changed files with 39 additions and 10 deletions
+1 -1
View File
@@ -343,7 +343,7 @@ func TestBoardPages(t *testing.T) {
}
}
card := get("/security?isin=RU0009029540")
for _, want := range []string{"ПАО Сбербанк", "Код CFI", "275,67", "дивиденды", "Перевести эту бумагу"} {
for _, want := range []string{"ПАО Сбербанк", "275,67", "дивиденды", "Перевести эту бумагу", "← Портфель"} {
if !strings.Contains(card, want) {
t.Errorf("в карточке бумаги нет %q", want)
}
+3 -6
View File
@@ -440,9 +440,9 @@ input[type=checkbox]{width:20px;min-height:20px;height:20px}
{{$s := .S}}
<section class="board"><div class="board-row">
<div>
<a href="/portfolio" class="lbl" style="color:var(--dim);text-decoration:none">← Реестр</a>
<a href="/" class="lbl" style="color:var(--dim);text-decoration:none">← Портфель</a>
<div style="font-size:23px;font-weight:700;margin-top:8px">{{if $s.Name}}{{$s.Name}}{{else}}{{.ISIN}}{{end}}</div>
<div class="n" style="font-size:13px;color:var(--dim);margin-top:6px">{{.ISIN}}{{with $s.Kind}} · {{.}}{{end}}{{with $s.RegNumber}} · {{.}}{{end}}</div>
<div class="n" style="font-size:13px;color:var(--dim);margin-top:6px">{{.ISIN}}{{with $s.Kind}} · {{.}}{{end}}</div>
</div>
<div class="stats">
{{with $s.Position}}<span class="stat"><span class="lbl" style="color:var(--dim)">В портфеле</span><span class="v">{{fmtnum .Quantity}}</span></span>
@@ -462,10 +462,7 @@ input[type=checkbox]{width:20px;min-height:20px;height:20px}
{{with $s.Kind}}<div class="row"><span>Вид бумаги</span><span>{{.}}</span></div>{{end}}
{{if gt $s.Face 0.0}}<div class="row"><span>Номинал</span><span class="n">{{fmtmoney $s.Face}} ₽</span></div>{{end}}
{{with $s.Maturity}}<div class="row"><span>Погашение</span><span class="n">{{.}}</span></div>{{end}}
{{with $s.RegNumber}}<div class="row"><span>Государственная регистрация</span><span class="n">{{.}}</span></div>{{end}}
{{with $s.CFI}}<div class="row"><span>Код CFI</span><span class="n">{{.}}</span></div>{{end}}
<div class="row"><span>Обслуживание в депозитарии</span><span>{{if $s.Accepted}}принята{{else}}не принята{{end}}</span></div>
<div class="row"><span>Для квалифицированных инвесторов</span><span>{{if $s.QualOnly}}да{{else}}ограничений нет{{end}}</span></div>
{{if $s.QualOnly}}<div class="row"><span>Доступ</span><span>только для квалифицированных инвесторов</span></div>{{end}}
{{if gt $s.Price 0.0}}<div class="row"><span>Цена{{with $s.Board}} · {{.}}{{end}}</span><span class="n">{{fmtmoney $s.Price}}{{with $s.PriceIn}} <span style="color:var(--mut)">{{.}}</span>{{end}}</span></div>{{end}}
</div>
{{with $s.Position}}{{if and .Transferable (gt .Available 0.0)}}