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/templates/rpmphp/main.tpl | 71 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 71 insertions(+) create mode 100644 smarty/templates/rpmphp/main.tpl (limited to 'smarty/templates/rpmphp/main.tpl') 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} +
+ +
+ + -- cgit From 4fded33567be2378d9ed9ac3e9265fa377b0d4eb Mon Sep 17 00:00:00 2001 From: "Johan \"Papa\" Cwiklinski" Date: Sat, 29 May 2010 22:41:03 +0200 Subject: A flag to know if we're from a page that require a name ; refs #47 --- smarty/templates/rpmphp/main.tpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'smarty/templates/rpmphp/main.tpl') diff --git a/smarty/templates/rpmphp/main.tpl b/smarty/templates/rpmphp/main.tpl index 7456773..6f12fdf 100644 --- a/smarty/templates/rpmphp/main.tpl +++ b/smarty/templates/rpmphp/main.tpl @@ -44,7 +44,7 @@ {/foreach} -{if not $name} +{if $name_required and not $name}

Missing package name

You have not specified any package name.

-- cgit