Commit graph

2923 commits

Author SHA1 Message Date
Callan Barrett
5f4afcc8cb Add support for variable length votes in voting application
Signed-off-by: Callan Barrett <wizzomafizzo@gmail.com>
2008-01-20 00:21:19 -06:00
Callan Barrett
a8e574ef28 AUR Voting Application
Added support for TU voting through AUR

Signed-off-by: Callan Barrett <wizzomafizzo@gmail.com>
2008-01-20 00:21:19 -06:00
eliott
32b863203f Modified to get details based on an exact package name, or based on a package id. 2008-01-20 00:21:19 -06:00
eliott
47e80c24af Removed reference to 'safe' 2008-01-20 00:21:19 -06:00
eliott
f4bfe44876 Comments are listed in reverse order (latest first)
So it makes sense to have the "add comment" at the top..where it is already.
Removed duplicate "add comment" box.
2008-01-20 00:21:18 -06:00
eliott
d245f691ee Fixes to disclaimer text. 2008-01-20 00:21:18 -06:00
eliott
c17b629a4d Fix for safe-removal. 2008-01-20 00:21:18 -06:00
eliott
a9837329d6 Hand diff of simo's patch to remove flag safe functionality.
Simo's original commit text:
 The idea of safe flagging is unclear, poorly named, misunderstood,
 and not even used. At the time this patch was created, less than
 a third of the packages in unsupported were flagged safe, and less
 than a tenth of users knew how to interpret it.

 The safe flag has been replaced by a disclaimer on the main page.
2008-01-20 00:21:18 -06:00
Dan McGee
6dbe12264a Remove dummy data from GIT
There is no need to check in dummy data if it is available by running the
script that sat right next to it in the repo. Doh!

Signed-off-by: Dan McGee <dan@archlinux.org>
2008-01-20 00:20:24 -06:00
Paul Mattal
ba51e17482 Updated favicon.ico to match the main site. 2008-01-19 23:49:35 -06:00
eliott
b23b51fbbd Removed beta.html
Seems old.
2008-01-19 23:49:35 -06:00
eliott
36dd7736c9 Moved usage documentation out of the class.
Fixed an issue in the handle class.
2008-01-19 23:49:35 -06:00
eliott
5e38e3d3d0 Added AurJSON code.
Added a JSON interface to the aur. This should make it easier for developers to integrate
command line utilities and poll against the AUR itself.
2008-01-19 23:49:35 -06:00
eliott
0cda12132d Updated .gitignore again 2008-01-19 23:49:35 -06:00
Paul Mattal
9274f54287 Revert "Move "Add Comment" button to Actions bar."
This reverts commit 9b4472ef2fb91e91539def70f905cfe1ec6a8a3a.
We have decided to put the button by itself on the bottom, so
it does not get lost. This might be reconsidered in later UI
revamping.
2008-01-19 23:49:35 -06:00
Loui Chang
e9de45954a Several functions added to web/lib/acctfuncs.inc Weeere back!
try_login() to login users

valid_username() checks if a new username fits criteria

valid_user() checks if the user exists in the database

good_passwd() only checks for minimum password length for now.
can be later expanded to tell a user to make a stronger password.

valid_passwd() checks if the password for the specified user is correct

user_suspended() checks if the user is suspended (or not)

