Commit Graph

632 Commits

Author SHA1 Message Date
Dan McGee
141cff90d2 Clean up settings file
Unify to using single quotes everywhere. No functional changes.

Signed-off-by: Dan McGee <dan@archlinux.org>
2010-08-09 13:32:56 -05:00
Dan McGee
efba7e8ba0 reporead: Add ability to generate traceback via signal
Every once in a while we see this command hanging on the main server but it
isn't making any system calls, so it is hard to tell where it is getting
stuck. Add a signal handler on SIGQUIT that will listen and print a
traceback when signaled.

This is the easiest thing to implement; future additions may need to be able
to hook up to a remote debugger (e.g. pdb) if this doesn't work.

Signed-off-by: Dan McGee <dan@archlinux.org>
2010-08-04 07:06:49 -05:00
Dan McGee
8e1b9a8424 Add more information to "package in testing" text
Make it a link to the testing package itself, and add a title so we have
these attributes on every link.

Signed-off-by: Dan McGee <dan@archlinux.org>
2010-08-04 07:06:49 -05:00
Dan McGee
7bb61331e3 Add missing or update title attribute on links
Signed-off-by: Dan McGee <dan@archlinux.org>
2010-08-04 07:06:49 -05:00
Dan McGee
d993e1f1a8 Add a title to the userpkgs link
Signed-off-by: Dan McGee <dan@archlinux.org>
2010-08-04 07:00:41 -05:00
Dan McGee
97322236b0 Fix stupid mistake in user parsing
Signed-off-by: Dan McGee <dan@archlinux.org>
2010-08-01 13:18:52 -05:00
Pierre Schmitz
617c446aa7 adjust some colors to match forums and wiki 2010-08-01 16:40:11 +02:00
Dan McGee
f9aa30e7bd Clean up find_user() code a bit
With suggestions from Jason Chu, make the code a bit less repetitive with
regards to exception handling and fallthrough to the next method of finding
the user.

Signed-off-by: Dan McGee <dan@archlinux.org>
2010-07-28 15:38:33 -05:00
Dan McGee
573357b799 Use userpkgs tag on package details page
To link to a given person's maintained packages.

Signed-off-by: Dan McGee <dan@archlinux.org>
2010-07-28 15:03:55 -05:00
Dan McGee
2461b12cef Add new 'userpkgs' template tag
For easy linking to a given person's packages when we have a user object.

Signed-off-by: Dan McGee <dan@archlinux.org>
2010-07-28 15:02:17 -05:00
Dan McGee
88eb925d03 Add missing group delete in reporead
Otherwise we get duplicate groups each time we update the package, and any
group removals would never actually happen.

Signed-off-by: Dan McGee <dan@archlinux.org>
2010-07-28 15:01:32 -05:00
Dan McGee
ed5c5f525a Display packager info on details page
Signed-off-by: Dan McGee <dan@archlinux.org>
2010-07-28 14:43:17 -05:00
Dan McGee
77d130e33d Add packager support to reporead
This is a bit more work than just a simple field addition. We attempt to map
packager specs (e.g. "A. U. Thor <author@example.com>") to actual Django
users in a relatively robust way- first try matching on User.email, then
fall back to UserProfile.public_email, then finally try a name-based match.
For those packages we can't generate a mapping, the raw string is still
stored so it can be displayed.

Signed-off-by: Dan McGee <dan@archlinux.org>
2010-07-28 14:42:43 -05:00
Dan McGee
aada299712 Add packager fields to package model
Signed-off-by: Dan McGee <dan@archlinux.org>
2010-07-28 14:41:13 -05:00
Dan McGee
6efe7bd176 Update OSDisc affiliate link
Signed-off-by: Dan McGee <dan@archlinux.org>
2010-07-26 12:17:36 -05:00
Dan McGee
97a262e8ee Fix up click events on developer dashboard
Rather than using 'onclick', attach an event at the end of page load.

