fix from feedback
This commit is contained in:
parent
0d5f521266
commit
ab2f48bcd4
@ -1,6 +1,7 @@
|
||||
const interleaveOffset = 0.01;
|
||||
const swiperContainer = document.querySelector('.swiper-container')
|
||||
|
||||
var swiper = new Swiper('.swiper-container', {
|
||||
const interleaveOffset = 0.01;
|
||||
var swiper = new Swiper(swiperContainer, {
|
||||
direction: 'vertical',
|
||||
speed: 500,
|
||||
watchSlidesProgress: true,
|
||||
@ -46,76 +47,40 @@ var swiper = new Swiper('.swiper-container', {
|
||||
}
|
||||
},
|
||||
});
|
||||
|
||||
// Добавим обновление состояния слайдов на случай неправильной анимации при изменении слайда
|
||||
swiper.on('slideChange', function () {
|
||||
const currentIndex = swiper.activeIndex;
|
||||
const headerWrapper = document.querySelector('.header');
|
||||
|
||||
if (currentIndex === 2) {
|
||||
headerWrapper.classList.remove('color-white');
|
||||
headerWrapper.classList.add('color-black');
|
||||
} else {
|
||||
headerWrapper.classList.remove('color-black');
|
||||
headerWrapper.classList.add('color-white');
|
||||
}
|
||||
|
||||
// Обновим прогресс и классы слайдов после изменения
|
||||
swiper.updateSlidesProgress();
|
||||
swiper.updateSlidesClasses();
|
||||
});
|
||||
|
||||
const projectLink = document.querySelector('#projects')
|
||||
const aboutLink = document.querySelector('#about')
|
||||
const contactsLink = document.querySelector('#contacts')
|
||||
const servicesLink = document.querySelector('#services')
|
||||
const mainLink = document.querySelector('#mainLink')
|
||||
const projectBtn = document.querySelector('#projectBtn')
|
||||
mainLink.addEventListener('click', () => {
|
||||
swiper.slideTo(0, 800)
|
||||
})
|
||||
projectLink.addEventListener('click', () => {
|
||||
swiper.slideTo(1, 800)
|
||||
})
|
||||
projectBtn.addEventListener('click', () => {
|
||||
swiper.slideTo(1, 800)
|
||||
})
|
||||
servicesLink.addEventListener('click', () => {
|
||||
swiper.slideTo(2, 800)
|
||||
})
|
||||
aboutLink.addEventListener('click', () => {
|
||||
swiper.slideTo(3, 800)
|
||||
})
|
||||
|
||||
contactsLink.addEventListener('click', () => {
|
||||
swiper.slideTo(4, 800)
|
||||
})
|
||||
// Проверка localStorage для перехода к слайду
|
||||
const targetSlide = localStorage.getItem('targetSlide');
|
||||
if (targetSlide !== null && !isNaN(targetSlide)) {
|
||||
window.swiper.slideTo(parseInt(targetSlide), 800);
|
||||
localStorage.removeItem('targetSlide');
|
||||
}
|
||||
|
||||
// вложенный свайпер
|
||||
|
||||
var mySwiper = new Swiper(".mySwiper", {
|
||||
effect: "coverflow",
|
||||
grabCursor: true,
|
||||
centeredSlides: true,
|
||||
slidesPerView: "auto",
|
||||
loop: true,
|
||||
spaceBetween: 70,
|
||||
coverflowEffect: {
|
||||
rotate: 0,
|
||||
stretch: 0,
|
||||
depth: 100,
|
||||
modifier: 1,
|
||||
slideShadows: true,
|
||||
},
|
||||
pagination: {
|
||||
el: ".swiper-pagination",
|
||||
clickable: true,
|
||||
},
|
||||
navigation: {
|
||||
nextEl: ".swiper-button-next",
|
||||
prevEl: ".swiper-button-prev",
|
||||
},
|
||||
});
|
||||
const innerSwiper = document.querySelector('.innerSwiper')
|
||||
if (innerSwiper) {
|
||||
var innerSwiperObj = new Swiper(innerSwiper, {
|
||||
effect: "coverflow",
|
||||
grabCursor: true,
|
||||
centeredSlides: true,
|
||||
slidesPerView: "auto",
|
||||
loop: true,
|
||||
spaceBetween: 70,
|
||||
coverflowEffect: {
|
||||
rotate: 0,
|
||||
stretch: 0,
|
||||
depth: 100,
|
||||
modifier: 1,
|
||||
slideShadows: true,
|
||||
},
|
||||
pagination: {
|
||||
el: ".swiper-pagination",
|
||||
clickable: true,
|
||||
},
|
||||
navigation: {
|
||||
nextEl: ".swiper-button-next",
|
||||
prevEl: ".swiper-button-prev",
|
||||
},
|
||||
});
|
||||
}
|
||||
|
||||
function truncateText(text, wordLimit) {
|
||||
const words = text.split(' ');
|
||||
|
||||
@ -90,9 +90,15 @@
|
||||
.w-100 {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.min-h-100vh {
|
||||
min-height: 100vh
|
||||
}
|
||||
|
||||
.w-80 {
|
||||
width: 80%;
|
||||
}
|
||||
|
||||
.h-100vh {
|
||||
height: 100vh;
|
||||
}
|
||||
@ -108,9 +114,11 @@
|
||||
.w-800px {
|
||||
width: 800px;
|
||||
}
|
||||
|
||||
.w-1200px {
|
||||
width: 1200px;
|
||||
}
|
||||
|
||||
.pos-absolute {
|
||||
position: absolute;
|
||||
}
|
||||
@ -171,6 +179,11 @@
|
||||
.radius-5 {
|
||||
border-radius: 5px;
|
||||
}
|
||||
|
||||
.cursor-pointer {
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.border-none {
|
||||
border: none
|
||||
}
|
||||
@ -8,9 +8,7 @@
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
body {
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
|
||||
body {
|
||||
margin: 0;
|
||||
|
||||
@ -25,50 +25,60 @@
|
||||
{% block title %}
|
||||
<title>Кибекод</title>
|
||||
{% endblock %}
|
||||
<!-- Yandex.Metrika counter -->
|
||||
<script type="text/javascript">
|
||||
(function (m, e, t, r, i, k, a) {
|
||||
m[i] = m[i] || function () {
|
||||
(m[i].a = m[i].a || []).push(arguments)
|
||||
};
|
||||
m[i].l = 1 * new Date();
|
||||
for (var j = 0; j < document.scripts.length; j++) {
|
||||
if (document.scripts[j].src === r) {
|
||||
return;
|
||||
{% if is_prod %}
|
||||
<!-- Yandex.Metrika counter -->
|
||||
<script type="text/javascript">
|
||||
(function (m, e, t, r, i, k, a) {
|
||||
m[i] = m[i] || function () {
|
||||
(m[i].a = m[i].a || []).push(arguments)
|
||||
};
|
||||
m[i].l = 1 * new Date();
|
||||
for (var j = 0; j < document.scripts.length; j++) {
|
||||
if (document.scripts[j].src === r) {
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
k = e.createElement(t), a = e.getElementsByTagName(t)[0], k.async = 1, k.src = r, a.parentNode.insertBefore(k, a)
|
||||
})
|
||||
(window, document, "script", "https://mc.yandex.ru/metrika/tag.js", "ym");
|
||||
k = e.createElement(t), a = e.getElementsByTagName(t)[0], k.async = 1, k.src = r, a.parentNode.insertBefore(k, a)
|
||||
})
|
||||
(window, document, "script", "https://mc.yandex.ru/metrika/tag.js", "ym");
|
||||
|
||||
ym(98625119, "init", {
|
||||
clickmap: true,
|
||||
trackLinks: true,
|
||||
accurateTrackBounce: true
|
||||
});
|
||||
</script>
|
||||
<noscript>
|
||||
<div><img src="https://mc.yandex.ru/watch/98625119" style="position:absolute; left:-9999px;" alt=""/></div>
|
||||
</noscript>
|
||||
<!-- /Yandex.Metrika counter -->
|
||||
{% endif %}
|
||||
|
||||
ym(98625119, "init", {
|
||||
clickmap: true,
|
||||
trackLinks: true,
|
||||
accurateTrackBounce: true
|
||||
});
|
||||
</script>
|
||||
<noscript>
|
||||
<div><img src="https://mc.yandex.ru/watch/98625119" style="position:absolute; left:-9999px;" alt=""/></div>
|
||||
</noscript>
|
||||
<!-- /Yandex.Metrika counter -->
|
||||
</head>
|
||||
<body>
|
||||
{% block header %}
|
||||
<header class="header">
|
||||
<div class="container">
|
||||
<div class="header-content">
|
||||
<a href="{% block main_link %}#{% endblock %}" class="logo white-link-underline"
|
||||
<a class="logo white-link-underline cursor-pointer" href="javascript:void(0);"
|
||||
id="mainLink">Киберкод</a>
|
||||
<nav>
|
||||
<ul class="nav-list">
|
||||
<li class="nav-item cursor-pointer"><a id="projects"
|
||||
class="nav-link white-link-underline">Проекты</a></li>
|
||||
<li class="nav-item cursor-pointer"><a id="services"
|
||||
class="nav-link white-link-underline">Услуги</a></li>
|
||||
<li class="nav-item cursor-pointer"><a id="about" class="nav-link white-link-underline">О
|
||||
компании</a></li>
|
||||
<li class="nav-item cursor-pointer"><a id="contacts"
|
||||
class="nav-link white-link-underline">Контакты</a></li>
|
||||
<li class="nav-item cursor-pointer">
|
||||
<a id="projects" href="javascript:void(0);"
|
||||
class="nav-link white-link-underline">Проекты</a>
|
||||
</li>
|
||||
<li class="nav-item cursor-pointer">
|
||||
<a id="services" href="javascript:void(0);" class="nav-link white-link-underline">Услуги</a>
|
||||
</li>
|
||||
<li class="nav-item cursor-pointer">
|
||||
<a id="about" href="javascript:void(0);" class="nav-link white-link-underline">О
|
||||
компании</a>
|
||||
</li>
|
||||
<li class="nav-item cursor-pointer">
|
||||
<a id="contacts" href="javascript:void(0);"
|
||||
class="nav-link white-link-underline">Контакты</a>
|
||||
</li>
|
||||
</ul>
|
||||
</nav>
|
||||
<div class="burger">
|
||||
@ -82,60 +92,65 @@
|
||||
{% endblock %}
|
||||
{% block content %}{% endblock %}
|
||||
{% block modal %}
|
||||
<a class="cursor-pointer"
|
||||
style="fill: #fff; position: fixed; bottom: 5vh; right: 5vw; z-index:1; width: 50px; height: 50px;"
|
||||
data-bs-toggle="modal" data-bs-target="#feedbackModal">
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" id="message">
|
||||
<g>
|
||||
{% if is_feedback_working %}
|
||||
<a class="cursor-pointer"
|
||||
style="fill: #fff; position: fixed; bottom: 5vh; right: 5vw; z-index:1; width: 50px; height: 50px;"
|
||||
data-bs-toggle="modal" data-bs-target="#feedbackModal">
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" id="message">
|
||||
<g>
|
||||
<circle cx="12" cy="12" r="1"/>
|
||||
<circle cx="16" cy="12" r="1"/>
|
||||
<circle cx="8" cy="12" r="1"/>
|
||||
<path d="M19.07 4.93a10 10 0 0 0-16.28 11 1.06 1.06 0 0 1 .09.64L2 20.8a1 1 0 0 0 .27.91A1 1 0 0 0 3 22h.2l4.28-.86a1.26 1.26 0 0 1 .64.09 10 10 0 0 0 11-16.28zm.83 8.36a8 8 0 0 1-11 6.08 3.26 3.26 0 0 0-1.25-.26 3.43 3.43 0 0 0-.56.05l-2.82.57.57-2.82a3.09 3.09 0 0 0-.21-1.81 8 8 0 0 1 6.08-11 8 8 0 0 1 9.19 9.19z"/>
|
||||
<g>
|
||||
<circle cx="12" cy="12" r="1"/>
|
||||
<circle cx="16" cy="12" r="1"/>
|
||||
<circle cx="8" cy="12" r="1"/>
|
||||
<path d="M19.07 4.93a10 10 0 0 0-16.28 11 1.06 1.06 0 0 1 .09.64L2 20.8a1 1 0 0 0 .27.91A1 1 0 0 0 3 22h.2l4.28-.86a1.26 1.26 0 0 1 .64.09 10 10 0 0 0 11-16.28zm.83 8.36a8 8 0 0 1-11 6.08 3.26 3.26 0 0 0-1.25-.26 3.43 3.43 0 0 0-.56.05l-2.82.57.57-2.82a3.09 3.09 0 0 0-.21-1.81 8 8 0 0 1 6.08-11 8 8 0 0 1 9.19 9.19z"/>
|
||||
</g>
|
||||
</g>
|
||||
</g>
|
||||
</svg>
|
||||
</a>
|
||||
<div class="modal fade" id="feedbackModal" tabindex="-1" aria-labelledby="feedbackModalLabel" aria-hidden="true"
|
||||
data-bs-theme="dark">
|
||||
<div class="modal-dialog">
|
||||
<div class="modal-content">
|
||||
<div class="modal-header">
|
||||
<h5 class="modal-title" id="feedbackModalLabel" style="color: #fff;">Связаться с нами</h5>
|
||||
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Закрыть"></button>
|
||||
</div>
|
||||
<div class="modal-body">
|
||||
<form id="feedbackForm" novalidate>
|
||||
<div class="mb-3" id="messageBox"></div>
|
||||
<div class="mb-3">
|
||||
<label for="nameInput" class="form-label" style="color: #fff;">Ваше имя</label>
|
||||
<input type="text" class="form-control" id="nameInput" placeholder="Введите ваше имя">
|
||||
</div>
|
||||
<div class="mb-3">
|
||||
<label for="emailInput" class="form-label" style="color: #fff;">Email</label>
|
||||
<input type="email" class="form-control" id="emailInput" placeholder="Введите ваш email">
|
||||
</div>
|
||||
<div class="mb-3">
|
||||
<label for="orgInput" class="form-label" style="color: #fff;">Организация</label>
|
||||
<input type="text" class="form-control" id="orgInput"
|
||||
placeholder="Введите наименование организации">
|
||||
</div>
|
||||
<div class="mb-3">
|
||||
<label for="messageInput" class="form-label" style="color: #fff;">Сообщение</label>
|
||||
<textarea class="form-control" id="messageInput" rows="4"
|
||||
placeholder="Ваше сообщение"></textarea>
|
||||
</div>
|
||||
<div class="mb-3 d-flex gap-3">
|
||||
<input type="checkbox" class="form-check-input large" name="agree" id="agreeInput">
|
||||
<label for="agreeInput" style="color: #fff;"><a href="#" style="color: #ffff;">Согласие на
|
||||
обработку персональных данных</a></label>
|
||||
</div>
|
||||
<button type="submit" class="btn btn-lg w-100">Отправить</button>
|
||||
</form>
|
||||
</svg>
|
||||
</a>
|
||||
<div class="modal fade" id="feedbackModal" tabindex="-1" aria-labelledby="feedbackModalLabel" aria-hidden="true"
|
||||
data-bs-theme="dark">
|
||||
<div class="modal-dialog">
|
||||
<div class="modal-content">
|
||||
<div class="modal-header">
|
||||
<h5 class="modal-title" id="feedbackModalLabel" style="color: #fff;">Связаться с нами</h5>
|
||||
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Закрыть"></button>
|
||||
</div>
|
||||
<div class="modal-body">
|
||||
<form id="feedbackForm" novalidate>
|
||||
<div class="mb-3" id="messageBox"></div>
|
||||
<div class="mb-3">
|
||||
<label for="nameInput" class="form-label" style="color: #fff;">Ваше имя</label>
|
||||
<input type="text" class="form-control" id="nameInput" placeholder="Введите ваше имя">
|
||||
</div>
|
||||
<div class="mb-3">
|
||||
<label for="emailInput" class="form-label" style="color: #fff;">Email</label>
|
||||
<input type="email" class="form-control" id="emailInput"
|
||||
placeholder="Введите ваш email">
|
||||
</div>
|
||||
<div class="mb-3">
|
||||
<label for="orgInput" class="form-label" style="color: #fff;">Организация</label>
|
||||
<input type="text" class="form-control" id="orgInput"
|
||||
placeholder="Введите наименование организации">
|
||||
</div>
|
||||
<div class="mb-3">
|
||||
<label for="messageInput" class="form-label" style="color: #fff;">Сообщение</label>
|
||||
<textarea class="form-control" id="messageInput" rows="4"
|
||||
placeholder="Ваше сообщение"></textarea>
|
||||
</div>
|
||||
<div class="mb-3 d-flex gap-3">
|
||||
<input type="checkbox" class="form-check-input large" name="agree" id="agreeInput">
|
||||
<label for="agreeInput" style="color: #fff;"><a href="#" style="color: #ffff;">Согласие
|
||||
на
|
||||
обработку персональных данных</a></label>
|
||||
</div>
|
||||
<button type="submit" class="btn btn-lg w-100">Отправить</button>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{% endif %}
|
||||
|
||||
<script>
|
||||
function getCookie(name) {
|
||||
const value = `; ${document.cookie}`;
|
||||
@ -240,10 +255,38 @@
|
||||
}
|
||||
})
|
||||
</script>
|
||||
|
||||
|
||||
{% endblock %}
|
||||
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/js/bootstrap.bundle.min.js"></script>
|
||||
<script src="https://cdn.jsdelivr.net/npm/@popperjs/core@2.10.2/dist/umd/popper.min.js"></script>
|
||||
<script src="{% static_with_version 'cybercode/js/burger.js' %}"></script>
|
||||
{% block script %}{% endblock %}
|
||||
<script>
|
||||
function navigateToSlide(targetSlide) {
|
||||
const swiperContainer = document.querySelector('.swiper-container');
|
||||
// Если Swiper есть на странице
|
||||
if (swiperContainer && typeof Swiper !== 'undefined') {
|
||||
// Проверяем, инициализирован ли Swiper
|
||||
if (window.swiper) {
|
||||
window.swiper.slideTo(targetSlide, 800); // Плавный переход
|
||||
} else {
|
||||
console.error('Swiper не инициализирован.');
|
||||
}
|
||||
} else {
|
||||
console.error('Swiper .');
|
||||
|
||||
// Если Swiper отсутствует, сохраняем номер слайда и делаем редирект
|
||||
localStorage.setItem('targetSlide', targetSlide);
|
||||
window.location.href = '/'; // Замените на путь к вашей странице со Swiper
|
||||
}
|
||||
}
|
||||
|
||||
document.querySelector('#mainLink').addEventListener('click', () => navigateToSlide(0));
|
||||
document.querySelector('#projects').addEventListener('click', () => navigateToSlide(1));
|
||||
document.querySelector('#services').addEventListener('click', () => navigateToSlide(2));
|
||||
document.querySelector('#about').addEventListener('click', () => navigateToSlide(3));
|
||||
document.querySelector('#contacts').addEventListener('click', () => navigateToSlide(4));
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
@ -1,7 +1,11 @@
|
||||
{% extends 'base.html' %}
|
||||
{% load static_with_versioning %}
|
||||
{% block content %}
|
||||
|
||||
<style>
|
||||
body {
|
||||
overflow: hidden;
|
||||
}
|
||||
</style>
|
||||
<main>
|
||||
<!-- Swiper -->
|
||||
<div class="swiper-container">
|
||||
@ -30,7 +34,7 @@
|
||||
<h2 class="color-white text-align-center display-3 ">Наши проекты</h2>
|
||||
<div class="container">
|
||||
<!-- Горизонтальный Swiper внутри слайда -->
|
||||
<div class="swiper mySwiper">
|
||||
<div class="swiper innerSwiper">
|
||||
<div class="swiper-wrapper" id="projectsSlides">
|
||||
</div>
|
||||
<div class="swiper-pagination"></div>
|
||||
|
||||
@ -1,15 +1,14 @@
|
||||
{% extends 'base.html' %}
|
||||
{% load static_with_versioning %}
|
||||
|
||||
{% block main_link %}
|
||||
/
|
||||
{% endblock %}
|
||||
|
||||
{% block title %}
|
||||
<title>{{ project.name }}</title>
|
||||
{% endblock %}
|
||||
{% block content %}
|
||||
<div class="w-100vw h-100vh color-white"
|
||||
style="background-color: #000; background-image: url({% static_with_version 'cybercode/img/img_1.png' %});">
|
||||
|
||||
<div class="w-100vw min-h-100vh color-white"
|
||||
style="background-color: #000; background-image: url({% static_with_version 'cybercode/img/img_1.png' %}); background-repeat: repeat">
|
||||
<div style="backdrop-filter:brightness(80%);" class="h-100 w-100 m-0 p-0">
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
@ -17,10 +16,17 @@
|
||||
<div class="row p-2 rounded mb-4" style="background-color: rgba(0,0,0,0.5);">
|
||||
<div class="col-md-6 col-sm-12">
|
||||
<figure>
|
||||
<img src="{{ project.image.url }}" alt="Описание изображения" class="w-100">
|
||||
<img src="{{ project.image.url }}" alt="{{ project.image.name }}" class="w-100">
|
||||
</figure>
|
||||
</div>
|
||||
<div class="col-md-6 col-sm-12 d-flex flex-column justify-content-end">
|
||||
{% if project.tag_tree %}
|
||||
<figure class="w-100">
|
||||
<img src="{{ project.tag_tree.url }}" alt="{{ project.tag_tree.name }}"
|
||||
class="w-100">
|
||||
</figure>
|
||||
{% endif %}
|
||||
|
||||
<time datetime="{{ project.created_at|date:"Y-M-D" }}"
|
||||
class="mb-4">{{ project.created_at|date }}</time>
|
||||
<h2 class="mb-4">{{ project.name }}</h2>
|
||||
|
||||
@ -7,7 +7,7 @@
|
||||
<title>{{ service.name }}</title>
|
||||
{% endblock %}
|
||||
{% block content %}
|
||||
<div class="w-100vw h-100vh color-white"
|
||||
<div class="w-100vw min-h-100vh color-white"
|
||||
style="background-color: #000; background-image: url({% static_with_version 'cybercode/img/img_1.png' %});">
|
||||
<div style="backdrop-filter:brightness(80%);" class="h-100 w-100 m-0 p-0">
|
||||
<div class="container">
|
||||
|
||||
@ -7,6 +7,7 @@ class Project(models.Model):
|
||||
created_at = models.DateTimeField(auto_now_add=True)
|
||||
updated_at = models.DateTimeField(auto_now=True)
|
||||
image = models.ImageField(upload_to='images/project/')
|
||||
tag_tree = models.ImageField(upload_to='images/project/tag_trees/', blank=True, null=True)
|
||||
|
||||
def __str__(self):
|
||||
return self.name
|
||||
@ -7,6 +7,7 @@ class Service(models.Model):
|
||||
created_at = models.DateTimeField(auto_now_add=True)
|
||||
updated_at = models.DateTimeField(auto_now=True)
|
||||
image = models.ImageField(upload_to='images/service/')
|
||||
tag_tree = models.ImageField(upload_to='images/service/tag_trees/', blank=True, null=True)
|
||||
|
||||
def __str__(self):
|
||||
return self.name
|
||||
|
||||
@ -16,18 +16,21 @@ from website.telegram import send_message
|
||||
|
||||
|
||||
def index(request):
|
||||
is_prod = int(Settings.get_setting_or_default('prod', 0))
|
||||
is_feedback_working = int(Settings.get_setting_or_default('is_feedback_working', 0))
|
||||
return render(request, 'index.html', {'is_feedback_working': is_feedback_working})
|
||||
|
||||
|
||||
def get_project(request, pk):
|
||||
project = get_object_or_404(Project, id=pk)
|
||||
is_prod = int(Settings.get_setting_or_default('prod', 0))
|
||||
is_feedback_working = int(Settings.get_setting_or_default('is_feedback_working', 0))
|
||||
return render(request, 'project.html', {'project': project, 'is_feedback_working': is_feedback_working})
|
||||
|
||||
|
||||
def get_service(request, pk):
|
||||
service = get_object_or_404(Service, id=pk)
|
||||
is_prod = int(Settings.get_setting_or_default('prod', 0))
|
||||
is_feedback_working = int(Settings.get_setting_or_default('is_feedback_working', 0))
|
||||
return render(request, 'service.html', {'service': service, 'is_feedback_working': is_feedback_working})
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user