aboutsummaryrefslogtreecommitdiffstats
path: root/templates
AgeCommit message (Collapse)Author
2018-05-07Add CSV export for layer recipesPaul Eggleton
Add the ability to export the recipe listing for a layer to a CSV file for importing into external tools. At the moment we include name, version and license, but there is a parameter that lets you specify the fields to include in the URL if desired. Implements [YOCTO #12722]. Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
2018-05-07Drop old raw recipe export codePaul Eggleton
We're about to replace this with a proper CSV export function, so we don't need this dead code hanging around anymore. Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
2018-05-04rrs: add flag to MaintenancePlan to specify layer-wide maintainersPaul Eggleton
Most layers do not track maintenance on a per-recipe basis, and for those layers we will hide some of the per-recipe maintainer features and on the recipe detail show the layer maintainer(s) as the maintainer(s) of the recipe. Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
2018-05-04templates/rrs: replace use of = with ==Paul Eggleton
I can't quite tell which Django version broke this, but in any case based on what's in pagination.html it seems we ought to have been using == already. Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
2018-05-04rrs: add charts pagePaul Eggleton
Add some basic charts to show recipe upstream / patch status. Implements [YOCTO #7909]. Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
2018-05-04rrs: add patch listing to recipe list and detailPaul Eggleton
Expose the newly added patch information in the RRS: * Add a table to the recipe detail listing the patches for the recipe * Add pending / total counts to the recipe list page Implements [YOCTO #7909]. Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
2018-05-04Implement patch trackingPaul Eggleton
Collect information about patches applied by a recipe, and record each patch along with the upstream status, presenting them in the recipe detail. Implements [YOCTO #7909]. Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
2018-05-04rrs: restore full-width pagesPaul Eggleton
Upon consideration, for the width of the information we want to present we do actually want full-width pages for the RRS. When this was changed earlier in the rrs branch it was changed in the base template, but we want to keep the same style elsewhere, so put a block in that will let use the "container-fluid" style (full width) in the RRS pages and "container" by default everywhere else. Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
2018-05-04Turn URLs into links in layer notesPaul Eggleton
It's often useful to add a link to another page for more information when adding a layer note, so turn any included URLs into actual links. Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
2018-05-04Implement layer web repo commit URLPaul Eggleton
The Recipe Reporting System needs to be able to provide links to commits in the web interface for the repository, but we can only do this if we have a custom template URL just like we do for file/tree links, since it's different for different git web interfaces. Add support in all the various places for such a URL and make use of it in the RRS. Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
2018-05-04rrs: support new source structure in recipe detailPaul Eggleton
In the rrs branch we used to just store SRC_URI in a field, however we now have a proper model to store sources, so use that in the RRS recipe detail page. Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
2018-05-04Add a link from the Tools drop-down to the RRS if enabledPaul Eggleton
If the RRS is enabled, then add a link to it in the tools menu. I don't expect this to be used a lot, but otherwise the only way you'd get there would be either externally or via the link from the layer detail. Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
2018-05-04rrs: Add link to layer detail to breadcrumb on recipe detailPaul Eggleton
Add a convenience link to the layer detail to the breadcrumb (also as an indicator, since it's possible to have more than one layer in the maintenance plan). Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
2018-05-04rrs: add breadcrumb to recipe detail pagePaul Eggleton
Make it possible to get back to the maintenance plan from the recipe detail page. Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
2018-05-04rrs: add titles to maintainers/recipes pagePaul Eggleton
Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
2018-05-04rrs: handle dependency field differencesPaul Eggleton
The old RRS branch had its own addition of dependency support, but in the mean time we added that to the layer index in the master branch using a different structure. Adapt the RRS recipe detail page to that structure. Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
2018-05-04Add link to maintenance plan in layer detailPaul Eggleton
If the RRS is enabled, then add a way to get from the layer detail page to any maintenance plans in which the layer is included. Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
2018-05-04rrs: use default milestone instead of "All" for release drop-downPaul Eggleton
Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
2018-05-04rrs: add maintenance plan selectionPaul Eggleton
Add a drop-down for selecting the maintenance plan from the recipes page. Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
2018-05-04rrs: handle maintenance plans in viewsPaul Eggleton
Insert maintenance plan into views, their corresponding URLs and templates. Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
2018-05-04rrs_upstream_email: reworkPaul Eggleton
* Use maintenance plans to get layerbranches * Use from/to/subject and admin contact from maintenance plan * Use an actual template to render the email (and drop tabulate dependency) * Improve grammar in the email text * Use a single line to represent the most recent commit Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
2018-05-04Rename RRS URLs to have rrs_ prefixPaul Eggleton
Make these distinct from the layerindex ones. Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
2018-05-04Drop "load url from future"Paul Eggleton
This is no longer needed with current Django versions. Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
2018-05-04templates/rrs/recipedetail.html: Change Maintainer to CommitterAníbal Limón
To avoid confusion about who is the current maintainer. Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
2018-05-04templates/rrs/recipedetail.html: Fix unneeded quotes in url callAníbal Limón
The url template function resolve an URL associated with a model, so in Django 1.6 quotes around variables don't get the variable value. Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
2018-05-04rrs: Frontend update to work with Python3 and djangoAníbal Limón
[YOCTO #9746] Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
2018-05-04Show the 'Upstream version' column only when relevantBelen Barros Pena
Currently the recipes table always shows the 'Upstream version' column. However, for recipes up-to-date, this column is irrelevant, since for such recipes 'version' always equals 'upstream version'. Since the vast majority of the recipes are up-to-date, when you are showing all the recipes the 'upstream version' column is also pretty useless. The column is only really relevant when you are looking at recipes with status 'not updated' or 'can't be updated'. I would have thought there would be nothing to show in the 'Upstream version' column for recipes with status 'Unknown', but it turns out some of those do have an upstream version value, that I thought might be useful to the maintainer somehow. So, this patch hides the 'Upstream version' column whenever you are looking at all the recipes or up-to-date recipes; and shows it when you select any of the other recipe statuses Signed-off-by: Belen Barros Pena <belen.barros.pena@intel.com>
2018-05-04rrs/recipes: Add support for persist search and filters.Aníbal Limón
Now when search something the URL is modified and you can share the URL for access to the data. [YOCTO #7809] Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
2018-05-04templates/rrs/recipes.html: Re-add the sort property into Maintainer.Aníbal Limón
When last updated colum comes we lost the sort property. Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
2018-05-04rrs/base_toplevel.html: Navbar redesignMariano Lopez
This provides changes in the front end for the navbar, now it shows the percentage of recipes up-to-date, not update, unknown and can't be updated along with the number of recipes. This also moves the update percentage to the end and adds clarity to what it means. This also moves the export list button the the top bar. [YOCTO #8020] Signed-off-by: Mariano Lopez <mariano.lopez@linux.intel.com> Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
2018-05-04rrs: avoid too many columns in the recipes tableBelen Barros Pena
Currently, when you select 'Can't be updated' in the upstream status filter, the resulting table will add the 'No update reason' column to the default column set. Although this is probably useful information to see in the table itself, it results in too many columns, and a rather unpleasant layout change. This patch hides the 'Summary' column whenever you select 'Can't be updated' in the upstream status filter, effectively replacing the 'Summary' with the 'No update reason' column, which is probably more relevant in this context. Now you have less columns distracting you, and a slightly less jumpy layout change. A designer would have come up with this solution in the first place. Sadly, she was never asked. Signed-off-by: Belen Barros Pena <belen.barros.pena@linux.intel.com> Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
2018-05-04rrs: remove sorting from the 'No update reason' columnBelen Barros Pena
Nothing useful can come from sorting by this column. Signed-off-by: Belen Barros Pena <belen.barros.pena@linux.intel.com> Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
2018-05-04recipes.html: Format change for last updated columnMariano Lopez
This changes the format of the last updated column. Now the column text is set to the default text color. [YOCTO #8018] Signed-off-by: Mariano Lopez <mariano.lopez@linux.intel.com>
2018-05-04recipes.html: Add Last Updated columnMariano Lopez
Added a column in the recipes view that show the last time a recipe was updated when is not up-to-date Signed-off-by: Mariano Lopez <mariano.lopez@linux.intel.com> Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
2018-05-04base_toplevel.html: Changed format of percentage doneMariano Lopez
Changed the text of percentage done to updated. Also added a tooltip that shows how this percentage is calculated. Signed-off-by: Mariano Lopez <mariano.lopez@linux.intel.com> Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
2018-05-04views.py: Add how long a recipe hasn't been updatedMariano Lopez
This add a tooltip in the upstream status field that show how long the recipe hasn't been updated. Signed-off-by: Mariano Lopez <mariano.lopez@linux.intel.com> Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
2018-05-04templates/rrs/maintainers.html: Added links to recipe page. ↵Mariano Lopez
rrs/static/css/rrs-additional.css: Added formating to the table footer. Added links to recipe page using the update status filter in the header. Changed the <th> tags in the footer to <td>. Added color to the footer format instead of bold. Signed-off-by: Mariano Lopez <mariano.lopez@linux.intel.com> Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
2018-05-04templates/rrs/maintainers.html: Added total row at the end of the table.Mariano Lopez
Added footer for the table and function updateTotals. Added class and/or id attributes to some existing html tags. Didn't modified existing class or id attributes for existing html tags. Signed-off-by: Mariano Lopez <mariano.lopez@linux.intel.com> Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
2018-05-04templates/rrs: Recipes and Maintainers UI search improvmentsAníbal Limón
Display button without btn-info to give consistency in the UI. Don't display clear search button when search isn't active. Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
2018-05-04rrs: RecipeDetail show milestone instead of all in upgrades tableAníbal Limón
Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
2018-05-04templates/rrs/recipes.html: Only apply sort to Recipe column at loadAníbal Limón
Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
2018-05-04templates/rrs/recipes.html: Fix url params in JSAníbal Limón
Add parse with HTML entity to avoid problems when parameters passed in URL to JS. Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
2018-05-04rrs: Release/Milestone improvmentsAníbal Limón
rrs/models.py: Milestone now have unique in Release and Name fields instead of only field. When try to get current milestone give priority to Mn instead of All. templates/rrs/base_toplevel.html: Display only release name when milestone is All. Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
2018-05-04rrs: Maintainers statistics fixed sorting of weeksAníbal Limón
Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
2018-05-04rrs: UI add clear search button in Recipes and MaintainersAníbal Limón
This enables the user to clear current search content and restore the orginial status. Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
2018-05-04rrs: Add support to display no update reasonAníbal Limón
Display no update reason when upstream status filter is Can't be updated this helps to review the reason. Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
2018-05-04rrs: Set of UI improvmentsBelen Barros Pena
Give some space to the tabs, Add some top margin to the nav-pills class so we create some breathing space between the milestone overview and the tabs. Change 'No Maintainer' to 'No maintainer' Just to keep the capitalisation style consistent across the interface. Apply the muted class to all not-sortable table headings The class was missing from the Recipe and Maintainer columns in the recipes table; and from the Not updated and % done column in the maintainers table. Remove the strong tag from the recipe status information This is just to match the presentation of the milestone overview information in the base_toplevel.html template. Separate the footer from the bottom of the viewport, It's hard to see the footer on click on its links when they are so close to the bottom of the veiwport, so add some margin at the bottom of the footer <div>. Change the label of the recipes tab, From 'Recipes status' to 'Recipes upstream status' to match the label of the 'Upstream status' filter in the recipes table. Signed-off-by: Belen Barros Pena <belen.barros.pena@intel.com> Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
2018-05-04Remove milestone name from recipe details pageBelen Barros Pena
The idea of having the milestone name showing in the h1 of the recipe details page was based on the assumption that there would a recipe details page per recipe per milestone. This is not the case: there is only one recipe details page that shows all the existing updates up to the current milestone. In this situation, if you land on the recipe details page from a past milestone, the display of the current milestone is confusing, since it doesn't match the milestone you came from. An easy way to sort this out is simply remove the milestone from the page heading. Signed-off-by: Belen Barros Pena <belen.barros.pena@intel.com>
2018-05-04templates/rrs/base_toplevel.html: Remove Recipes word in statistics barAníbal Limón
Remove Recipes word in statistics bar to make UI more clean avoiding repeat redundant word. Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
2018-05-04rrs: Add support to display sort status Recipes and Maintainers UIAníbal Limón
Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>