summaryrefslogtreecommitdiffstats
path: root/smarty/templates/rpmphp/zoom.tpl
diff options
context:
space:
mode:
authorJohan "Papa" Cwiklinski <trasher@odysseus.(none)>2010-05-29 20:57:24 +0200
committerJohan "Papa" Cwiklinski <trasher@odysseus.(none)>2010-05-29 20:57:24 +0200
commit5fdb1c3cf92ffd73a01ecc82ca91112aa17da350 (patch)
tree7a4298d993cc56c4dfadfba83fc2693c64bc0156 /smarty/templates/rpmphp/zoom.tpl
parente2a411835dfeb4c18f59cec9a2e483b3ebf394fc (diff)
Use of smarty to render zoom page. Main template file added, and zoom.php modified to work on it. We would probably rewrite cleaner zoom.php in the future. refs #47
Diffstat (limited to 'smarty/templates/rpmphp/zoom.tpl')
-rw-r--r--smarty/templates/rpmphp/zoom.tpl66
1 files changed, 66 insertions, 0 deletions
diff --git a/smarty/templates/rpmphp/zoom.tpl b/smarty/templates/rpmphp/zoom.tpl
new file mode 100644
index 0000000..898ddce
--- /dev/null
+++ b/smarty/templates/rpmphp/zoom.tpl
@@ -0,0 +1,66 @@
+{if $pkgdb}
+ <p id="pkgdb-link"><a href="?rpm={$name}">Hide pkgdb informations</a></p>
+{else}
+ <p id="pkgdb-link"><a href="?rpm={$name}&amp;pkgdb=1">Show more informations from pkgdb</a></p>
+{/if}
+ <table id="upstream">
+ <caption>Upstream info</caption>
+{foreach from=$summary key=k item=v}
+ <tr>
+ <th>{$k}:</th>
+ <td{if $k eq 'Description'} id="{$name}_desc"{/if}>
+ {if $k eq 'URL' or $k eq 'ViewVC'}
+ <a href="{$v}">{$v}</a>
+ {else}
+ {$v}
+ {/if}
+ </td>
+ </tr>
+{/foreach}
+ </table>
+{if is_array($packages) and count($packages) > 0}
+ <table id="list-packages">
+ <caption>Packages available in Fedora Repositories</caption>
+ <thead>
+ <tr>
+ <th>Branch</th>
+ <th>Repository</th>
+ <th>Version-Release</th>
+ <th>Owner</th>
+ <th>Co-maintainers</th>
+ </tr>
+ </thead>
+ <tbody>
+ {assign var='prev' value=''}
+ {foreach from=$packages item=p}
+ <tr>
+ <td>{if $p->repo_main neq $prev}<strong>{$p->repo_main}</strong>{/if}</td>
+ <td>{$p->repo_sub}</td>
+ <td>
+ {if $p->epoch}{$p->epoch}:{/if}
+ {$p->ver}-{$p->rel}
+ </td>
+ <td{if $p->repo_main neq $prev} id="pkgdb_{$p->repo_main}_owner"{/if}>
+ {if $p->repo_main neq $prev}
+ {if $fedpkg}
+ {getBranchPeople branch=$p->repo_main people='owner'}
+ {else}
+ {$ajax_infos}
+ {/if}
+ {/if}
+ </td>
+ <td{if $p->repo_main neq $prev} id="pkgdb_{$p->repo_main}_maintainers"{/if}>
+ {if $p->repo_main neq $prev}
+ {if $fedpkg}
+ {getBranchPeople branch=$p->repo_main people='people'}
+ {else}
+ {$ajax_infos}
+ {/if}
+ {/if}
+ </td>
+ </tr>
+ {assign var='prev' value=$p->repo_main}
+ {/foreach}
+ </tbody>
+ </table>
+{/if}