Commit Graph

332 Commits

Author SHA1 Message Date
Paul Eggleton
9df79fe0ef Sort recipes by PN and descending PV in layer list
Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
2013-05-07 12:13:14 +01:00
Paul Eggleton
c257348c5a detail: ensure machine list is sorted by name
Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
2013-04-05 18:35:35 +01:00
Paul Eggleton
b3a8b19eb4 models: add layer name to string representation of layer note
This includes the layer name in layer note additions/changes in the
history page, among other places.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
2013-04-02 12:25:26 +01:00
Paul Eggleton
ce1775db31 Add basic change history page
Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
2013-03-31 20:38:30 +01:00
Paul Eggleton
6ec84fb7f5 editlayer: fix checkboxes not showing up in Chromium
Somehow due to some CSS shenanigans these checkboxes had 0 width in
Chromium and thus were invisible. A style on the td had to be used
because a style on the input doesn't seem to fix it.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
2013-03-30 08:42:05 +00:00
Paul Eggleton
979fb7980d Fix "AnonymousUser has no attribute 'email'" errors when not logged in
We shouldn't be looking for this attribute unless the user has logged in
- this was a regression in the recent email case fix.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
2013-03-28 21:39:00 +00:00
Paul Eggleton
cd3a5a7b2a settings: Use example.com in DEFAULT_FROM_EMAIL
Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
2013-03-28 18:46:16 +00:00
Paul Eggleton
2428077170 TODO: update todo list
Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
2013-03-28 18:43:11 +00:00
Paul Eggleton
b272571542 about: Drop secondary heading sizes
Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
2013-03-28 18:38:04 +00:00
Paul Eggleton
f00d0a2e2b Add DEFAULT_FROM_EMAIL to settings
Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
2013-03-28 16:21:14 +00:00
Paul Eggleton
665e40e2c5 Ensure user_can_edit email address check ignores case and spaces
Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
2013-03-28 12:10:28 +00:00
Paul Eggleton
f7b2bd71b1 Redirect to login page for review list/detail views if not logged in
This avoids showing a 403 error when a user clicks on a review link in
the layer submission notification email but hasn't logged in yet.

Also protect the review list view with a permission check; it's not that
it's sensitive, but we should be consistent with the detail here.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
2013-03-28 10:03:46 +00:00
Paul Eggleton
86ffcbd5fe Change registered -> created in registration confirmation page
Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
2013-03-28 01:15:25 +00:00
Paul Eggleton
40e116883c Fix site name being blank in new account activation email
All variables used within blocktrans need to be local.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
2013-03-28 01:15:17 +00:00
Paul Eggleton
0a6b4e22a3 about: Add Michael and Alex to the contributors list
Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
2013-03-27 16:22:05 +00:00
Paul Eggleton
333ee2a94e Improved fix for ../ in usage URL
This actually works for complex URLs since we normalise just the path
portion that we are adding instead of trying it on the URL after
composing it.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
2013-03-27 16:17:49 +00:00
Paul Eggleton
2804211f8f Fix web subdirectory links with gitweb
gitweb, ever vigilant for the slightest transgression in URL syntax,
fails to find the specified path if it is a directory and has a trailing
slash, so we need to avoid adding this.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
2013-03-27 16:02:28 +00:00
Paul Eggleton
cd7e00bf57 Allow ../ in usage URL field
Allow using e.g. ../README to point to README file in the parent of the
repository subdirectory.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
2013-03-27 16:01:24 +00:00
Paul Eggleton
49578f98c8 Fix permission checking for publish_layer permission
The incorrect module name was being checked; previously this was only
tested with superusers (who get granted any permission requested, even
if it is invalid).

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
2013-03-27 11:06:03 +00:00
Paul Eggleton
fd2be466bc Change "register" to "create account" on login page
Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
2013-03-27 09:41:43 +00:00
Paul Eggleton
a7323361ff Bump up some of the field lengths
Avoid truncation for slightly longer fields (as happened with PN and
SUMMARY when importing some existing layers).

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
2013-03-27 09:34:56 +00:00
Paul Eggleton
0c3ed04bcd Fix CSRF validation errors in password reset forms
Thanks to Michael Halstead <michael@yoctoproject.org> for this fix.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
2013-03-27 09:31:26 +00:00
Paul Eggleton
1c73d63333 update.py: fix scanning for machine files
* Avoid picking up machine files in sub-layers
* Skip scanning of .git directory when doing full refresh

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
2013-03-20 18:01:02 +00:00
Paul Eggleton
e1bbc39237 update.py: improve handling of machine descriptions
Fall back to NAME if DESCRIPTION is not specified and remove more
preamble from the string.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
2013-03-20 17:21:29 +00:00
Paul Eggleton
342ff28648 De-emphasise recipes where there is a more preferred version available
If another recipe exists with the same name in a different layer and
that other layer is "older" (by layer ID) and is a software or base
layer then lighten the recipe entry in the search results as it may
not be the preferred version (e.g. recipes in BSP or distro layers may
have been customised specifically for the machine or distro).

