Age | Commit message (Collapse) | Author | Files | Lines |
|
Signed-off-by: Evangelos Foutras <foutrelis@gmail.com>
[Dan: made a few other small touchups]
Signed-off-by: Dan McGee <dan@archlinux.org>
|
|
Signed-off-by: Evangelos Foutras <foutrelis@gmail.com>
Signed-off-by: Dan McGee <dan@archlinux.org>
|
|
Thanks to Evangelos Foutras for the inspiration. Recreated from scratch only
to make sure everything is in sync.
From this point on, you will need to have the 'south' Django/Python package
installed to use archweb.
Signed-off-by: Dan McGee <dan@archlinux.org>
|
|
No need to slap 'archweb' in all of these in the settings file.
Signed-off-by: Dan McGee <dan@archlinux.org>
|
|
Signed-off-by: Dan McGee <dan@archlinux.org>
|
|
* Don't show checkboxes for non-authenticated users
* Fix up the adopt buttons to not be a table row
* Fix the form which didn't have a closing tag
Signed-off-by: Dan McGee <dan@archlinux.org>
|
|
Signed-off-by: Dan McGee <dan@archlinux.org>
|
|
FS#17287.
Signed-off-by: Dan McGee <dan@archlinux.org>
|
|
Hey, what do you know? Using a relational DB in a non-relational way
can come back to bite you. Go foreign keys!
Signed-off-by: Dan McGee <dan@archlinux.org>
|
|
This should fix the issue with Community-Testing packages appearing in
ToDo lists.
After this change has been applied, simply edit and save a ToDo list to
make its Community-Testing packages go away.
Signed-off-by: Dan McGee <dan@archlinux.org>
|
|
Makes it easier to find a user since we have quite a few. FS#18055.
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 as commit 5faf6566 did for the main menu items, do the same for the dev
menu.
Signed-off-by: Dan McGee <dan@archlinux.org>
|
|
The menu was rendered bottom to top in the html because the elements
were floated to the right. This caused text browsers visitors (no CSS
rendering) to see the menu backwards. I've modified the menu order and
made the items float to the left so the menu is correctly rendered in
text browsers.
Signed-off-by: Ismael Carnales <icarnales@gmail.com>
Signed-off-by: Dan McGee <dan@archlinux.org>
|
|
Signed-off-by: Dan McGee <dan@archlinux.org>
|
|
Signed-off-by: Dan McGee <dan@archlinux.org>
|
|
We also traverse relationships here, so select the associated items.
Signed-off-by: Dan McGee <dan@archlinux.org>
|
|
Use Django's select_related() on the TodolistPkg QuerySet to avoid
making 4 database queries per package. This way we're making just one
query, regardless of the number of packages in the Todo list.
Local testing with 1000 entries in a Todo list show that the loading
time has been reduced from 2675 ms to around 560 ms, while the number of
queries has been cut down from 8005, to only 5.
Signed-off-by: Dan McGee <dan@archlinux.org>
|
|
Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
Signed-off-by: Dan McGee <dan@archlinux.org>
|
|
* Add models.py required file to app
* Use user_passes_test instead of custom superuser checking in
new_user_form as it implements the same "next" redirection as
login_required
Signed-off-by: Ismael Carnales <icarnales@gmail.com>
|
|
The addition of a models.py file in public app is needed for django to
recognize it as an application for testing.
Signed-off-by: Ismael Carnales <icarnales@gmail.com>
|
|
|
|
Signed-off-by: Ismael Carnales <icarnales@gmail.com>
|
|
|
|
|
|
|
|
We should always highlight 'Home' when on the Django site. The sole
exception is the download page which has its own special place.
Signed-off-by: Dan McGee <dan@archlinux.org>
|
|
|
|
|
|
|
|
also added user restrictions
|
|
|
|
|
|
- added title
- added permission checks
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
RequestContexts are needed to check if the user is logged in
NOTE: Generic views as direct_to_template and object_list always return
a request context, so is good to use them :)
Later will add a render_template shortcut that adds the RequestContext
automatically
|
|
|
|
- moved devel.views.siteindex to public.views.index
- using template from public view with added devel menu
- added extra styles and images
|
|
|
|
|
|
|
|
|
|
|