multi user ready

This commit is contained in:
Ivan I. Ovchinnikov
2026-03-17 22:03:13 +03:00
parent db6a12bb5f
commit f0fdba0ff6
6 changed files with 763 additions and 48 deletions
+31 -2
View File
@@ -13,6 +13,12 @@
}
.container { max-width: 1400px; margin: 0 auto; }
h1 { color: #333; margin-bottom: 20px; }
.header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 20px;
}
.controls {
background: white;
padding: 20px;
@@ -36,6 +42,8 @@
.btn:disabled { background: #ccc; cursor: not-allowed; }
.btn-bitrix { background: #00aeef; }
.btn-bitrix:hover { background: #008cc7; }
.btn-settings { background: #6c757d; }
.btn-settings:hover { background: #545b62; }
table {
width: 100%;
background: white;
@@ -83,14 +91,35 @@
text-overflow: ellipsis;
white-space: nowrap;
}
.setup-notice {
background: #fff3e0;
border-left: 4px solid #f57c00;
padding: 16px;
margin-bottom: 20px;
border-radius: 0 8px 8px 0;
}
.setup-notice a { color: #e65100; font-weight: 600; }
</style>
</head>
<body>
<div class="container">
<h1>🔗 Bitmine — Агрегатор задач</h1>
<div class="header">
<h1>🔗 Bitmine — Агрегатор задач</h1>
<a href="/settings" class="btn btn-settings">⚙️ Настройки</a>
</div>
{% if !has_settings %}
<div class="setup-notice">
⚠️ <strong>Требуется настройка!</strong>
Сначала укажите данные для подключения к Redmine в разделе
<a href="/settings">Настройки</a>.
</div>
{% endif %}
<div class="controls">
<a href="/api/redmine/tasks" class="btn">📋 Получить задачи из Redmine</a>
<a href="/api/redmine/tasks" class="btn {% if !has_settings %}btn-disabled{% endif %}">
📋 Получить задачи из Redmine
</a>
<button class="btn btn-bitrix" disabled>📌 Получить задачи из Bitrix24</button>
</div>