|
1 | 1 | <div class="reloadable-table" table="<?= $table ?>" offset="<?= $reloadableTableOffset ?>"> |
2 | | - <h6>ADD</h6> |
3 | | - <p class="note">Add a new source repository manually or import from a predefined or custom list.</p> |
| 2 | + <?php |
| 3 | + if (!empty($reloadableTableContent)) : ?> |
| 4 | + <h6>ADD</h6> |
| 5 | + <p class="note">Import a predefined list or add a source repository manually.</p> |
4 | 6 |
|
5 | | - <div class="flex column-gap-10 margin-top-5 margin-bottom-30"> |
6 | | - <button type="button" class="btn-medium-blue get-panel-btn" panel="repos/sources/new">Manually add</button> |
7 | | - <button type="button" class="btn-medium-blue get-panel-btn" panel="repos/sources/import">Import</button> |
8 | | - </div> |
| 7 | + <div class="flex column-gap-10 margin-top-5 margin-bottom-30"> |
| 8 | + <button type="button" class="btn-medium-blue get-panel-btn" panel="repos/sources/import">Import</button> |
| 9 | + <button type="button" class="btn-medium-tr get-panel-btn" panel="repos/sources/new">Manually add</button> |
| 10 | + </div> |
| 11 | + <?php |
| 12 | + endif; ?> |
9 | 13 |
|
10 | | - <h6>CURRENT SOURCE REPOSITORIES</h6> |
11 | | - <p class="note">Source repositories to be mirrored.</p> |
| 14 | + <div class="flex justify-space-between align-flex-end margin-top-40 margin-bottom-15 margin-right-15"> |
| 15 | + <div> |
| 16 | + <h6 class="margin-top-0">CURRENT SOURCE REPOSITORIES</h6> |
| 17 | + <p class="note">Source repositories to be mirrored.</p> |
| 18 | + </div> |
12 | 19 |
|
13 | | - <?php |
14 | | - if (empty($reloadableTableContent)) { |
15 | | - echo '<div class="empty-state">'; |
16 | | - echo '<p class="empty-state-title">No source repository configured yet.</p>'; |
17 | | - echo '<p class="note">Import a predefined list to get started quickly, or add a custom source repository manually.</p>'; |
18 | | - echo '<div class="empty-state-actions">'; |
19 | | - echo '<button type="button" class="btn-medium-blue get-panel-btn" panel="repos/sources/import">Import</button>'; |
20 | | - echo '<button type="button" class="btn-medium-tr get-panel-btn" panel="repos/sources/new">Manually add</button>'; |
21 | | - echo '</div>'; |
22 | | - echo '</div>'; |
23 | | - } ?> |
| 20 | + <?php |
| 21 | + if (!empty($reloadableTableContent)) : ?> |
| 22 | + <input type="checkbox" class="select-all-checkbox lowopacity" checkbox-id="source-repo" title="Select all source repositories" /> |
| 23 | + <?php |
| 24 | + endif ?> |
| 25 | + </div> |
24 | 26 |
|
25 | 27 | <?php |
26 | | - if (!empty($reloadableTableContent)) : ?> |
27 | | - <div class="flex justify-end margin-bottom-10 margin-right-15"> |
28 | | - <input type="checkbox" class="select-all-checkbox lowopacity" checkbox-id="source-repo" title="Select all source repositories" /> |
| 28 | + if (empty($reloadableTableContent)) : ?> |
| 29 | + <div class="empty-state"> |
| 30 | + <p class="empty-state-title">No source repository configured yet.</p> |
| 31 | + <p class="note">Import a predefined list to get started quickly, or add a source repository manually.</p> |
| 32 | + <div class="empty-state-actions"> |
| 33 | + <button type="button" class="btn-medium-blue get-panel-btn" panel="repos/sources/import">Import</button> |
| 34 | + <button type="button" class="btn-medium-tr get-panel-btn" panel="repos/sources/new">Manually add</button> |
| 35 | + </div> |
29 | 36 | </div> |
30 | | - |
31 | 37 | <?php |
| 38 | + endif; |
| 39 | + |
| 40 | + if (!empty($reloadableTableContent)) : |
32 | 41 | foreach ($reloadableTableContent as $item) : |
33 | 42 | $distAndComponent = null; |
34 | 43 | $releasevers = null; |
|
0 commit comments