Signed-off-by: Dan McGee <dan@archlinux.org>
2010-07-25 16:14:50 -05:00
Dan McGee
5e58ad921e Add box style to public todo list page
Signed-off-by: Dan McGee <dan@archlinux.org>
2010-07-25 16:14:39 -05:00
Dusty Phillips
ce87aadd97 Add a link to the read only todo lists on the index page.
Signed-off-by: Dan McGee <dan@archlinux.org>
2010-07-25 16:08:21 -05:00
Dusty Phillips
ca409654b1 Hide the details of the todo list until clicking
Dan: don't load jQuery until late in the page load.

Signed-off-by: Dan McGee <dan@archlinux.org>
2010-07-25 16:07:47 -05:00
Dusty Phillips
d316f4b197 Add a basic view for todo lists
Dan: rename template and view to something a bit more concise.

Signed-off-by: Dan McGee <dan@archlinux.org>
2010-07-25 15:57:10 -05:00
Dan McGee
ea18bc7362 Remove ArchCon 2010 banner
FS#20276.

Signed-off-by: Dan McGee <dan@archlinux.org>
2010-07-25 15:49:06 -05:00
Dan McGee
727bb68587 Don't link to the AUR if search term is blank
Signed-off-by: Dan McGee <dan@archlinux.org>
2010-07-25 15:49:06 -05:00
Dusty Phillips
8ce58ee97a Remove an extra trailing slash that is causing a broken url on todolists.
Signed-off-by: Dan McGee <dan@archlinux.org>
2010-07-25 15:49:06 -05:00
Dan McGee
63696563a3 Add package groups model and display to packages
They show up but aren't hotlinked to anything...just yet.

Signed-off-by: Dan McGee <dan@archlinux.org>
2010-07-25 15:49:06 -05:00
Dan McGee
05c943b3a3 Remove unnecessary redirect on flaghelp link
Signed-off-by: Dan McGee <dan@archlinux.org>
2010-07-10 17:45:44 -05:00
Dan McGee
e1be5f1619 Add some more template fragment caching
Signed-off-by: Dan McGee <dan@archlinux.org>
2010-07-10 16:24:11 -05:00
Dan McGee
6b4c8e63b3 Make the cache_function key a bit more descriptive
Signed-off-by: Dan McGee <dan@archlinux.org>
2010-07-10 16:23:36 -05:00
Dan McGee
7ca91098fa Turn off L10N and I18N
Signed-off-by: Dan McGee <dan@archlinux.org>
2010-07-10 10:07:49 -05:00
Dan McGee
65e37349d3 Enable template fragment caching on main page
The left and right sidebars are the same for everyone, so cache both pieces
as template fragments so we aren't constantly re-rendering them. Due to
cookies being present in the 'Vary:' header, this at least allows some
benefit of caching at a lower level than the middleware can handle.

Signed-off-by: Dan McGee <dan@archlinux.org>
2010-07-06 20:52:21 -05:00
Dan McGee
907a316883 Add a requirements.txt file for pip
Signed-off-by: Dan McGee <dan@archlinux.org>
2010-07-06 20:33:16 -05:00
Dan McGee
7b73c0ff8c Get news markdown formatting working everywhere
Signed-off-by: Dan McGee <dan@archlinux.org>
2010-07-06 20:33:03 -05:00
Dan McGee
ad162d74db Format all news items using markdown
Implements FS#13741. A preview function is also added so working with news
items is easier to make sure you get the formatting right.

This will result in some older news items looking a bit weird if they didn't
put linebreaks in all the right places, we can fix a few of these as we
notice them.

Signed-off-by: Dan McGee <dan@archlinux.org>
2010-07-06 20:16:10 -05:00
Dan McGee
5b2861f1f0 Make package search box look better with wider fonts
Signed-off-by: Dan McGee <dan@archlinux.org>
2010-07-06 20:02:59 -05:00
Dan McGee
2d7bc3f322 Add note to package when version is in testing
And the package has been flagged out of date. Should make people relax a
bit.

