Deploy on 2026-06-05 17:47:27
This commit is contained in:
@@ -1,9 +1,9 @@
|
||||
<div class="page-header">
|
||||
<div>
|
||||
<h1>Data Sources</h1>
|
||||
<p>Manage RSS feeds and API sources for data collection</p>
|
||||
<h1>مصادر البيانات</h1>
|
||||
<p>إدارة خلاصات RSS ومصادر واجهة برمجة التطبيقات (API) لجمع البيانات</p>
|
||||
</div>
|
||||
<a href="/admin/sources/create" class="btn btn-primary">+ Add Source</a>
|
||||
<a href="/admin/sources/create" class="btn btn-primary">+ إضافة مصدر</a>
|
||||
</div>
|
||||
|
||||
<?php if ($flashSuccess = $this->session->getFlash('success')): ?>
|
||||
@@ -17,16 +17,16 @@
|
||||
<table class="data-table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Name</th>
|
||||
<th>URL</th>
|
||||
<th>Type</th>
|
||||
<th>Status</th>
|
||||
<th>Actions</th>
|
||||
<th>الاسم</th>
|
||||
<th>الرابط</th>
|
||||
<th>النوع</th>
|
||||
<th>الحالة</th>
|
||||
<th>إجراءات</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php if (empty($sources)): ?>
|
||||
<tr><td colspan="5" style="text-align: center; padding: 40px; color: var(--text-muted);">No data sources configured.</td></tr>
|
||||
<tr><td colspan="5" style="text-align: center; padding: 40px; color: var(--text-muted);">لا توجد مصادر بيانات مهيأة.</td></tr>
|
||||
<?php else: ?>
|
||||
<?php foreach ($sources as $source): ?>
|
||||
<tr>
|
||||
@@ -35,11 +35,11 @@
|
||||
<a href="<?= $this->escape($source['url']) ?>" target="_blank" style="font-size: 0.85rem;"><?= $this->escape($source['url']) ?></a>
|
||||
</td>
|
||||
<td><span class="badge badge-source-<?= $source['type'] ?>"><?= $this->escape($source['type']) ?></span></td>
|
||||
<td><span class="badge <?= $source['status'] === 'active' ? 'badge-active' : 'badge-inactive' ?>"><?= $this->escape($source['status']) ?></span></td>
|
||||
<td><span class="badge <?= $source['status'] === 'active' ? 'badge-active' : 'badge-inactive' ?>"><?= $source['status'] === 'active' ? 'نشط' : 'غير نشط' ?></span></td>
|
||||
<td>
|
||||
<a href="/admin/sources/<?= $source['id'] ?>/run" class="btn btn-sm btn-primary" onclick="return confirm('Run collector on this source?')">Run</a>
|
||||
<a href="/admin/sources/<?= $source['id'] ?>/edit" class="btn btn-sm btn-secondary">Edit</a>
|
||||
<a href="/admin/sources/<?= $source['id'] ?>/delete" class="btn btn-sm btn-secondary" onclick="return confirm('Delete this source?')">Delete</a>
|
||||
<a href="/admin/sources/<?= $source['id'] ?>/run" class="btn btn-sm btn-primary" onclick="return confirm('هل تريد تشغيل جامع البيانات على هذا المصدر؟')">تشغيل</a>
|
||||
<a href="/admin/sources/<?= $source['id'] ?>/edit" class="btn btn-sm btn-secondary">تعديل</a>
|
||||
<a href="/admin/sources/<?= $source['id'] ?>/delete" class="btn btn-sm btn-secondary" onclick="return confirm('هل أنت متأكد من حذف هذا المصدر؟')">حذف</a>
|
||||
</td>
|
||||
</tr>
|
||||
<?php endforeach; ?>
|
||||
|
||||
Reference in New Issue
Block a user