Image files were not getting uploaded due to the lack of enctype on the form.
Easy fix, hard discovery (sigh)
Fixes#413
Signed-off-by: Corey Shields <cshields@gmail.com>
Fix the toggling of the control-sidebar, the text coloring of the control-sidebar, and clean up html on the help page.
Signed-off-by: Corey Shields <cshields@gmail.com>
Adds a chart card showing the last month of decoded data as currently stored in influxdb.
Unfortunately there's no native way to count the number of 'entries' for a measurement across a given time, so we have to do a count(*) across all points. This returns a blob of <timestamp>, <count(pointa)>, <count(pointb)>, <...> and in almost (but not all) cases those counts will be identical but we have to account for it not, so I iterate over each timestamp (client side) and take the max count to assign to that point in time. Since we are doing a 30d query from influx with 1d aggregation this should not be too intensive.
Also cleaned up the coloring of the profile link buttons.
Signed-off-by: Corey Shields <cshields@gmail.com>
Update the card look and feel from the Data panel to match everything else in the Info/Profile panel.
Signed-off-by: Corey Shields <cshields@gmail.com>
Relates to #233Fixes#364
More improvements to the transmitter submission process to auto-convert PPB to Hz and back, as well as popover.js tooltips from help_text in the model.
Signed-off-by: Corey Shields <cshields@gmail.com>
Re-implementing the case-on-type of the prior db UI.
To keep CSP happy along with the fact that we dynamically load the modal with django-bootstrap-modal, the javascript for these modals is in a new file, and that file's hash is kept in the CSP.
Also re-introduces child_src to test fixing a safari mapbox bug
Relates to #233Fixes#387
The intent of the "5 recent submitters" on the satellite page is to show the 5 most recent stations and their last submitted time, whereas this was showing the last 5 submissions regardless of the ground station.
Signed-off-by: Corey Shields <cshields@gmail.com>
Fixes regression where 'submit transmitter' link and modal were visible and partly accessible when not authenticated. Also tightens the satellite edit modal similarly.
Signed-off-by: Corey Shields <cshields@gmail.com>
Removes the field.html include - and the frequent inclusion of that in the transmitter cards.
Fix a bug in satellite.js where input not recognized as an integer
Add gitlab links to the version info
Removes the manually-entered kaitai struct field from view (will need removed from db in a later change) - replacing with a procedurally generated list of fields from the class imported through satnogsdecoders.
Fixes#385
Signed-off-by: Corey Shields <cshields@gmail.com>