Signed-off-by: Dan McGee <dan@archlinux.org>
2010-07-06 18:53:46 -05:00
Dan McGee
b6fb5e02e5 Add helper method to package to find self in testing repo
This will be useful in templates getting touched in an upcoming commit.

Signed-off-by: Dan McGee <dan@archlinux.org>
2010-07-06 18:53:03 -05:00
Dan McGee
edfdc2e38b Remove old needupdate column
Signed-off-by: Dan McGee <dan@archlinux.org>
2010-07-06 18:37:28 -05:00
Dan McGee
fba1d29c1b Update code to use new flag_date column
Signed-off-by: Dan McGee <dan@archlinux.org>
2010-07-06 18:36:50 -05:00
Dan McGee
145b80d0c6 Make flag column on packages a date
Signed-off-by: Dan McGee <dan@archlinux.org>
2010-07-06 18:36:17 -05:00
Dan McGee
845838190d Set font color for package search box
Since we explicitly set a background color for this text input, we should
set a foreground font color as well so those with dark themes don't see
white text on a white background. Addresses FS#19290.

Signed-off-by: Dan McGee <dan@archlinux.org>
2010-07-05 22:33:38 -05:00
Dan McGee
85807311ca Show incomplete todo list packages in dev dashboard
Implements FS#20081.

Signed-off-by: Dan McGee <dan@archlinux.org>
2010-07-05 22:22:19 -05:00
Dan McGee
cb9c74eff8 Add absolute URL method for todo lists
Signed-off-by: Dan McGee <dan@archlinux.org>
2010-07-05 22:20:28 -05:00
Dan McGee
41a5d1d566 Defer loading news content when listing news items
No need to pull back some 500 news articles when we just want the basics of
title, date, and author. Speaking of author, we might as well load that at
the same time too.

Signed-off-by: Dan McGee <dan@archlinux.org>
2010-07-02 20:37:06 -05:00
Dan McGee
357e8fa050 Add styling to errorlist class
Signed-off-by: Dan McGee <dan@archlinux.org>
2010-07-02 20:19:28 -05:00
Dan McGee
70b03d3ef7 Default country selection to Any
Signed-off-by: Dan McGee <dan@archlinux.org>
2010-07-02 20:11:48 -05:00
Dan McGee
3279d4b165 Add mirrorlist link to main page
Not terribly thrilled with the location, but it will have to do for now. If
we get a better idea later it can definitely be moved.

Signed-off-by: Dan McGee <dan@archlinux.org>
2010-07-02 20:07:54 -05:00
Dan McGee
2d407d9c1b mirrorlist: allow filtering by protocol
And add some more "static" URLs to access the non-country filtered lists.

Signed-off-by: Dan McGee <dan@archlinux.org>
2010-07-02 20:02:26 -05:00
Dan McGee
67159fed20 Link to the mirrorlist page from downloads
Signed-off-by: Dan McGee <dan@archlinux.org>
2010-07-02 19:27:20 -05:00
Dan McGee
d29d23ecf3 Get mirrorlist view ready for general use
Make the page much more flexible- allow multiple countries to be selected
rather than just one in the form. Also add a lot more text to the page, and
move the 'all' option out into its own subheading rather than being in the
same form.

Both GET and POST requests are now allowed for ease of use from non-browser
scenarios or those that wish to update their mirrorlist automatically and
submit parameters to the URL.

Signed-off-by: Dan McGee <dan@archlinux.org>
2010-07-02 19:24:54 -05:00
Dan McGee
1a945dd137 Add mirror protocols fixture
Signed-off-by: Dan McGee <dan@archlinux.org>
2010-07-02 18:59:39 -05:00
Dan McGee
e5bd769432 Remove arch from mirrorlist generation
With pacman 3.4.0, we can now use the $arch variable so we don't need
architecture-specific mirrorlists.

Signed-off-by: Dan McGee <dan@archlinux.org>
2010-07-02 18:34:09 -05:00