@@ -85,11 +85,16 @@ class ItemData(models.Model):
|
||||
|
||||
context_buttons = [{"name": cb.button_type.verbose, "url": cb.url} for cb in self.context_buttons.all()]
|
||||
|
||||
author = None
|
||||
if self.author:
|
||||
author = self.author.id
|
||||
|
||||
return {
|
||||
"image": self.image.url,
|
||||
"title": self.title,
|
||||
"shortDescription": self.short_description,
|
||||
"description": self.description,
|
||||
"author": author,
|
||||
"contextButtons": context_buttons
|
||||
}
|
||||
|
||||
|
||||
Submodule frontend/NovelPlus-frontend updated: 56b4c56a4d...4c467f2325
@@ -8,6 +8,7 @@
|
||||
В NovelPlus можно находить и выкладывать свои визуальные новеллы и ассеты для них.
|
||||
А для разработчиков - найти единомышленников!">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
{%% csrf_token %%}
|
||||
<meta name="yandex-verification" content="e38d4768470c4ba2" />
|
||||
<link rel="icon" href="{%% static '/misc/icon.ico' %%}">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
|
||||
File diff suppressed because one or more lines are too long
@@ -8,10 +8,11 @@
|
||||
В NovelPlus можно находить и выкладывать свои визуальные новеллы и ассеты для них.
|
||||
А для разработчиков - найти единомышленников!">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
{% csrf_token %}
|
||||
<meta name="yandex-verification" content="e38d4768470c4ba2" />
|
||||
<link rel="icon" href="{% static '/misc/icon.ico' %}">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<script defer="defer" src="{% static 'frontend/js/main.34d141d4.js' %}"></script>
|
||||
<script defer="defer" src="{% static 'frontend/js/main.4a9be667.js' %}"></script>
|
||||
<link rel="stylesheet" href="{% static 'frontend/css/main.3c1cb610.css' %}">
|
||||
</head>
|
||||
<body>
|
||||
|
||||
Reference in New Issue
Block a user