aboutsummaryrefslogtreecommitdiffstats
path: root/lib/toaster/toastergui/templates/importlayer.html
AgeCommit message (Collapse)Author
2017-09-17toaster: allow dots in user path namesDavid Reyna
The dot '.' character should be allowed in the user paths for local non-git layers, DL_DIR, and SSTATE_DIR. [YOCTO #10650] Signed-off-by: David Reyna <David.Reyna@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-09-17toaster: reserve HEAD from imported layersDavid Reyna
The HEAD reference in Toaster layers are reserved for the "Local Yocto Project" layers, stored at the top directory. Imported layers are not allowed to use this since they are managed differently - for example the 'remotes' will collide. Fix the add layer handler to not drop the data fields when it is a git repo. Explicitly inform the user when an internal Toaster error is returned via AJAX, so that they know why clicking the layer add button did not do anything. [YOCTO #9924] Signed-off-by: David Reyna <David.Reyna@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2016-12-12toaster: importlayer Add git revision typeahead to that input fieldMichael Wood
Add the front end mechanism to load the typeahead for the git revision field on importing a layer. Also fix one indentation issue and update the js test. Signed-off-by: Michael Wood <michael.g.wood@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2016-12-12toaster: api Add layer Add apiMichael Wood
Add layer adding REST api and remove old views method. Signed-off-by: Michael Wood <michael.g.wood@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2016-09-06toaster: import layer Layout fixesBelen Barros Pena
The layout of the import layer form was looking a bit awkward. This commit tidies things up a bit. Signed-off-by: Belen Barros Pena <belen.barros.pena@linux.intel.com> Signed-off-by: Michael Wood <michael.g.wood@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2016-08-11toaster: add import of local directory to UISujith H
This patch will help to add local directory to UI. The modification is made in importlayer.html file. The radio buttons are created to separate selection of git based repo and local directory. Co-Author: Belen Barros Pena <belen.barros.pena@linux.intel.com> [YOCOT #9911] Signed-off-by: Sujith H <sujith.h@gmail.com>
2016-06-13toaster: Migrate project configuration from bootstrap 2 to bootstrap 3Belen Barros Pena
Convert all the HTML templates, JS and CSS in the project parts of toaster to use bootstrap 3. Signed-off-by: Belen Barros Pena <belen.barros.pena@linux.intel.com> Signed-off-by: Michael Wood <michael.g.wood@intel.com>
2016-03-07toaster: change 'revision' to 'Git revision'Belen Barros Pena
I've received some feedback on the 'Revision' label we use in the import layer page. It is not quite communicating that what's required is a Git revision. Changing it to 'Git revision' to make it a bit more specific. The change applies not only to the import layer page, but to all pages showing revision information in the project configuration section. For more on the feedback received, check https://bugzilla.yoctoproject.org/show_bug.cgi?id=8429#c3 Signed-off-by: Belen Barros Pena <belen.barros.pena@linux.intel.com> Signed-off-by: Elliot Smith <elliot.smith@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2015-10-29toaster: templates Add meaningful title tagsBelen Barros Pena
Our title tags are all over the place, and have no relation to the page content. This commit adds a meaningful title tag to each Toaster page. Signed-off-by: Belen Barros Pena <belen.barros.pena@intel.com> Signed-off-by: Michael Wood <michael.g.wood@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2015-08-06toastergui: fix spacing in the import layers pageBelen Barros Pena
Adjust the space between the first fieldset and the tabs, and the help text and the first form field. Signed-off-by: Belen Barros Pena <belen.barros.pena@intel.com> Signed-off-by: Michael Wood <michael.g.wood@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2015-08-01toastergui: Add new project page and navigationMichael Wood
This brings in the new project page design and improved navigation. As this also removes the dependency on Angular it also required that the entry points to the project page such as machine-change notifications are also updated. [YOCTO #7329] Signed-off-by: Michael Wood <michael.g.wood@intel.com> Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2015-08-01toastergui: Implement new project navigationMichael Wood
Change the structure of the project page to include a navigation menu and top tab navigation. Remove old breadcrumb method. [YOCTO #7329] Signed-off-by: Michael Wood <michael.g.wood@intel.com> Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2015-06-25toasterui: fixes after html5 compliance testingAlexandru DAMIAN
This patch brings fixes for issues highlighted by HTML5 compliance testing. Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
2015-06-10toastergui: remove xhr_datatypeahaed layerdeps callAlexandru DAMIAN
This patch removes the url-constructing calls to get the layer details in favor of embedding the look-up URL in the JSON data on the layer list page. This allows further removal of the XHR-specific code for layer dependencies in favor of REST calls to layer details data. Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
2015-05-14toaster: fix html5 complianceAlexandru DAMIAN
This patch brings needed changes in all views so that each view passes the HTML5 compliance test by the W3C Markup Service. Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
2015-05-14toastergui: change the import layer action help textBelen Barros Pena
To match the form labels and the order in which the information is requested. That should make understanding the text easier. Signed-off-by: Belen Barros Pena <belen.barros.pena@intel.com>
2015-05-12toasterui: URL refactoringAlexandru DAMIAN
This is a URL refactoring needed to remove the inadvertent usage of server-side user session in a REST-style API. We move the parameters that were stored in the user session to the URL, making navigation more robust. This refactoring allows a clean (no 500 HTTP return codes) crawl of the website following inside links. Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
2015-05-01toaster: Refactor and expand layer add remove mechanismMichael Wood
We have multiple pages which have buttons to add and remove layers this patch adds functionality to libtoaster to abstract this and implements it in the pages affected. We handle loading and showing the dependencies dialog here too and generating the notification messages. Also implemented is using the selectmachine api from the projectapp to avoid having to handle this in each page that allows selecting machines. A small number of jshint issues, help text and the machine page name have also been fixed. Signed-off-by: Michael Wood <michael.g.wood@intel.com>
2015-05-01toaster: Move project context variables to common scopeMichael Wood
We have a bunch of context data which are used in multiple pages so it makes more sense to have this in a single place libtoaster.ctx that's accessible from each page rather than request it from every page. Signed-off-by: Michael Wood <michael.g.wood@intel.com>
2015-03-09toaster: Enforce unique layer namesMichael Wood
We had some clever functionality to manage duplicate layer names by using layer versions and new revisions, unfortunately this was too opaque to the user. [YOCTO #7337] Signed-off-by: Michael Wood <michael.g.wood@intel.com>
2015-03-09toastergui: bring back base URLs for pages that need themAlexandru DAMIAN
Some URLs, although invalid on their own, are used in JS to build valid page pointers. Previous patch removed two of these URLs, breaking the display of several patches. This patch re-adds these URLs with different names, and returns 400 Bad Request empty pages on them, which is consistent with the intended usage of these URLs. Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
2015-02-24toastergui: fix spacing and input field sizesBelen Barros Pena
The revision label was missing the projec-form class (which controls the spacing in the form), and the revision text field was a bit too long, so changed it from span4 to span3. Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2015-02-18toaster: importlayer Remove description input fieldMichael Wood
This wasn't required or working due to a typo and adds ambiguity between the summary and description. The correct method for changing the description or summary is via the layerdetails page. [YOCTO #7190] Signed-off-by: Michael Wood <michael.g.wood@intel.com>
2014-12-12toaster: importlayer Tidy up the page initialisationMichael Wood
Tidy up the page initialisation and change the error logging so that it's consistent with other pages. Signed-off-by: Michael Wood <michael.g.wood@intel.com>
2014-12-12toaster: Formatting changes to error messagesBelen Barros Pena
Just giving a bit of space to the content of the error messages we show when you try to import a layer that already exists. Signed-off-by: Belen Barros Pena <belen.barros.pena@intel.com>
2014-12-12toaster: importlayer Avoid namespace clash with layer nameMichael Wood
This was causing validation issues as the layer name was being picked up from a different location in the dom. Signed-off-by: Michael Wood <michael.g.wood@intel.com>
2014-12-12toaster: tweaking the import layers formBelen Barros Pena
This commit makes the following changes to the import layers form: * In the explanatory text at the top of the page, show only the release description (to match the information shown in all other pages) * Make sure the spacing between form fields and labels is consistent across the form * Change the 'Branch, tag or commit' label to 'Revision' and add some help text to the label * Change the help text and the input type in the layer description * Change the help text next to the form actions to match the new field ordering in the form Signed-off-by: Belen Barros Pena <belen.barros.pena@linux.intel.com> Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
2014-12-12toaster: Add import layer feature.Michael Wood
This feature allows users to import layers from git into their current project and associate it with the release of the current project and the dependencies for the newly imported layer with existing layers. It will also resolve the child dependencies of the dependencies added. [YOCTO #6595] Signed-off-by: Michael Wood <michael.g.wood@intel.com> Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
2014-09-01toastergui: added pages for project detailsAlexandru DAMIAN
We add new pages for the layer importing, layer details, showing project builds and project configuration. The pages are in read-only mode, but they're needed as to be able to verify the quality of data in the system. Write capabilities will be added in a subsequent patch. [YOCTO #6595] [YOCTO #6590] [YOCTO #6591] [YOCTO #6588] [YOCTO #6589] Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>