summaryrefslogtreecommitdiff
path: root/web/template
AgeCommit message (Collapse)Author
2009-06-18Advanced button i18nSergej Pupykin
Signed-off-by: Sergej Pupykin <sergej.pupykin@lx-ltd.ru> Signed-off-by: Loui Chang <louipc.ist@gmail.com>
2009-04-13Don't hit the database twice per comment on packageDan McGee
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-03-03Fix search output if no results are found.Loui Chang
Signed-off-by: Loui Chang <louipc.ist@gmail.com>
2009-03-03Redirect to REQUEST_URI after logging in.Loui Chang
This closes FS#13017 Signed-off-by: Loui Chang <louipc.ist@gmail.com>
2009-03-02Fix user stats table links.Loui Chang
Signed-off-by: Loui Chang <louipc.ist@gmail.com>
2009-03-02added links at My Statistic valuesAndrea Scarpino
Signed-off-by: Loui Chang <louipc.ist@gmail.com>
2009-02-18Revamp markup and styles for comments.Loui Chang
Make post date consistent with other dates. Look Ma, no tables! Signed-off-by: Loui Chang <louipc.ist@gmail.com>
2009-02-18XHTML Validation fixes.Loui Chang
Signed-off-by: Loui Chang <louipc.ist@gmail.com>
2009-02-18Add 'Out of Date' detail in search formAndrea Scarpino
Signed-off-by: Loui Chang <louipc.ist@gmail.com>
2009-02-13Change layout of tu_details.Loui Chang
Signed-off-by: Loui Chang <louipc.ist@gmail.com>
2009-02-13List TUs that voted on a proposal.Angel 'angvp' Velasquez
This patch lists who voted on a proposal after the proposal is closed. Signed-off-by: Loui Chang <louipc.ist@gmail.com>
2009-02-13Fix Sources listing in package details.Loui Chang
Signed-off-by: Loui Chang <louipc.ist@gmail.com>
2009-02-09xhtml validation fix.Loui Chang
2009-02-06Clean up some markup and styles in page navigation.Loui Chang
Signed-off-by: Loui Chang <louipc.ist@gmail.com>
2009-02-03Change pagination styleCallan Barrett
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-01-28Add support for filename::url syntax for sources.Loui Chang
Signed-off-by: Loui Chang <louipc.ist@gmail.com>
2009-01-25Move package comment form into a new template.Loui Chang
Feature the form on the package details page. Signed-off-by: Loui Chang <louipc.ist@gmail.com>
2009-01-24Indicate when there are more search result pages than numbered links show.Loui Chang
Signed-off-by: Loui Chang <louipc.ist@gmail.com>
2009-01-24Validation fixes.Loui Chang
Signed-off-by: Loui Chang <louipc.ist@gmail.com>
2009-01-24Add package details template (pkg_details.php)Loui Chang
Signed-off-by: Loui Chang <louipc.ist@gmail.com>
2009-01-24Rework login form.Loui Chang
Correct some xhtml validation errors. Correct translation usage. Signed-off-by: Loui Chang <louipc.ist@gmail.com>
2009-01-23Move actions form into template.Loui Chang
Signed-off-by: Loui Chang <louipc.ist@gmail.com>
2009-01-23Fix a few xhtml validation errors.Loui Chang
Signed-off-by: Loui Chang <louipc.ist@gmail.com>
2009-01-23Bring version footer in with the rest of the site body.Loui Chang
Add a bottom margin to pgbox blocks. Signed-off-by: Loui Chang <louipc.ist@gmail.com>
2009-01-23Add Previous and Next links for search results.Loui Chang
Move things around at the bottom of the search results page. Signed-off-by: Loui Chang <louipc.ist@gmail.com>
2009-01-23Remove urlencode('K') in pkg_search_results.Loui Chang
The urlencoded string should only be used for href, but it was being applied and used in printed output, like the keywords textbox. This fixes a problem that was reported in FS#12791 - Faster navigation withing package search listing by page numbers Signed-off-by: Loui Chang <louipc.ist@gmail.com>
2009-01-22Change comment style so long lines wrap.Loui Chang
Signed-off-by: Loui Chang <louipc.ist@gmail.com>
2009-01-22Fix translated comment messages.Loui Chang
Signed-off-by: Loui Chang <louipc.ist@gmail.com>
2009-01-22Only print links for up to five previous and next search results pages.Loui Chang
Signed-off-by: Loui Chang <louipc.ist@gmail.com>
2009-01-19Use new conglomerated translation files.Loui Chang
Signed-off-by: Loui Chang <louipc.ist@gmail.com>
2009-01-19Remove Less and More links from search results page.Loui Chang
Don't show extra search results link if there is only one page of results. Fix indenting and coding style. Signed-off-by: Loui Chang <louipc.ist@gmail.com>
2009-01-19Change: Switching "Legend" and number of results on search pageGergely Imreh
This is to present things in a bit more logical manner with the search results page navigation. Signed-off-by: Loui Chang <louipc.ist@gmail.com>
2009-01-19Add: page numbering of AUR search resultsGergely Imreh
On the search results page the number of pages is displayed and functions as a link, for faster navigation (not just the usual "Less/More" buttons. Signed-off-by: Loui Chang <louipc.ist@gmail.com>
2009-01-14Replace RSS icon with feed icon.Loui Chang
Signed-off-by: Loui Chang <louipc.ist@gmail.com>
2009-01-08Cache all front page stats in APC if availableDan McGee
Use the APC cache to store all of the counts and the recently updated package list in a cache, which cuts down on the number of database queries needed. If the data isn't perfectly up to date we will survive. This version of the patch will also cache the relevant counts for individual logged-in users and is more careful about checking whether the value actually exists in the cache by using the status reference to apc_fetch(). Signed-off-by: Dan McGee <dan@archlinux.org> Signed-off-by: Loui Chang <louipc.ist@gmail.com>
2009-01-05Change layout of search form.Loui Chang
Signed-off-by: Loui Chang <louipc.ist@gmail.com>
2009-01-05Move package comments to a template.Loui Chang
Change layout in the process. Signed-off-by: Loui Chang <louipc.ist@gmail.com>
2009-01-04Store account type in local var when possibleDan McGee
No need to call this function way too often, especially when on the package list page where it could be called up to once per row. Signed-off-by: Dan McGee <dan@archlinux.org> Signed-off-by: Loui Chang <louipc.ist@gmail.com>
2008-12-29Properly select page length in search form.Loui Chang
Signed-off-by: Loui Chang <louipc.ist@gmail.com>
2008-12-29Make search page use mkurl function, change variables aroundCallan Barrett
Changed all the normal variables to their $_GET counterparts so everything is destructively changing the original variables, there should be no issue with this. If there I guess we need to consider making mkurl use a custom array of variables rather than $_GET Signed-off-by: Callan Barrett <wizzomafizzo@gmail.com> Signed-off-by: Loui Chang <louipc.ist@gmail.com>
2008-12-29Add search bar to index and pkg details pagesCallan Barrett
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-29New search bar, toggle advanced options new styleCallan Barrett
Signed-off-by: Callan Barrett <wizzomafizzo@gmail.com> Signed-off-by: Loui Chang <louipc.ist@gmail.com>
2008-12-22Don't require login to see out of date packages from package search.Loui Chang
Signed-off-by: Loui Chang <louipc.ist@gmail.com>
2008-12-22Make some translatable strings friendlier to common usage.Loui Chang
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-22Encode search string for use in anchor tags.Loui Chang
Sorting, and viewing more results resets the search if you search for '#' in 1.5.3. This should fix that bug. Signed-off-by: Loui Chang <louipc.ist@gmail.com> Signed-off-by: Callan Barrett <wizzomafizzo@gmail.com>
2008-12-22Really make all web paths relative.Loui Chang
I forgot about the forms. Signed-off-by: Loui Chang <louipc.ist@gmail.com> Signed-off-by: Callan Barrett <wizzomafizzo@gmail.com>
2008-12-21Move package search results to a templateCallan Barrett
Logic is separated from html as much as possible, all html in a template Signed-off-by: Callan Barrett <wizzomafizzo@gmail.com> Signed-off-by: Loui Chang <louipc.ist@gmail.com>
2008-12-21Introduce function include_lang for translations.Loui Chang
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-21Make all web paths relative.Loui Chang
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-20Revert "Move call to try_login to login_form."Callan Barrett
This reverts commit 77d93c4946fabcda417b6a5672d881c64e11fb78. Signed-off-by: Loui Chang <louipc.ist@gmail.com>