Age | Commit message (Collapse) | Author | Files | Lines |
|
Signed-off-by: Dan McGee <dan@archlinux.org>
|
|
We're getting to the point where we are starting to have a good chunk of JS
scattered about. Centralize a lot of it for maintenance and performance
purposes.
Signed-off-by: Dan McGee <dan@archlinux.org>
|
|
Set up a default DATE_FORMAT in settings.py and use it everywhere we do the
'|date' template filter rather than hardcoding the value in the template.
This also fixes a regression with news date/time now that we changed the
field to store both date and time.
Signed-off-by: Dan McGee <dan@archlinux.org>
|
|
We can't cache most of the package actions links stuff because we look at
the user there, but we can cache everything on the left and the content of
the bottom boxes.
Signed-off-by: Dan McGee <dan@archlinux.org>
|
|
This will allow clicking through to a few more associated packages from a
given package, including those for the other architecture and potentially in
other repositories. The box floats to the right with the package actions,
which have also been restyled slightly so the whole area is a bit more
styled and set off from the rest of the page.
This should allow us to close the current oldest bug open in the Arch bug
tracker, FS#7787. I remember the days when every bug was a four-digit
number...
Signed-off-by: Dan McGee <dan@archlinux.org>
|
|
Signed-off-by: Dan McGee <dan@archlinux.org>
|
|
Signed-off-by: Dan McGee <dan@archlinux.org>
|
|
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>
|
|
Signed-off-by: Dan McGee <dan@archlinux.org>
|
|
To link to a given person's maintained packages.
Signed-off-by: Dan McGee <dan@archlinux.org>
|
|
Signed-off-by: Dan McGee <dan@archlinux.org>
|
|
They show up but aren't hotlinked to anything...just yet.
Signed-off-by: Dan McGee <dan@archlinux.org>
|
|
Signed-off-by: Dan McGee <dan@archlinux.org>
|
|
And the package has been flagged out of date. Should make people relax a
bit.
Signed-off-by: Dan McGee <dan@archlinux.org>
|
|
Signed-off-by: Dan McGee <dan@archlinux.org>
|
|
Add two methods to the package class, base_package() and split_packages(),
that allow us to grab other related packages to one we are interested in.
This allows us to list the Base Package on the package details page as a
link.
With the split_packages() method, we can also now list and link all
sub-packages on the package details page; e.g. for 'kernel26' we can now
link through to 'kernel26-firmware' and 'kernel26-headers'.
Signed-off-by: Dan McGee <dan@archlinux.org>
|
|
Signed-off-by: Dan McGee <dan@archlinux.org>
|
|
We had a few issues with unescaped ampersands and extra or missing tags.
Signed-off-by: Dan McGee <dan@archlinux.org>
|
|
After adding filename to the database, this is a rather simple request (see
FS#19546). Right now the "randomly" chosen mirror happens to always be
mirrors.kernel.org as it is the only one filed under the 'Any' country which
is what we screen on. Perhaps this logic could be improved in the future but
I don't see these links being all that high traffic anyway.
Signed-off-by: Dan McGee <dan@archlinux.org>
|
|
Get this working by doing some class business with CSS in order to highlight
the correct tab. I had to add some stuff to a variety of pages but it should
be working correctly now. Addresses FS#19591.
Signed-off-by: Dan McGee <dan@archlinux.org>
|
|
We were still using the user-facing package IDs here which we have
eliminated everywhere else Change it to use the same user-friendly URL
pattern we are using elsewhere.
Signed-off-by: Dan McGee <dan@archlinux.org>
|
|
We can't wrap inside the title attribute on links, so fix all the places
where this was happening. The following command helped:
$ grep -R --color 'title="[^"]*$' templates/
Signed-off-by: Dan McGee <dan@archlinux.org>
|
|
* better semantics
* removed unnecessary CSS
* form accessibility
* dynamic/descriptive href titles throughout
Signed-off-by: Dan McGee <dan@archlinux.org>
|
|
Django 1.1 doesn't support arbitrary logic in if statements, but we can use
ifnotequal instead. Fixes breakage from commit 58566e.
Signed-off-by: Dan McGee <dan@archlinux.org>
|
|
Signed-off-by: Dan McGee <dan@archlinux.org>
|
|
This is an attempt to fix our long-standing problems dealing with maintainer
information. Move the actual maintainer information off of the package model
into a PackageRelation object, which has some flexibility to later represent
more than just maintainership.
This solves multiple problems:
* If a package gets accidentally deleted, so did the maintainer info
* Testing packages have always shown up as orphans
* With split packages, it was easy to miss some of the sub-packages
This commit does not include the deletion of the original maintainer column;
that will come at a later time when I feel more confident that the data was
migrated correctly.
Signed-off-by: Dan McGee <dan@archlinux.org>
|
|
Signed-off-by: Dan McGee <dan@archlinux.org>
|
|
Signed-off-by: Dan McGee <dan@archlinux.org>
|
|
Just like it already was in the required by list. This should address
FS#10475.
Signed-off-by: Dan McGee <dan@archlinux.org>
|
|
We didn't include them on many pages, or the ones we did weren't always
useful. Also try to keep the boilerplate to a minimum so you can see the
important bits in the title. 'Arch Linux - ' comes first in all titles, and
from there it can be filled in with something useful.
Signed-off-by: Dan McGee <dan@archlinux.org>
|
|
Signed-off-by: Dan McGee <dan@archlinux.org>
|
|
This will put the filelist inline on the package details page if using a
capable browser. It should still fallback to a separate page if necessary
(e.g. all those users using links on the site).
Signed-off-by: Dan McGee <dan@archlinux.org>
|
|
Put the link that has been commented back on the page, and point it at the
new URL for package files. Also fix the page title to be more in line with
all the other pages on the site.
Signed-off-by: Dan McGee <dan@archlinux.org>
|
|
Make package size, installed size, and build date available in the UI.
Signed-off-by: Dan McGee <dan@archlinux.org>
|
|
This is, at least for me, more useful than the link to a specific
build of a package. We provide both so no one should lose here.
Signed-off-by: Dan McGee <dan@archlinux.org>
|
|
This started out as a validation fix for the W3 validator: we had some <ul/>
elements that ended up on that page with no inner <li/> elements, so it was
invalid markup. I then realized we don't need to call the methods multiple
times so use the 'with' template tag.
Signed-off-by: Dan McGee <dan@archlinux.org>
|
|
Put an actual NULL in the database and handle it for both display and
import. Also add a migration to clean up any bad data we currently have in
there. Fixes FS#17144.
Signed-off-by: Dan McGee <dan@archlinux.org>
|
|
Link directly to the right project in Flyspray instead of whatever the user
looked at last. Fixes FS#13166.
Signed-off-by: Dan McGee <dan@archlinux.org>
|
|
also added user restrictions
|
|
archweb_dev. This is the original commit message by Dan:
"Make package SVN links always work
This should clean up the links for all varieties of things- different arches
(including any), different repos (community and community-testing), and
split packages. All of the logic is in one place now and any further changes
should be made to the method on the package object."
|
|
|
|
|
|
|
|
|
|
Flagging a package out of date is not needed in the backend. Backend only needs
to unflag.
|
|
|
|
|
|
|
|
|
|
|