aboutsummaryrefslogtreecommitdiffstats
path: root/templates
AgeCommit message (Collapse)Author
2024-01-22templates: add bbclasstype badgeTim Orling
Now that we have different BBClass subtypes, it is handy to have a UI indication of the different types. Add "badges" to display "Global" (for 'classes-global' paths) or "Recipe" (for 'classes-recipe' paths). [YOCTO #15238] Signed-off-by: Tim Orling <tim.orling@konsulko.com>
2024-01-03layerindex: add Update Layer UI featureTim Orling
* Add an "Update Layer" button to the layer detail view. - This allows a user that is a member of is_staff to trigger an update of the current layer (for the current branch) * Add an "Update Layer" button to the reviewdetail view - This allows a user that is a member of is_staff and has publish_layer permissions to trigger an update attempt of the layer under review (even in the un-published state) * The update is run as a task with Celery NOTE: You must have the RABBITMQ_ and DATABASE_ credentials set correctly in the docker/settings.py file or set via environment variables or you will get authentication errors talking to layersdb or layersrabbit containers. [YOCTO #12484] layerindex/views.py: add update_layer_view layerindex/urls.py: add update_layer_view layerindex/urls_branch.py: add update_layer_view templates/layerindex/reviewdetail.html: add Update Layer button templates/layerindex/detail.html: add Update Layer button templates/layerindex: add updatelayer.html TODO: While the update is happening, the AJAX rendering of the update.log is showing the b'' characters and not adding any new lines. If you go back to the same task view afterwards, the log is rendered as expected. TODO: After the update is completed, it would be nice to have a button to return you to the page from where you called the "Update Layer". Signed-off-by: Tim Orling <tim.orling@konsulko.com>
2023-10-16bootstrap: add version to filenamesTim Orling
To make it easier to quickly see what version we are using, add the version to the filenames. Also, use minified flavor in templates/base.html Signed-off-by: Tim Orling <tim.orling@konsulko.com>
2023-10-16jquery: upgrade 3.4.1 -> 3.7.1Tim Orling
Use minified version in templates/base.html Fixes some vulernabilities: https://nvd.nist.gov/vuln/search/results?adv_search=true&isCpeNameSearch=true&query=cpe%3A2.3%3Aa%3Ajquery%3Ajquery%3A3.4.1%3A*%3A*%3A*%3A*%3Anode.js%3A*%3A* CVE: CVE-2020-23064 CVE: CVE-2020-11022 CVE: CVE-2020-11023 For full changelog see: https://github.com/jquery/jquery/compare/3.4.1...3.7.1 License-Update: Copyright OpenJS Foundation (from JS Foundation) Signed-off-by: Tim Orling <tim.orling@konsulko.com>
2023-10-05bootstrap_pagination: disable via commentTim Orling
Wrap the is_pagination usage of bootstrap_pagination with comment/endcomment to avoid incompatible module. We will need to re-write the pagination code. Signed-off-by: Tim Orling <tim.orling@konsulko.com>
2022-01-13templates/*: staticfiles -> statictimo/django-3.2.11Tim Orling
In Django 3.0 the staticfiles tag was changed to static Signed-off-by: Tim Orling <tim.orling@konsulko.com>
2022-01-13Updates for Django 3.0Tim Orling
* Update requirements.txt versions - Mostly update to latest pre-Django 3.1 versions * Fix deprecated axes.backends.AxesModelBackend - settings.py - docker/settings.py * Fix template syntax 'staticfiles' -> 'static' - base.html * Add migrations for layerbranch classicrecipe Signed-off-by: Tim Orling <tim.orling@konsulko.com>
2021-10-20about: add Amber & Tim to contributors listPaul Eggleton
Signed-off-by: Paul Eggleton <paul.eggleton@linux.microsoft.com>
2019-12-09Upgrade jquery to 3.4.1Paul Eggleton
Minor bugfix releases, but we should have them anyway: https://blog.jquery.com/2019/04/10/jquery-3-4-0-released/ https://blog.jquery.com/2019/05/01/jquery-3-4-1-triggering-focus-events-in-ie-and-finding-root-elements-in-ios-10/ Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
2019-11-21recipes: add help button to explain search termspaule/fixes14Paul Eggleton
There's a bit of advanced functionality by now in recipe searching, so add a link that shows a popup with information on how it works. Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
2019-11-21Add recipe dependencies toolPaul Eggleton
Add an extra tool that lets you view all of the recipe dependencies in a layer. There is also a mode that shows only cross-layer dependencies, which can be useful to find dependencies on recipes in other layers that aren't declared in the layer's dependencies (or conversely where a layer dependency is no longer necessary). Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
2019-11-21RRS: enable grouping recipe upgrades by licensePaul Eggleton
Going back in OE-Core recipe upgrade history, we kept GPLv2 and GPLv3 versions of a number of recipes around, so this is the source of quite a few situations where we had multiple versions of recipes with the same recipe name around. Add means of grouping upgrades by license so that we can keep these versions separate in the upgrade history instead of detecting lots of apparent upgrades and downgrades if they are intermingled. Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
2019-11-21RRS: support grouping upgrades by version for multi-version recipesPaul Eggleton
Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
2019-11-21RRS: handle downgradesPaul Eggleton
Version downgrades (or what appear to be downgrades) do occasionally happen, and if they did then the RRS was previously simply ignoring them, resulting in the latest version being reported incorrectly. Allow downgrades to be recorded as an upgrade with a new 'Downgrade' type option set, and display a label on such records in the UI. Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
2019-11-21RRS: Add deleted recipe handlingPaul Eggleton
Now that we're using RecipeSymbols we have the complete list of recipes that ever existed in a layer. We only want to see the ones that are valid for the selected milestone, so when a recipe gets deleted (or renamed or moved outside of the layer subdirectory, if any) we need to record that - do so using a RecipeUpgrade record with a new field upgrade_type set to 'R'. Additionally we need to store the file path so that deletion events (where we don't parse the contents of the recipe, thus we don't have PN) are easy to match up with RecipeUpgrade records; naturally we need to keep the paths "up-to-date" when we notice recipe files being moved around. Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
2019-10-21Fix cgit commit URL settingPaul Eggleton
Typo, there has to be a ? in front of the id or otherwise we don't get linked to the right commit. This would have affected recently added layers with a cgit web frontend. Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
2019-10-21Add branch comparison functionPaul Eggleton
Add the ability to compare available recipes and their versions between two branches for a selection of layers (default is just OE-Core). This was mainly intended to help us with the Yocto Project release notes preparation (hence the "Plain text" button at the bottom of the page) but is also useful in its own right. Note: for readability, SRCREVs are only shown when PV has not changed. Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
2019-10-21Track SRCREV for each recipePaul Eggleton
For the purposes of the branch comparison function I'm about to add it would be useful to track the value of SRCREV, so we can see if it has changed even if PV hasn't. Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
2019-10-14editlayer: Be more specific on the searchesMark Hatle
Just because git.yoctoproject.org is in the URL, doesn't mean we can or should force the vcs_web_url to be a specific value. If it starts with git://git.yoctoproject.org then we can do this. git.openembedded.org already did this. This also changes github, gitlab and bitbucket references. Signed-off-by: Mark Hatle <mark.hatle@kernel.crashing.org> Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
2019-10-02Add a space between text and glyphiconsPaul Eggleton
Where we use glyphicons to mark items in a list, ensure there is a space between the item and the icon to make things look a bit neater. Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
2019-07-17Replace custom pagination with django-bootstrap-paginationPaul Eggleton
Simplify things a bit. We lose the digg-style pagination but the new behaviour is good enough and improves maintainability. Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
2019-07-17Include branch name in "Not being applied" patch tooltipPaul Eggleton
Make it clear what this actually means. Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
2019-07-17Use "Packages" in tab name on main comparison pages instead of "Recipes"Paul Eggleton
Most Linux distributions do not have "recipes", they have "packages" so use the correct term (as we are in other places). Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
2019-07-17Fix progressive task output when it contains entity-escaped charactersPaul Eggleton
If an update task's output contains a single quote for example (') then this will be escaped to an HTML entity before it gets sent as a response. However, that means that the length of the data in the response will be greater than the length of the original data, resulting in characters getting missed out when we read the next chunk - so we can't use the escaped length to set the next position to read from. The easiest thing to do is have the Django view send us the actual position we're at and then we don't have to try to calculate it on the JS side. Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
2019-07-17Add license / note for django-registration-templatesPaul Eggleton
(The templates have of course been modified.) Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
2019-07-17Fix incorrect URL name leading to internal server errorPaul Eggleton
If you had a cover comment set on a comparison recipe record then you received an internal server error when that recipe got rendered in the search results. Use the current correct URL name to fix it. Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
2019-07-17Record configure optionsPaul Eggleton
Record the configure script options when importing recipe / package information so we can display them. Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
2019-07-17tasks: handle carriage returns in task outputPaul Eggleton
When we're running commands as part of a task that use carriage returns (\r) to update the currently displayed line, we want to see the same output in the web representation, so if we encounter a \r in the output we need to look back to the last newline, truncate to that and then start appending. Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
2019-07-17tasks: fix incorrect closing tag on buttonPaul Eggleton
Fixes bad rendering on the task page. Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
2019-07-17Determine if spec file patches are actually applied and striplevelPaul Eggleton
There's a little more to patch handling in spec files than "patchX:" fields - the patch actually has to be applied in the %prep section as well, though this can take one of several forms (%autosetup / %autopatch which apply all patches, individual %patchX directives, or even direct application (rare). There's also the matter of the striplevel (-p option to the patch command). Add fields to record whether or not a patch is applied and the striplevel. Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
2019-07-17Add ability to disposition comparison patchesPaul Eggleton
Add the ability to mark each patch with a disposition indicating whether the patch is interesting or not. Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
2019-07-17Disable autocomplete on sensitive fieldsPaul Eggleton
Disable autocomplete for registration/login/password change/password reset forms, and security question / captcha fields on Edit Profile form. Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
2019-07-17Add user security questionsAmber Elliot
Add user security questions upon registration as extra authentication for password reset. Three unique security questions must be chosen and answered. Answers are then stored in the database with the same hashing algorithm as the users's password. On password reset, users get two chances to get two out of three security questions answered correctly. After a second failure their account is locked and email is sent to the admin. The same template is shown for the axes lockout. Super user cannot reset their password until they set security questions. Users can update their security questions or add them if they weren't originally set (in the case of super user) in Edit Profile. Signed-off-by: Amber Elliot <amber.n.elliot@intel.com>
2019-07-17Upgrade django-registration to version 3.0.Amber Elliot
This involves changing how registration templates are referenced and how the activation email is sent on user's email address change. Signed-off-by: Amber Elliot <amber.n.elliot@intel.com>
2019-02-21RRS: move Export button and restore Tools drop-down menuPaul Eggleton
Move the Export Recipe List button, change it to match the Export CSV button on the layer detail page and put the Tools menu back (useful for accessing the Admin site if not just for consistency). The Submit Layer button remains hidden. Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
2019-02-14RRS: fix sorting arrow positioningPaul Eggleton
I'm not sure when or how they got broken but the sorting arrows were overlapping the text, so move them back into the proper location, 8px from the right of the column. Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
2018-12-06Add links to other branch recipes in recipe detailPaul Eggleton
Add links to the same recipe in other branches in the recipe detail page (and RRS recipe detail page) so that you can see which versions are available in other branches and drill down to the detail if you want to. Implements [YOCTO #13019]. Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
2018-12-06Send people an email when another user adds them as a maintainerPaul Eggleton
If someone adds you as a maintainer of a layer as a matter of courtesy it would be nice if you get an email. Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
2018-11-20Fix drop-down alignment on duplicates pagePaul Eggleton
Hack the dropdown HTML to fix the dropdown menu appearing at the bottom of the "Duplicate recipes" section (which may be below the bottom of the browser window). This is probably not the correct fix, but it works. Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
2018-11-20Make login button return user to previous pagePaul Eggleton
Send the current URL path as a parameter to the login URL so that after successfully logging in, you come back to where you were beforehand. Also hide the login/user drop-down on the login page since it's superfluous. Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
2018-11-19Return to previous page after Edit profilePaul Eggleton
Use a parameter to pass the current page to the Edit Profile URL so that saving or cancelling returns you to that same page. Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
2018-11-19Add search to layer dependencies list on edit/submit layer formPaul Eggleton
The layer index has quite a number of layers in it these days and thus this list is quite long to scroll through. Use the same layer filtering method as we do on the layers page for the dependencies list. Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
2018-11-19Add search to duplicates/comparison layer filter dialogPaul Eggleton
The layer index has quite a number of layers in it these days and thus this list is quite long to scroll through. Use the same layer filtering method as we do on the layers page, taking care to ensure that the "select all" and "select none" buttons only affect what you can see when the layer list is filtered. Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
2018-11-19Replace uitablefilter usage with jQueryPaul Eggleton
We were using uitablefilter.js to provide live filtering of table rows based upon a search field value, but it turns out this module really isn't necessary - we can accomplish the same thing using simple jQuery code. While we're at it, enable the search field on the layers list page to work in conjunction with with the drop-down layer type selection, fix pasting into the search field and refreshing with a search specified. Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
2018-11-19Use prop() instead of attr() to set checked propertyPaul Eggleton
Using attr('checked') is not reliable, the jQuery documentation recommends using prop() with jQuery 1.6 or later and it definitely works more reliably in my testing. Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
2018-11-19Tweak activation complete pagePaul Eggleton
* Add a convenience link to the login page * Make the language a bit less terse Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
2018-11-19Require re-registration if user changes email addressPaul Eggleton
If a user goes to Edit Profile and changes their email address, deactivate their account temporarily and make them go through the registration process to confirm that the new email address is in fact valid and theirs. Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
2018-11-06Improve password form formattingPaul Eggleton
Borrow the formatting from some of our other forms which looks much nicer (and shows field errors properly). Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
2018-11-06Add some text to the password reset emailPaul Eggleton
What we had before was a little bit terse, so add some reasonable text. Also mention in the confirmation page that sending an email is predicated on there actually being an account matching the specified email address (and we deliberately don't specify whether there is or not, in order to prevent user enumeration). Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
2018-11-06Enable password strength validation by defaultPaul Eggleton
Use Django's built-in password validators with reasonable settings, and add a basic complexity validator since there isn't one provided. Additionally, fix the registration form so that it shows the help text which includes a description of what the password requirements are. Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>