Make "Learn more..." translatable
[aur.git] / web / html / home.php
blob6b54af3a96ee5cea3855b9efbe8c49aca96b9c93
1 <?php
3 set_include_path(get_include_path() . PATH_SEPARATOR . '../lib');
5 include_once("aur.inc.php");
6 set_lang();
7 check_sid();
9 include_once('stats.inc.php');
11 html_header( __("Home") );
15 <div id="content-left-wrapper">
16 <div id="content-left">
17 <div id="intro" class="box">
18 <h2>AUR <?= __("Home"); ?></h2>
19 <p>
20 <?php
21 echo __(
22 'Welcome to the AUR! Please read the %sAUR User Guidelines%s and %sAUR TU Guidelines%s for more information.',
23 '<a href="https://wiki.archlinux.org/index.php/AUR_User_Guidelines">',
24 '</a>',
25 '<a href="https://wiki.archlinux.org/index.php/AUR_Trusted_User_Guidelines">',
26 '</a>'
29 <?php
30 echo __(
31 'Contributed PKGBUILDs %smust%s conform to the %sArch Packaging Standards%s otherwise they will be deleted!',
32 '<strong>', '</strong>',
33 '<a href="https://wiki.archlinux.org/index.php/Arch_Packaging_Standards">',
34 '</a>'
37 <?= __('Remember to vote for your favourite packages!'); ?>
38 <?= __('Some packages may be provided as binaries in [community].'); ?>
39 </p>
40 <p class="important">
41 <?= __('DISCLAIMER') ?>:
42 <?= __('Unsupported packages are user produced content. Any use of the provided files is at your own risk.'); ?>
43 </p>
44 <p class="readmore"><a href="https://wiki.archlinux.org/index.php/AUR"><?= __('Learn more...') ?></a></p>
45 </div>
46 <div id="news">
47 <h3><a><?= __('Support') ?></a><span class="arrow"></span></h3>
48 <h4><?= __('Package Requests') ?></h4>
49 <div class="article-content">
50 <p>
51 <?php
52 echo __(
53 'There are three types of requests that can be filed in the %sPackage Actions%s box on the package details page:',
54 '<var>',
55 '</var>'
58 </p>
59 <ul>
60 <li><em><?= __('Orphan Request') ?></em>: <?= __('Request a package to be disowned, e.g. when the maintainer is inactive and the package has been flagged out-of-date for a long time.') ?></li>
61 <li><em><?= __('Deletion Request') ?></em>: <?= __('Request a package to be removed from the Arch User Repository. Please do not use this if a package is broken and can be fixed easily. Instead, contact the package maintainer and file orphan request if necessary.') ?></li>
62 <li><em><?= __('Merge Request') ?></em>: <?= __('Request a package to be merged into another one. Can be used when a package needs to be renamed or replaced by a split package.') ?></li>
63 </ul>
64 <p>
65 <?php
66 echo __(
67 'If you want to discuss a request, you can use the %saur-requests%s mailing list. However, please do not use that list to file requests.',
68 '<a href="https://mailman.archlinux.org/mailman/listinfo/aur-requests">',
69 '</a>'
72 </p>
73 </div>
74 <h4><?= __('Discussion') ?></h4>
75 <div class="article-content">
76 <p>
77 <?php
78 echo __(
79 'General discussion regarding the Arch User Repository (AUR) and Trusted User structure takes place on %saur-general%s. For discussion relating to the development of the AUR web interface, use the %saur-dev%s mailing list.',
80 '<a href="https://mailman.archlinux.org/mailman/listinfo/aur-general">',
81 '</a>',
82 '<a href="https://mailman.archlinux.org/mailman/listinfo/aur-dev">',
83 '</a>'
86 </p>
87 </div>
88 <h4><?= __('Bug Reporting') ?></h4>
89 <div class="article-content">
90 <p>
91 <?php
92 echo __(
93 'If you find a bug in the AUR web interface, please fill out a bug report on our %sbug tracker%s. Use the tracker to report bugs in the AUR %sonly%s. To report packaging bugs contact the package maintainer or leave a comment on the appropriate package page.',
94 '<a href="https://bugs.archlinux.org/index.php?project=2">',
95 '</a>',
96 '<strong>',
97 '</strong>'
100 </p>
101 </div>
102 </div>
103 </div>
104 </div>
105 <div id="content-right">
106 <div id="pkgsearch" class="widget">
107 <form id="pkgsearch-form" method="get" action="<?= get_uri('/packages/'); ?>">
108 <fieldset>
109 <label for="pkgsearch-field"><?= __('Package Search') ?>:</label>
110 <input type="hidden" name="O" value="0" />
111 <input id="pkgsearch-field" type="text" name="K" size="30" value="<?php if (isset($_REQUEST["K"])) { print stripslashes(trim(htmlspecialchars($_REQUEST["K"], ENT_QUOTES))); } ?>" maxlength="35" />
112 </fieldset>
113 </form>
114 </div>
115 <div id="pkg-updates" class="widget box">
116 <?php updates_table(); ?>
117 </div>
118 <div id="pkg-stats" class="widget box">
119 <?php general_stats_table(); ?>
120 </div>
121 <?php if (!empty($_COOKIE["AURSID"])): ?>
122 <div id="pkg-stats" class="widget box">
123 <?php user_table(uid_from_sid($_COOKIE["AURSID"])); ?>
124 </div>
125 <?php endif; ?>
127 </div>
128 <script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.min.js"></script>
129 <script type="text/javascript" src="/js/bootstrap-typeahead.min.js"></script>
130 <script type="text/javascript">
131 $(document).ready(function() {
132 $('#pkgsearch-field').typeahead({
133 source: function(query, callback) {
134 $.getJSON('<?= get_uri('/rpc'); ?>', {type: "suggest", arg: query}, function(data) {
135 callback(data);
138 matcher: function(item) { return true; },
139 sorter: function(items) { return items; },
140 menu: '<ul class="pkgsearch-typeahead"></ul>',
141 items: 20,
142 updater: function(item) {
143 document.location = '/packages/' + item;
144 return item;
146 }).attr('autocomplete', 'off');
148 $('#pkgsearch-field').keydown(function(e) {
149 if (e.keyCode == 13) {
150 var selectedItem = $('ul.pkgsearch-typeahead li.active');
151 if (selectedItem.length == 0) {
152 $('#pkgsearch-form').submit();
157 </script>
158 <?php
159 html_footer(AURWEB_VERSION);