summaryrefslogtreecommitdiffstats
path: root/smarty/templates/rpmphp
diff options
context:
space:
mode:
Diffstat (limited to 'smarty/templates/rpmphp')
-rw-r--r--smarty/templates/rpmphp/index.tpl40
-rw-r--r--smarty/templates/rpmphp/main.tpl71
-rw-r--r--smarty/templates/rpmphp/zoom.tpl77
3 files changed, 188 insertions, 0 deletions
diff --git a/smarty/templates/rpmphp/index.tpl b/smarty/templates/rpmphp/index.tpl
new file mode 100644
index 0000000..df6cb52
--- /dev/null
+++ b/smarty/templates/rpmphp/index.tpl
@@ -0,0 +1,40 @@
+ <h2>Package reports</h2>
+ <ul id="reports">
+ <li><a href="rpm.php?type=pecl">PECL Extensions in Fedora</a> with upstream information</li>
+ <li><a href="rpm.php?type=pear">PEAR Extensions in Fedora</a> with upstream information</li>
+ <li><a href="rpm.php?type=R">R Extensions in Fedora</a> with upstream information</li>
+ <li><a href="all.php">All Packages in Fedora</a></li>
+ </ul><!-- /reports -->
+ <table id="list-packages">
+ <caption><strong>Analysed repositories</strong></caption>
+ <thead>
+ <tr>
+ <th>Main</th>
+ <th>Active</th>
+ <th>Sub</th>
+ <th>Url</th>
+ <th>Last update</th>
+ </tr>
+ </thead>
+ <tbody>
+{if $error}
+ <tr>
+ <td colspan="5">{$error}</td>
+ </tr>
+{else}
+ {foreach from=$repositories item=repo name=rlist}
+ <tr class="{if $smarty.foreach.rlist.iteration % 2 eq 0}even{else}odd{/if}">
+ <td><strong>{$repo.repo_name}</strong></td>
+ <td>{$repo.active}</td>
+ <td>{$repo.sub_name}</td>
+ <td><a href="{$repo.url}">{$repo.url}</a></td>
+ <td>{$repo.date}</td>
+ </tr>
+ {/foreach}
+{/if}
+ </tbody>
+ </table><!-- /list-pacakges -->
+ <h2>Script sources</h2>
+ <p>You can retrieve the current application sources from my GIT repository on github.com: <a href='http://github.com/remicollet/rpmphp'>http://github.com/remicollet/rpmphp</a>.</p>
+ <p>Feedbacks, RFE and patches are welcome.</p>
+
diff --git a/smarty/templates/rpmphp/main.tpl b/smarty/templates/rpmphp/main.tpl
new file mode 100644
index 0000000..6f12fdf
--- /dev/null
+++ b/smarty/templates/rpmphp/main.tpl
@@ -0,0 +1,71 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
+ <head>
+ <title>Packages in Fedora - {$page_title}</title>
+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
+ <link rel="stylesheet" type="text/css" media="screen" href="css/rpmphp.css"/>
+ <!--<link rel="stylesheet" type="text/css" media="print" href="css/rpmphp-print.css">-->
+ <script type="text/javascript" src="scripts/jquery-1.4.2.min.js"></script>
+ <script type="text/javascript" src="scripts/rpmphp.js"></script>
+{if $name}
+ <script type="text/javascript">
+ // <![CDATA[
+ $(function(){ldelim}
+ initZoomJS('{$name}');
+ {rdelim});
+ //]]>
+ </script>
+{/if}
+ <link rel="shortcut icon" href="images/favicon.ico"/>
+ <link rel="icon" href="images/favicon.ico"/>
+ </head>
+ <body>
+ <div id="wrapper">
+ <div id="header">
+ <h1>
+ <a href="http://fedoraproject.org"><img src="images/fedora-logo.png" alt="Fedora Project"/></a>
+ </h1>
+ <div id="headsearch">
+ <form action='zoom.php' method='get'>
+ <div>
+ <label for="rpm">Package&nbsp;: </label>
+ <input type="text" name="rpm" id="rpm" size="20" />
+ <input type="submit" value="Search" />
+ </div>
+ </form>
+ </div>
+ </div><!-- /header -->
+ <div id="fedora-content">
+ <div id="ariane">
+ <p>You are here: </p>
+ <ul>
+{foreach from=$ariane item=a}
+ <li><a href="{$a.url}">{$a.text}</a></li>
+{/foreach}
+ </ul>
+ </div><!-- /ariane -->
+{if $name_required and not $name}
+ <h1>Missing package name</h1>
+ <form action="?" method="get">
+ <p>You have not specified any package name.</p>
+ <p>
+ <label for="rpm">Please enter one package name: </label>
+ <input type="text" name="rpm" id="rpm"/>
+ <input type="submit"/>
+ </p>
+ </form>
+{else}
+ <h1>{$page_title}</h1>
+ {$page_content}
+{/if}
+ </div><!-- /fedora-content -->
+ <div id="footer">
+ <p class="disclaimer">The Fedora Project is maintained and driven by the community and sponsored by Red Hat. This is a community maintained site. Red Hat is not responsible for content.</p>
+ <ul>
+ <li><a href="http://fedoraproject.org/wiki/Legal:Main">Legal</a></li>
+ <li><a href="http://fedoraproject.org/wiki/Legal:Trademark_guidelines">Trademark Guidelines</a></li>
+ </ul>
+ </div><!-- /footer -->
+ </div><!-- /wrapper -->
+ </body>
+</html>
diff --git a/smarty/templates/rpmphp/zoom.tpl b/smarty/templates/rpmphp/zoom.tpl
new file mode 100644
index 0000000..e60161c
--- /dev/null
+++ b/smarty/templates/rpmphp/zoom.tpl
@@ -0,0 +1,77 @@
+{if $error}
+ {if $error eq 'missing_name'}
+ <h1>Missing package name</h1>
+ <form action="?" method="get">
+ <p>You have not specified any package name.</p>
+ <p><label for="rpm">Please enter one package name: </label><input type="text" name="rpm" id="rpm"/> <input type="submit"/></p>
+ </form>
+ {else}
+ <p id="error"><strong>Ooops, an error occured:</strong><br/>{$error}</p>
+ {/if}
+{/if}
+{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 name=plist}
+ <tr class="{if $smarty.foreach.plist.iteration % 2 eq 0}even{else}odd{/if}">
+ <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}