feat(recipe): 修改菜谱飞书卡片样式
修改菜谱飞书卡片样式 Signed-off-by: Ching <loooching@gmail.com>
This commit is contained in:
parent
a0fa3ac98c
commit
beb10e00a9
@ -94,12 +94,18 @@ class Recipe(models.Model):
|
||||
"config": {
|
||||
"wide_screen_mode": True
|
||||
},
|
||||
"header": {
|
||||
"title": {
|
||||
"tag": "plain_text",
|
||||
"content": self.name,
|
||||
},
|
||||
"template": "blue"
|
||||
},
|
||||
"elements": [
|
||||
{
|
||||
"tag": "markdown",
|
||||
"content": "# **%s**\n类型:%s\n评分:%s\n难度:%s" % (
|
||||
self.name, self.display_recipe_type, self.display_rate,
|
||||
self.display_difficult)
|
||||
"content": "**类型**:%s\n**评分**:%s\n**难度**:%s" % (
|
||||
self.display_recipe_type, self.display_rate, self.display_difficult)
|
||||
},
|
||||
{
|
||||
"tag": "action",
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user