Commit graph

295 commits

Author SHA1 Message Date
Dan McGee
46f2798524 Use include_once where applicable
All of these are sourcing function libraries so we don't need to include
them more than once. Things that insert actual HTML into the output were
left calling include().

Signed-off-by: Dan McGee <dan@archlinux.org>
Signed-off-by: Loui Chang <louipc.ist@gmail.com>
2009-08-11 13:58:12 -04:00
Dan McGee
4af079a5bd rpc: small optimizations
Signed-off-by: Dan McGee <dan@archlinux.org>
Signed-off-by: Loui Chang <louipc.ist@gmail.com>
2009-08-11 13:58:11 -04:00
Loui Chang
57972532a7 Add voter list on packages for TUs and devs.
Signed-off-by: Loui Chang <louipc.ist@gmail.com>
2009-07-19 23:20:36 -04:00
Loui Chang
610733eafd Remove excess whitespace.
Signed-off-by: Loui Chang <louipc.ist@gmail.com>
2009-06-25 00:05:44 -04:00
Sergej Pupykin
ae3ee2472a submit button i18n
Signed-off-by: Loui Chang <louipc.ist@gmail.com>
2009-06-18 07:28:25 -04:00
Callan Barrett
d25c177229 Turn on package notification by default for new packages
Version using package functions

Signed-off-by: Callan Barrett <wizzomafizzo@gmail.com>
Signed-off-by: Loui Chang <louipc.ist@gmail.com>
2009-06-18 02:05:02 -04:00
Gergely Imreh
0427eebaa4 fix FS#13122 (again): removing comment removal as early as possible
comments need to be removed before concatenating lines, otherwise
not matched brackets can cause problems on submit

Signed-off-by: Gergely Imreh <imrehg@gmail.com>
Signed-off-by: Loui Chang <louipc.ist@gmail.com>
2009-06-18 01:54:44 -04:00
Dan McGee
55da4d4e0d Don't hit the database twice per comment on package
It's performance improvement day today. For non-superusers, we were hitting
the database twice per comment on a package- once to get the UID, and once
to check the owner of the comment. The best part is we already knew the
owner of the comment, and we only need to get our own UID once.

For viewing a package like yaourt, this cuts a single pageview from over 700
queries to around 18, which is still not great but a pretty big improvement.

Signed-off-by: Dan McGee <dan@archlinux.org>
Signed-off-by: Loui Chang <louipc.ist@gmail.com>
2009-04-13 10:07:46 -04:00
Loui Chang
74a75661d9 Tweak the bash parsing for package submission.
Better detection of the build function.
Better detection of variables.
Support for variables with underscores.

Signed-off-by: Loui Chang <louipc.ist@gmail.com>
2009-04-01 11:55:59 -04:00
Loui Chang
402c6d0933 Fix the comment poop bug.
Signed-off-by: Loui Chang <louipc.ist@gmail.com>
2009-02-20 20:59:07 -05:00
Loui Chang
24c9955b3c Revamp markup and styles for comments.
Make post date consistent with other dates.
Look Ma, no tables!

Signed-off-by: Loui Chang <louipc.ist@gmail.com>
2009-02-18 23:01:25 -05:00
Loui Chang
a054382476 Remove unused CSS styles.
Signed-off-by: Loui Chang <louipc.ist@gmail.com>
2009-02-18 17:29:17 -05:00
Gergely Imreh
f3a29356c5 Correct comment removal in pkgsubmit.php
This only neutralises bash parameter substitution, but doesn't perform
the proper replacement.

Closes FS#13122.

Signed-off-by: Loui Chang <louipc.ist@gmail.com>
2009-02-16 11:56:23 -05:00
Gergely Imreh
efc1713787 Fix: FS#13189, infinite variable replacement cycle
Lines such as foo=$foo in the PKGBUILD would end up in a
infinite replacement cycle when uploaded, thus the upload
times out. In these kind of lines, $foo is replaced not by
"$foo" again, but deleted (missing value for foo).

Signed-off-by: Loui Chang <louipc.ist@gmail.com>
2009-02-15 15:12:28 -05:00
Loui Chang
e83e593ac4 Change layout of tu_details.
Signed-off-by: Loui Chang <louipc.ist@gmail.com>
2009-02-13 15:31:05 -05:00
Angel 'angvp' Velasquez
df75621d23 List TUs that voted on a proposal.
This patch lists who voted on a proposal after the proposal is closed.

