Skip to content

Commit 256dade

Browse files
committed
updates for tethys-4.3
1 parent 0d68cd2 commit 256dade

File tree

8 files changed

+11
-12
lines changed

8 files changed

+11
-12
lines changed

install.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff 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:

tethysapp/map_layout_tutorial/app.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
from 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
"""

tethysapp/map_layout_tutorial/controllers.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
from django.shortcuts import render
21
from tethys_sdk.routing import controller
32
from tethys_sdk.gizmos import Button
3+
from .app import App
44

55
@controller
66
def home(request):
@@ -71,4 +71,4 @@ def home(request):
7171
'next_button': next_button
7272
}
7373

74-
return render(request, 'map_layout_tutorial/home.html', context)
74+
return App.render(request, 'home.html', context)
-34.9 KB
Loading

tethysapp/map_layout_tutorial/workspaces/app_workspace/.gitkeep renamed to tethysapp/map_layout_tutorial/resources/.gitkeep

File renamed without changes.

tethysapp/map_layout_tutorial/templates/map_layout_tutorial/base.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{% extends "tethys_apps/app_base.html" %}
22

3-
{% load static %}
3+
{% load static tethys %}
44

55
{% block title %}{{ tethys_app.name }}{% endblock %}
66

@@ -33,10 +33,10 @@
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 %}

tethysapp/map_layout_tutorial/templates/map_layout_tutorial/home.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
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">

tethysapp/map_layout_tutorial/workspaces/user_workspaces/.gitkeep

Whitespace-only changes.

0 commit comments

Comments
 (0)