user_delete() deletes a user (it doesn't orphan PKGs yet though)

user_is_privileged() returns privilege level User (0) TU (2) Dev (3) of
user ID. 0 is used for a regular user for ease in conditionals.

Also:	Enforce proper usernames on account creation or editing
	Fix bug where $SUPPORTED_LANGS needs to be reset on account creation
	Fix bug where an account could be created with an empty passwd
	Display (required) beside password fields on account creation
	Enforce good_passwd() on account creation

	TUs and Devs can edit a user to have a username that doesn't conform to
	the standard valid_username(). This is to allow them to edit old
	accounts without messing up the user name.

Signed-off-by: Loui Chang <louipc.ist@gmail.com>
2008-01-19 23:49:35 -06:00
Loui Chang
b2816c13cf Make sure short_open_tag = Off via .htaccess
Signed-off-by: Loui Chang <louipc.ist@gmail.com>
2008-01-19 23:49:30 -06:00
Loui Chang
da9d2b9e0d Make "Out of Date" pkgs more NOTICABLE.
Includes a translation change. Why oh why would one conceive to put
HTML markup into the translation?

Signed-off-by: Loui Chang <louipc.ist@gmail.com>
2008-01-19 23:49:10 -06:00
Loui Chang
a21b8c1209 Opera doesn't give the buttons any padding. Let's giver some.
Signed-off-by: Loui Chang <louipc.ist@gmail.com>
2008-01-19 23:48:54 -06:00
tardo
d06163269b Move "Add Comment" button to Actions bar.
The lonely button now gains some friends.

Signed-off-by: tardo <tardo@nagi-fanboi.net>
2008-01-19 23:48:30 -06:00
Loui Chang
c404c278cc Revert "Several functions added to web/lib/acctfuncs.inc"
This has a couple of bugs I just discovered arrgh. We shall return
This reverts commit 5e7e9f1b21d8803c718ac8551f8e0e25709fcd6f.
2008-01-19 23:47:45 -06:00
Loui Chang
6b3e902851 Several functions added to web/lib/acctfuncs.inc
try_login() to login users

valid_username() checks if a new username fits criteria

valid_user() checks if the user exists in the database

good_passwd() only checks for minimum password length for now.
can be later expanded to tell a user to make a stronger password.

valid_passwd() checks if the password for the specified user is correct

user_suspended() checks if the user is suspended (or not)

user_delete() deletes a user

Also:	Enforce proper usernames on account creation
	Fix bug where $SUPPORTED_LANGS needs to be reset on account creation
	Fix bug where an account could be created with an empty passwd
	Display (required) beside password fields on account creation
	Enforce good_passwd() on account creation

Signed-off-by: Loui Chang <louipc.ist@gmail.com>
2008-01-19 23:47:03 -06:00
Loui Chang
8f7fb2b1cb search_accounts_form() output is put into a template
Signed-off-by: Loui Chang <louipc.ist@gmail.com>
2008-01-19 23:46:55 -06:00
Loui Chang
878d0bb39a Added header, footer, and login form templates
Implemented the first two in web/lib/aur.inc.

Signed-off-by: Loui Chang <louipc.ist@gmail.com>
2008-01-19 23:45:07 -06:00
Simo Leone
016e8796c3 Update tur-users -> aur-general
Fix broken links after mailing list rename.

Signed-off-by: Simo Leone <simo@archlinux.org>
2007-12-02 16:10:59 -06:00
Paul Mattal
9638a5c8e3 Changed version to 1.4.1.
Changed version string to 1.4.1 in preparation for release.
2007-10-11 09:36:08 -04:00
Paul Mattal
593b69a98d Revert "Move "Add Comment" button to Actions bar."
This reverts commit 9b4472ef2fb91e91539def70f905cfe1ec6a8a3a.
We have decided to put the button by itself on the bottom, so
it does not get lost. This might be reconsidered in later UI
revamping.
2007-10-11 09:28:00 -04:00
tardo
783895de73 Move "Add Comment" button to Actions bar.
The lonely button now gains some friends.

Signed-off-by: tardo <tardo@nagi-fanboi.net>
2007-10-11 09:25:51 -04:00
tardo
d03dd16194 Center Add Comment box.
Signed-off-by: tardo <tardo@nagi-fanboi.net>
2007-10-11 09:24:34 -04:00
Paul Mattal
bf4ae1ef47 Merge commit 'eliott/master' into stable 2007-10-11 09:02:06 -04:00
tardo
ab3837ab3a Remove unnecessary locations from search criteria.
Currently, locations include none/current/extra/unstable. Since no package should be located in such an area, there's no point in including them in search criteria. The proper way to do this might be to delete the SQL table data relating to this, but this will suffice for now.

Signed-off-by: tardo <tardo@nagi-fanboi.net>
2007-10-11 08:58:20 -04:00
Paul Mattal
8aec7ba941 Move AddComment button to top of Comments table, from Sergej
This moves the AddComment button to the top of the Comments table. A previous
patch had placed it into the action bar, but this seems cleaner.
2007-10-03 08:14:03 -04:00
Paul Mattal
8933e244ea Russian: aur-russian-1.4.0.diff from Sergej
Added/fixed some Russian translation strings.
2007-10-03 08:10:54 -04:00
Paul Mattal
ae7844f969 Added html/web/xml directory.
The html/web/xml directory is where the RSS feed gets stored. This was not
in the release tree, but has now been added. It should be set up with
permissions that allow the webserver to write to it.
2007-10-03 08:00:05 -04:00
Joerie de Gram
b9ec74d72b Added missing EN language string
Signed-off-by: Joerie de Gram <j.de.gram@gmail.com>
2007-10-02 22:30:48 -04:00
Paul Mattal
22fcea238f Tweak to version strings patch.
Rather than rely in any way on config.inc, which is expected to be edited
by the user and to persist across versions without change, the version
string definition is stored in version.inc and included from aur.inc.
2007-10-02 07:33:53 -04:00
tardo
881b921eb3 Fixed version strings.
Added AUR_VERSION to config file, so now we should only need to
change one location. KISS ftw.

Signed-off-by: tardo <tardo@nagi-fanboi.net>
2007-10-02 07:29:27 -04:00
Paul Mattal
6e49512b4e Italian: 20070930 patch from Giovanni Scafora 2007-09-30 13:06:44 -04:00
tardo
03a44d4900 Logout now redirects instead of displaying a page.
Thanks to Alex for the heads-up.

Signed-off-by: tardo <tardo@nagi-fanboi.net>
2007-09-30 12:51:06 -04:00
Paul Mattal
01911dce95 changed version string to 1.4.0 on front page 2007-09-29 14:23:48 -04:00
Paul Mattal
659cace81e Center the "Go back to search results" on the package detail page. 2007-09-28 22:15:47 -04:00
Loui Chang
95cca1996f nitpick: change buttons border to solid and convert
web/html/css/containers.css to unix format
Signed-off-by: Loui Chang <louipc.ist@gmail.com>
2007-09-28 22:05:08 -04:00
Paul Mattal
2b794c635f Changed homepage box title to "AUR Home" to match patch from tardo. 2007-09-27 09:18:25 -04:00
tardo
de365c6e0c Links to official packages now point back to AL site.
Previously if the package was not in community or unsupported, the link didn't point anywhere. Now it uses http://archlinux.org/packages/search/$pkgname. If there's a better way, someone needs to let me know. As far as I know, there's no sure way to link directly to a package without knowing the pkgid.

Signed-off-by: tardo <tardo@nagi-fanboi.net>
2007-09-27 09:10:33 -04:00
tardo
b4946839ea Messages run across colspan=3 now.
Using colspan=2 seemed to make the text wrap.

Signed-off-by: tardo <tardo@nagi-fanboi.net>
2007-09-27 08:59:27 -04:00
tardo
2e1230589d Box titles now align to the left.
Might be me, but aligning to the right just looked messed up.

Signed-off-by: tardo <tardo@nagi-fanboi.net>
2007-09-27 08:58:22 -04:00
Loui Chang
10f6a7c401 nitpick: Changed "AUR-Home" button to "AUR Home"
Signed-off-by: Loui Chang <louipc.ist@gmail.com>
2007-09-27 00:09:43 -04:00
Loui Chang
d2134f7637 Merge commit 'origin/testing'
Yeah I actually want to work from testing.
Conflicts:

	web/lib/pkgfuncs.inc

Signed-off-by: Loui Chang <louipc.ist@gmail.com>
2007-09-27 00:06:56 -04:00
Loui Chang
e8ae65abf6 I forgot to change AUR_db* usage to constants. Fixed now.
Signed-off-by: Loui Chang <louipc.ist@gmail.com>
2007-09-27 00:04:47 -04:00
Loui Chang
c764f078f1 Made some things in config.inc.proto that should be constants constants
Signed-off-by: Loui Chang <louipc.ist@gmail.com>
2007-09-26 23:57:51 -04:00