Signed-off-by: Loui Chang <louipc.ist@gmail.com>
2009-02-13 15:27:05 -05:00
Loui Chang
8d16f647f9 Clean up some markup and styles in page navigation.
Signed-off-by: Loui Chang <louipc.ist@gmail.com>
2009-02-06 18:24:04 -05:00
Callan Barrett
5702137e67 Change pagination style
Looks different now, next and previous on their own sides and elips for both

Signed-off-by: Callan Barrett <wizzomafizzo@gmail.com>
Signed-off-by: Loui Chang <louipc.ist@gmail.com>
2009-02-03 17:04:21 -05:00
Gergely Imreh
2568851eac FS#2649, FS#12645: subsititution of all variables and "eval"
All custom variables are handled during subsitution, as well as
bash "eval" statements.

Signed-off-by: Loui Chang <louipc.ist@gmail.com>
2009-01-28 03:26:23 -05:00
Loui Chang
5b4e63c57f Remove huge margins from main content.
This helps improve the use of space.

Signed-off-by: Loui Chang <louipc.ist@gmail.com>
2009-01-25 13:25:23 -05:00
Loui Chang
354c86b6c6 Move package comment form into a new template.
Feature the form on the package details page.

Signed-off-by: Loui Chang <louipc.ist@gmail.com>
2009-01-25 13:17:54 -05:00
Loui Chang
bdd03d820e Remove obsolete padding images.
Signed-off-by: Loui Chang <louipc.ist@gmail.com>
2009-01-24 01:23:35 -05:00
Loui Chang
b31b4ec03e Add package details template (pkg_details.php)
Signed-off-by: Loui Chang <louipc.ist@gmail.com>
2009-01-24 01:22:19 -05:00
Loui Chang
46da96ff04 Bring version footer in with the rest of the site body.
Add a bottom margin to pgbox blocks.

Signed-off-by: Loui Chang <louipc.ist@gmail.com>
2009-01-23 15:05:46 -05:00
Loui Chang
96ff5583f6 Tweak comment notify mail.
Signed-off-by: Loui Chang <louipc.ist@gmail.com>
2009-01-23 00:27:59 -05:00
Loui Chang
1bccb1ad7f Remove .htaccess file from source tree.
Signed-off-by: Loui Chang <louipc.ist@gmail.com>
2009-01-22 20:04:52 -05:00
Loui Chang
2ee3276348 Use new conglomerated translation files.
Signed-off-by: Loui Chang <louipc.ist@gmail.com>
2009-01-19 16:29:45 -05:00
Loui Chang
844de1f25b Replace RSS icon with feed icon.
Signed-off-by: Loui Chang <louipc.ist@gmail.com>
2009-01-14 22:09:26 -05:00
Gergely Imreh
5b01327f57 Fix: FS#12698 - AUR does not ignore comment lines in PKGBUILD source field.
The web interface was handling comments in the PKGBUILD variable fields
(such as 'source','depends',etc...) differently from makepkg, because
makepkg ignores the rest of the current line if there is a # character,
while the web interface parsed that as well, and listed the words of the
comment as source files.

Signed-off-by: Loui Chang <louipc.ist@gmail.com>
2009-01-14 21:52:37 -05:00
Loui Chang
92643bb827 Don't require source or md5sum arrays in PKGBUILDs.
Also fix a translation string.

Signed-off-by: Loui Chang <louipc.ist@gmail.com>
2009-01-08 11:47:49 -05:00
Loui Chang
6e1de70596 Change font to a generic type.
This makes the site look better in Opera.

Signed-off-by: Loui Chang <louipc.ist@gmail.com>
2009-01-05 17:28:45 -05:00
Loui Chang
07e4d397ba Change layout of search form.
Signed-off-by: Loui Chang <louipc.ist@gmail.com>
2009-01-05 16:52:34 -05:00
Dan McGee
207b565f1c Minimize calls to uid_from_sid()
Just like the previous patch for account_from_sid() over-usage.

Signed-off-by: Dan McGee <dan@archlinux.org>
Signed-off-by: Loui Chang <louipc.ist@gmail.com>
2009-01-04 14:28:24 -05:00
Loui Chang
35cff75156 Correct undefined constant error in pkgsubmit.
Clean up a couple of notices.

Signed-off-by: Loui Chang <louipc.ist@gmail.com>
2008-12-29 17:44:57 -05:00
Callan Barrett
d62baaecf0 Add search bar to index and pkg details pages
Also changed it around a little bit so it's not tied down the search results function