This has had a performance impact on the recipes list; as a result
showing all recipes by default has been disabled. If the user really
wants to see all recipes they can just leave the search box blank and
hit the search button.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
2013-03-20 17:04:56 +00:00
Paul Eggleton
42d710b640 update.py: set log level earlier
Ensure that we're not printing info messages when the -q option is
specified.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
2013-03-20 17:04:56 +00:00
Paul Eggleton
9cec14c8a9 update.py: make failure to parse a recipe an error
Ensure that these are still printed when the -q option is used.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
2013-03-20 17:04:56 +00:00
Paul Eggleton
473c47a222 Ensure entire layer gets refreshed on next update if repo fields change
If the user edits the layer and changes the repository URL,
subdirectory, or dependencies, ensure that the entire layer gets
refreshed the next time the update script runs by clearing out the last
fetched revision field.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
2013-03-20 16:21:41 +00:00
Paul Eggleton
af920d10c9 update.py: set PN for recipe even if we fail to parse it
This ensures recipes that failed to parse sort properly instead of all
appearing at the start of the search results.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
2013-03-20 16:21:41 +00:00
Paul Eggleton
98eed250bc update.py: ensure TMPDIR gets created before starting parse
We don't go through the normal code path where this directory would be
created, and if it doesn't exist an error will be thrown in
insane.bbclass when any QA issue is logged; so create it manually.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
2013-03-20 15:41:58 +00:00
Paul Eggleton
65d3f55925 update.py: explicitly check for existence of conf/layer.conf
Rather than letting BitBake error out, just check for existence of this
file and print a single error line if it doesn't exist.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
2013-03-20 15:41:58 +00:00
Paul Eggleton
cb5ce087c2 Add layer index wiki page import script
This should help the initial population of the database and act as a
simple example of how to populate the database programmatically.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
2013-03-20 15:41:58 +00:00
Paul Eggleton
d3b061f247 Sort layer list by layer type first
The old layer index was sorted first by layer type so let's do the same
here.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
2013-03-20 15:41:58 +00:00
Paul Eggleton
f17c5cf04f Move fetch dir calculation to model
This makes it easier to get this directory name outside of the update
script.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
2013-03-20 15:41:58 +00:00
Paul Eggleton
3cc0b78935 update.py: create dependency/maintainer records when creating LayerBranch
If we're creating a LayerBranch record, it's helpful to copy the
maintainer and dependency records in from master as they're usually
going to be the same; if they're not the user can always change them
afterwards.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
2013-03-20 15:41:58 +00:00
Paul Eggleton
0a1215e59e Move repo subdirectory to layerbranch
So it turns out that one or two layers have changed in structure between
branches, so we need to be able to specify this on a per-branch basis.
Good times...

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
2013-03-20 15:41:58 +00:00
Paul Eggleton
ee9176a8c5 Ensure bad URL within layerindex app returns 404
The recently added global redirect was also redirecting incorrect URLs
within the application to the front page rather than showing 404, which
is not desirable.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
2013-03-18 16:29:50 +00:00
Alexandru DAMIAN
a5f6ecb914 Added activation_complete template
When clicking on an activation link, after verification,
the registration application tries to show
the activation_complete page. The template was missing,
so I added a basic skeleton.

Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
2013-03-08 16:37:30 +00:00
Alexandru DAMIAN
dd158da456 Blocktrans can't take other url blocks
Modified the email body to break the blocktrans
into two separate blocks, and not include the
url block inside the blocktrans block.

Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
2013-03-08 16:37:25 +00:00
Alexandru DAMIAN
b483dcf2af Redirects unknown URLs to the default application
It's bad form to show the user a Page Not Found on
the first site open, so we redirect to the default
application.

Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
2013-03-08 16:30:51 +00:00
Paul Eggleton
af499c0d99 Add sort priority field to branch model
This enables sorting the branch drop-down in a configurable manner (e.g.
so that you can have them in order from newest to oldest).

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
2013-03-06 22:56:31 +00:00
Paul Eggleton
f6fb84db4b README: clarify in licensing section that Bootstrap includes Glyphicons
Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
2013-03-06 20:33:46 +00:00
Paul Eggleton
d2e4f6d322 TODO: update todo list
Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
2013-03-06 20:24:43 +00:00
Paul Eggleton
4faeab6595 Add introductory front page
Give the user a friendly introduction instead of plunging them straight
into the layers list. (Of course if people want to link directly to the
layers list they still can.)

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
2013-03-06 20:13:49 +00:00
Paul Eggleton
a643aeba33 Add separate templates for review list and detail
This cuts out a lot of the elements that aren't needed for the review
list, shows fields in a more suitable way for review purposes than the
standard detail (and includes some fields that don't currently get shown
on the standard detail e.g. layer type and short description).

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
2013-03-06 20:13:44 +00:00
Paul Eggleton
fecc907687 Ensure we switch to the master branch for reviewing
Newly submitted layers don't have anything other than a master branch,
so they won't display properly unless we have master selected; so just
add a parameter to submission email and review URLs to ensure that is
the case.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
2013-03-06 19:15:39 +00:00
Paul Eggleton
4be747582f Add a short description for branches to show in drop-down
Allows you to add e.g. "old stable" next to the denzil branch for
clarification.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
2013-03-06 18:31:02 +00:00
Paul Eggleton
94ff843006 update.py: ensure script can be run from any directory
Don't assume the current directory contains our conf/local.conf,
explicitly use the directory above where the script is located.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
2013-03-06 18:08:05 +00:00
Paul Eggleton
df76a64d95 update.py: avoid writing bitbake.lock/cache to current directory
Create a temporary directory for these files.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
2013-03-06 18:07:56 +00:00
Paul Eggleton
445b17d3cf Use appending to extend page title instead of overriding it
This means there is only one place to set the base title instead of
needing to change it in every template.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
2013-03-06 17:23:36 +00:00