From 5fdb1c3cf92ffd73a01ecc82ca91112aa17da350 Mon Sep 17 00:00:00 2001 From: "Johan \"Papa\" Cwiklinski" Date: Sat, 29 May 2010 20:57:24 +0200 Subject: 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 --- smarty/cache/remove.txt | 0 smarty/templates/rpmphp/main.tpl | 71 ++++++++++++++++++++++++++++++++++++++++ smarty/templates/rpmphp/zoom.tpl | 66 +++++++++++++++++++++++++++++++++++++ smarty/templates_c/remove.txt | 0 4 files changed, 137 insertions(+) create mode 100644 smarty/cache/remove.txt create mode 100644 smarty/templates/rpmphp/main.tpl create mode 100644 smarty/templates/rpmphp/zoom.tpl create mode 100644 smarty/templates_c/remove.txt (limited to 'smarty') diff --git a/smarty/cache/remove.txt b/smarty/cache/remove.txt new file mode 100644 index 0000000..e69de29 diff --git a/smarty/templates/rpmphp/main.tpl b/smarty/templates/rpmphp/main.tpl new file mode 100644 index 0000000..7456773 --- /dev/null +++ b/smarty/templates/rpmphp/main.tpl @@ -0,0 +1,71 @@ + + + + Packages in Fedora - {$page_title} + + + + + +{if $name} + +{/if} + + + + +
+ +
+
+

You are here:

+
    +{foreach from=$ariane item=a} +
  • {$a.text}
  • +{/foreach} +
+
+{if not $name} +

Missing package name

+
+

You have not specified any package name.

+

+ + + +

+
+{else} +

{$page_title}

+ {$page_content} +{/if} +
+ +
+ + 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} + +{else} + +{/if} + + +{foreach from=$summary key=k item=v} + + + + {if $k eq 'URL' or $k eq 'ViewVC'} + {$v} + {else} + {$v} + {/if} + + +{/foreach} +
Upstream info
{$k}:
+{if is_array($packages) and count($packages) > 0} + + + + + + + + + + + + + {assign var='prev' value=''} + {foreach from=$packages item=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} + + 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} + + + {assign var='prev' value=$p->repo_main} + {/foreach} + +
Packages available in Fedora Repositories
BranchRepositoryVersion-ReleaseOwnerCo-maintainers
{if $p->repo_main neq $prev}{$p->repo_main}{/if}{$p->repo_sub} + {if $p->epoch}{$p->epoch}:{/if} + {$p->ver}-{$p->rel} +
+{/if} diff --git a/smarty/templates_c/remove.txt b/smarty/templates_c/remove.txt new file mode 100644 index 0000000..e69de29 -- cgit