Signed-off-by: Callan Barrett <wizzomafizzo@gmail.com>
Signed-off-by: Loui Chang <louipc.ist@gmail.com>
2008-12-29 17:31:55 -05:00
Callan Barrett
3288805d2d New search bar, toggle advanced options new style
Signed-off-by: Callan Barrett <wizzomafizzo@gmail.com>
Signed-off-by: Loui Chang <louipc.ist@gmail.com>
2008-12-29 17:30:12 -05:00
Loui Chang
22b50800e8 Make some translatable strings friendlier to common usage.
Removing trailing colons and whitespace makes them more usable.

Signed-off-by: Loui Chang <louipc.ist@gmail.com>
Signed-off-by: Callan Barrett <wizzomafizzo@gmail.com>
2008-12-22 13:29:46 +09:00
Loui Chang
0793eca14f Modify and fix typos in comment notification email.
Signed-off-by: Loui Chang <louipc.ist@gmail.com>
Signed-off-by: Callan Barrett <wizzomafizzo@gmail.com>
2008-12-22 13:20:40 +09:00
Loui Chang
ae1c424c95 Really make all web paths relative.
I forgot about the forms.

Signed-off-by: Loui Chang <louipc.ist@gmail.com>
Signed-off-by: Callan Barrett <wizzomafizzo@gmail.com>
2008-12-22 13:19:56 +09:00
Loui Chang
78c2b5c67f Introduce function include_lang for translations.
This includes only the requested language for each page and
makes top level language include files obsolete.

Signed-off-by: Loui Chang <louipc.ist@gmail.com>
2008-12-21 18:03:27 +09:00
Loui Chang
cfeb080dcd Make all web paths relative.
The site no longer needs to be hosted from the
root of a domain, or virtual host.

Signed-off-by: Loui Chang <louipc.ist@gmail.com>
Signed-off-by: Callan Barrett <wizzomafizzo@gmail.com>
2008-12-21 15:24:57 +09:00
Callan Barrett
e12a8ad3da Remove success messages after package functions
Just displays message at the top of the page of what happened (errors or not) and goes back to the same page

Signed-off-by: Callan Barrett <wizzomafizzo@gmail.com>
Signed-off-by: Loui Chang <louipc.ist@gmail.com>
2008-12-20 18:33:45 -05:00
Callan Barrett
cde524e175 Change behaviour of package functions to accept normal arrays
Package functions use a normal array of pkgids now and packages.php has been changed to accomodate for it

Signed-off-by: Callan Barrett <wizzomafizzo@gmail.com>
Signed-off-by: Loui Chang <louipc.ist@gmail.com>
2008-12-20 16:58:30 -05:00
Evangelos Foutras
fb1c41c6c6 Fix PKGBUILD source array parsing.
Fix for FS#11132 - AUR fails to parse multiline source array

Signed-off-by: Evangelos Foutras <foutrelis@gmail.com>
Signed-off-by: Loui Chang <louipc.ist@gmail.com>
2008-12-20 13:25:44 -05:00
Callan Barrett
07a27f2f1d Add error checking to chmod on package submission
Try submitting an empty form to the aur

Signed-off-by: Callan Barrett <wizzomafizzo@gmail.com>
Signed-off-by: Loui Chang <louipc.ist@gmail.com>
2008-12-20 13:02:24 -05:00
Loui Chang
f2b1d0a9a2 Remove obsolete timeout page.
Signed-off-by: Loui Chang <louipc.ist@gmail.com>
2008-12-17 13:22:38 -05:00
Loui Chang
73cd7667d4 Remove obsolete 'hacker' page.
Signed-off-by: Loui Chang <louipc.ist@gmail.com>
2008-12-17 13:15:21 -05:00
Loui Chang
25e9bb1698 Reword the disclaimer in index.php.
Signed-off-by: Loui Chang <louipc.ist@gmail.com>
2008-12-17 12:58:16 -05:00
Loui Chang
692cc1e953 Make remembered sessions actually save themselves.
Also clean up a notice in index.php

Signed-off-by: Loui Chang <louipc.ist@gmail.com>
2008-11-25 01:31:08 -05:00
Callan Barrett
ac8b080e43 Clean up packages.php and document new package functions
Signed-off-by: Callan Barrett <wizzomafizzo@gmail.com>
Signed-off-by: Loui Chang <louipc.ist@gmail.com>
2008-11-23 13:23:33 -05:00