tiki-list_integrator_repositories.tpl 1.47 KB
Newer Older
1 2
{* $Id$ *}

3
{title}{tr}Available Repositories{/tr}{/title}
4

5
{if $tiki_p_admin eq 'y'}
6 7 8
	<div class="navbar">
		{button href="tiki-admin_integrator.php" _text="{tr}Configure Repositories{/tr}"}
	</div>
9
{/if}
10

zaufi's avatar
zaufi committed
11 12 13

{* Table with list of repositories (if array is not empty) *}
{if count($repositories) gt 0}
14 15
<table class="normal" id="integrator-repositories">
  <tr>
16 17
    <th>{tr}Name{/tr}</th>
    <th>{tr}Description{/tr}</th>
18 19 20
  </tr>
  {cycle values="odd,even" print=false}
  {section name=rep loop=$repositories}
21
    <tr class="{cycle}">
22
      <td class="text">
23 24 25 26
        <a href="tiki-integrator.php?repID={$repositories[rep].repID|escape}">
          {$repositories[rep].name}
        </a>
      </td>
27
      <td class="text">{$repositories[rep].description}</td>
28 29 30
    </tr>
  {/section}
</table>
zaufi's avatar
zaufi committed
31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46
{else}

{* Here should be panel (let it be style 'info-panel') with info
 * Smth like: "No configured/visible repositories...", but if
 * current user with tiki_p_admin it continue with "Ypu may setup
 * repositories on the following page (or by press button above :)"
 *
 * Moreover such 'info' panels can be everywhere :) -- at least at
 * wiki edit help and comments help ... let it be standart way to
 * display hints. :) -- not separate styles... to be personalized
 * (if smbd needs :) it can contain id attribute... i.e. smth like
 * <div class='info-panel' id='wiki-help'>...</div>
 * <div class='info-panel' id='comments-help'>...</div>
 * <div class='info-panel' id='integrator-no-reps'>...</div>
 *}

47
{/if}