layerindex-web/templates
Tim Orling 921308416c layerindex: add Update Layer UI feature
* 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>
2024-01-03 13:33:37 -08:00
..
admin Use Django sites framework to specify website title 2013-12-28 11:03:29 +00:00
django_registration Disable autocomplete on sensitive fields 2019-07-17 11:31:04 +12:00
layerindex layerindex: add Update Layer UI feature 2024-01-03 13:33:37 -08:00
registration Add license / note for django-registration-templates 2019-07-17 11:31:04 +12:00
rrs templates/*: staticfiles -> static 2022-01-13 23:36:22 -08:00
404.html Upgrade to Django 1.6+ 2016-06-12 11:33:08 +12:00
500.html Move all templates to a templates directory 2013-03-06 16:55:23 +00:00
base_toplevel.html Upgrade to Bootstrap 3 2018-09-20 15:57:59 +12:00
base.html bootstrap: add version to filenames 2023-10-16 17:40:01 -07:00