Открыть боковую панель
peteroshkvarkov
Project-38
Коммиты
7c94c0b3
Коммит
7c94c0b3
создал
Сен 20, 2023
по автору
Кабанин Денис Андреевич
Просмотр файлов
bug fix
владелец
5d066fb5
Изменения
3
Скрыть пробелы
Построчно
Рядом
portal/static/js/announcement/ed.js
Просмотр файла @
7c94c0b3
...
@@ -20,4 +20,18 @@ let id_arr = [];
...
@@ -20,4 +20,18 @@ let id_arr = [];
function
file_id_update
(
id
)
{
function
file_id_update
(
id
)
{
id_arr
.
push
(
id
);
id_arr
.
push
(
id
);
$
(
'
.fitd
'
).
val
(
id_arr
);
$
(
'
.fitd
'
).
val
(
id_arr
);
}
let
url
=
$
(
'
#id_image_url
'
).
val
();
let
covers
=
$
(
'
.covers-content
'
);
let
preview_img
=
$
(
'
.announ-img
'
).
attr
(
'
style
'
);
for
(
let
i
=
0
;
i
<
covers
.
length
;
i
++
)
{
let
styles
=
$
(
covers
[
i
]).
attr
(
'
style
'
);
styles
=
styles
.
replace
(
"
background-image: url('
"
,
''
,
1
);
styles
=
styles
.
replace
(
"
')
"
,
''
,
1
);
if
(
preview_img
.
includes
(
styles
))
{
$
(
covers
[
i
]).
click
();
}
}
}
\ No newline at end of file
portal/templates/dec/ed.html
Просмотр файла @
7c94c0b3
...
@@ -83,7 +83,21 @@
...
@@ -83,7 +83,21 @@
<div
class=
"announ-content"
>
<div
class=
"announ-content"
>
<div
class=
"top-info"
>
<div
class=
"top-info"
>
<div
class=
"top-info-text"
>
<div
class=
"top-info-text"
>
<span
class=
"date"
>
c
<span
class=
"date-start"
></span>
до
<span
class=
"date-end"
></span></span>
{% if announcement.date_of_expiring %}
{% if announcement.updated_at == announcement.created_at %}
<span
class=
"date"
>
c
<span
class=
"date-start"
>
{{ announcement.created_at }}
</span>
до
<span
class=
"date-end"
>
{{ announcement.date_of_expiring }}
</span></span>
{% else %}
<span
class=
"change"
>
изм.
</span>
<span
class=
"date"
>
c
<span
class=
"date-start"
>
{{ announcement.updated_at }}
</span>
до
<span
class=
"date-end"
>
{{ announcement.date_of_expiring }}
</span></span>
{% endif %}
{% else %}
{% if announcement.updated_at == announcement.created_at %}
<span
class=
"date"
>
{{ announcement.created_at }}
</span>
{% else %}
<span
class=
"change"
>
изм.
</span>
<span
class=
"date"
>
{{ announcement.updated_at }}
</span>
{% endif %}
{% endif %}
</div>
</div>
<button
class=
"favourite-btn"
title=
"Закрепить"
>
<button
class=
"favourite-btn"
title=
"Закрепить"
>
<svg
class=
"favourite-svg"
width=
"18"
height=
"18"
viewBox=
"0 0 18 18"
fill=
"inherit"
>
<svg
class=
"favourite-svg"
width=
"18"
height=
"18"
viewBox=
"0 0 18 18"
fill=
"inherit"
>
...
@@ -107,8 +121,7 @@
...
@@ -107,8 +121,7 @@
</ul>
</ul>
</div>
</div>
</div>
</div>
<div
class=
"announ-img"
>
<div
class=
"announ-img"
style=
"background-image: {{ announcement.image_url }}"
></div>
</div>
</div>
</div>
<div
class=
"covers-delete-div"
>
<div
class=
"covers-delete-div"
>
...
...
portal/templates/dec/red.html
Просмотр файла @
7c94c0b3
...
@@ -74,7 +74,21 @@
...
@@ -74,7 +74,21 @@
<div
class=
"announ-content"
>
<div
class=
"announ-content"
>
<div
class=
"top-info"
>
<div
class=
"top-info"
>
<div
class=
"top-info-text"
>
<div
class=
"top-info-text"
>
<span
class=
"date"
>
c
<span
class=
"date-start"
></span>
до
<span
class=
"date-end"
></span></span>
{% if announcement.date_of_expiring %}
{% if announcement.updated_at == announcement.created_at %}
<span
class=
"date"
>
c
<span
class=
"date-start"
>
{{ announcement.created_at }}
</span>
до
<span
class=
"date-end"
>
{{ announcement.date_of_expiring }}
</span></span>
{% else %}
<span
class=
"change"
>
изм.
</span>
<span
class=
"date"
>
c
<span
class=
"date-start"
>
{{ announcement.updated_at }}
</span>
до
<span
class=
"date-end"
>
{{ announcement.date_of_expiring }}
</span></span>
{% endif %}
{% else %}
{% if announcement.updated_at == announcement.created_at %}
<span
class=
"date"
>
{{ announcement.created_at }}
</span>
{% else %}
<span
class=
"change"
>
изм.
</span>
<span
class=
"date"
>
{{ announcement.updated_at }}
</span>
{% endif %}
{% endif %}
</div>
</div>
<button
class=
"favourite-btn"
title=
"Закрепить"
>
<button
class=
"favourite-btn"
title=
"Закрепить"
>
<svg
class=
"favourite-svg"
width=
"18"
height=
"18"
viewBox=
"0 0 18 18"
fill=
"inherit"
>
<svg
class=
"favourite-svg"
width=
"18"
height=
"18"
viewBox=
"0 0 18 18"
fill=
"inherit"
>
...
...
Редактирование
Предварительный просмотр
Поддерживает Markdown
0%
Попробовать снова
или
прикрепить новый файл
.
Отмена
You are about to add
0
people
to the discussion. Proceed with caution.
Сначала завершите редактирование этого сообщения!
Отмена
Пожалуйста,
зарегистрируйтесь
или
войдите
чтобы прокомментировать