File tree Expand file tree Collapse file tree 8 files changed +13
-15
lines changed
tethysapp/map_layout_tutorial
templates/map_layout_tutorial
workspaces/user_workspaces Expand file tree Collapse file tree 8 files changed +13
-15
lines changed Original file line number Diff line number Diff line change @@ -10,12 +10,11 @@ requirements:
1010 skip : false
1111 conda :
1212 channels :
13- - conda-forge
13+ - conda-forge
1414 packages :
15- - pandas
16-
15+ - pandas
1716 pip :
1817
1918 npm :
2019
21- post:
20+ post :
Original file line number Diff line number Diff line change 11from tethys_sdk .base import TethysAppBase
22
33
4- class MapLayoutTutorial (TethysAppBase ):
4+ class App (TethysAppBase ):
55 """
66 Tethys app class for Map Layout Tutorial.
77 """
Original file line number Diff line number Diff line change 11from tethys_sdk .layouts import MapLayout
22from tethys_sdk .routing import controller
3- from .app import MapLayoutTutorial as app
4-
3+ from .app import App
54
65@controller (name = "home" , app_workspace = True )
76class MapLayoutTutorialMap (MapLayout ):
8- app = app
9- base_template = 'map_layout_tutorial /base.html'
7+ app = App
8+ base_template = f' { App . package } /base.html'
109 map_title = 'Map Layout Tutorial'
11- map_subtitle = 'NOAA-OWP NextGen Model Outputs'
10+ map_subtitle = 'NOAA-OWP NextGen Model Outputs'
File renamed without changes.
Original file line number Diff line number Diff line change 11{% extends "tethys_apps/app_base.html" %}
22
3- {% load static %}
3+ {% load static tethys %}
44
55{% block title %}{{ tethys_app.name }}{% endblock %}
66
3333
3434{% block content_dependent_styles %}
3535 {{ block.super }}
36- < link href ="{% static 'map_layout_tutorial/ css/main.css' %} " rel ="stylesheet "/>
36+ < link href ="{% static tethys_app|public:' css/main.css' %} " rel ="stylesheet "/>
3737{% endblock %}
3838
3939{% block scripts %}
4040 {{ block.super }}
41- < script src ="{% static 'map_layout_tutorial/ js/main.js' %} " type ="text/javascript "> </ script >
41+ < script src ="{% static tethys_app|public:' js/main.js' %} " type ="text/javascript "> </ script >
4242{% endblock %}
Original file line number Diff line number Diff line change 1- {% extends "map_layout_tutorial /base.html" %}
2- {% load tethys_gizmos %}
1+ {% extends tethys_app.package|add:" /base.html" %}
2+ {% load tethys %}
33
44{% block header_buttons %}
55 < div class ="header-button glyphicon-button " data-bs-toggle ="tooltip " data-bs-placement ="bottom " title ="Help ">
You can’t perform that action at this time.
0 commit comments