Skip to content

Commit

Permalink
updates for tethys-4.3
Browse files Browse the repository at this point in the history
  • Loading branch information
jakeymac committed Aug 16, 2024
1 parent 6ffe1f8 commit d3aa38f
Show file tree
Hide file tree
Showing 8 changed files with 13 additions and 15 deletions.
7 changes: 3 additions & 4 deletions install.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,11 @@ requirements:
skip: false
conda:
channels:
- conda-forge
- conda-forge
packages:
- pandas

- pandas
pip:

npm:

post:
post:
2 changes: 1 addition & 1 deletion tethysapp/map_layout_tutorial/app.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from tethys_sdk.base import TethysAppBase


class MapLayoutTutorial(TethysAppBase):
class App(TethysAppBase):
"""
Tethys app class for Map Layout Tutorial.
"""
Expand Down
9 changes: 4 additions & 5 deletions tethysapp/map_layout_tutorial/controllers.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
from tethys_sdk.layouts import MapLayout
from tethys_sdk.routing import controller
from .app import MapLayoutTutorial as app

from .app import App

@controller(name="home", app_workspace=True)
class MapLayoutTutorialMap(MapLayout):
app = app
base_template = 'map_layout_tutorial/base.html'
app = App
base_template = f'{App.package}/base.html'
map_title = 'Map Layout Tutorial'
map_subtitle = 'NOAA-OWP NextGen Model Outputs'
map_subtitle = 'NOAA-OWP NextGen Model Outputs'
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{% extends "tethys_apps/app_base.html" %}

{% load static %}
{% load static tethys %}

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

Expand Down Expand Up @@ -33,10 +33,10 @@

{% block content_dependent_styles %}
{{ block.super }}
<link href="{% static 'map_layout_tutorial/css/main.css' %}" rel="stylesheet"/>
<link href="{% static tethys_app|public:'css/main.css' %}" rel="stylesheet"/>
{% endblock %}

{% block scripts %}
{{ block.super }}
<script src="{% static 'map_layout_tutorial/js/main.js' %}" type="text/javascript"></script>
<script src="{% static tethys_app|public:'js/main.js' %}" type="text/javascript"></script>
{% endblock %}
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{% extends "map_layout_tutorial/base.html" %}
{% load tethys_gizmos %}
{% extends tethys_app.package|add:"/base.html" %}
{% load tethys %}

{% block header_buttons %}
<div class="header-button glyphicon-button" data-bs-toggle="tooltip" data-bs-placement="bottom" title="Help">
Expand Down
Empty file.

0 comments on commit d3aa38f

Please sign in to comment.