время в топе и тэги креативов
This commit is contained in:
@@ -58,6 +58,42 @@ URL должен начинаться с <code>http://</code> или <code>https
|
||||
|
||||
`
|
||||
|
||||
const msgEditTag = `
|
||||
<b>🏷 Выберите тег креатива:</b>
|
||||
|
||||
🧪 <b>Тестовый</b> — для A/B тестов и экспериментов
|
||||
🚀 <b>Рабочий</b> — проверенный эффективный креатив
|
||||
|
||||
`
|
||||
|
||||
func (e *CreativeEditorFields) ShowTagPanel(b *bot.Bot) {
|
||||
testingLabel := "🧪 Тестовый"
|
||||
productionLabel := "🚀 Рабочий"
|
||||
|
||||
if e.Tag != nil {
|
||||
if *e.Tag == "testing" {
|
||||
testingLabel = "✓ 🧪 Тестовый"
|
||||
} else if *e.Tag == "production" {
|
||||
productionLabel = "✓ 🚀 Рабочий"
|
||||
}
|
||||
}
|
||||
|
||||
e.ShowControlPanel(b, msgEditTag, [][]echotron.InlineKeyboardButton{
|
||||
Row(
|
||||
Button(testingLabel, "tag_testing"),
|
||||
Button(productionLabel, "tag_production"),
|
||||
),
|
||||
Row(Button("« Назад", "cancel_edit")),
|
||||
})
|
||||
}
|
||||
|
||||
func (e *CreativeEditorFields) GetTagLabel() string {
|
||||
if e.Tag != nil && *e.Tag == "production" {
|
||||
return "🏷 Рабочий"
|
||||
}
|
||||
return "🏷 Тестовый"
|
||||
}
|
||||
|
||||
func (e *CreativeEditorFields) ShowAddButtonPanel(b *bot.Bot) {
|
||||
inviteLabel := "Ссылка на канал"
|
||||
customLabel := "Своя ссылка"
|
||||
|
||||
Reference in New Issue
Block a user