Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a "pagetitle" block to Silky templates #661

Merged
merged 2 commits into from
Jul 29, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion silk/templates/silk/base/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<!DOCTYPE html>
<html>
<head>
<title>Silky</title>
<title>{% block pagetitle %}Silky{% endblock %}</title>
<link rel="stylesheet" href="{% static "silk/css/components/fonts.css" %}"/>
<link rel="stylesheet" href="{% static "silk/css/components/colors.css" %}"/>
<link rel="stylesheet" href="{% static "silk/lib/jquery-ui-1.13.1.min.css" %}"/>
Expand Down
2 changes: 2 additions & 0 deletions silk/templates/silk/clear_db.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
{% extends 'silk/base/root_base.html' %}
{% load silk_inclusion %}
{% load static %}
{% block pagetitle %}Silky - Clear DB{% endblock %}

{% block menu %}
{% root_menu request %}
{% endblock %}
Expand Down
4 changes: 3 additions & 1 deletion silk/templates/silk/cprofile.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
{% load silk_inclusion %}
{% load static %}

{% block pagetitle %}Silky - CProfile - {{ silk_request.path }}{% endblock %}

{% block js %}
<script type="text/javascript" src="{% static 'silk/lib/viz-lite.js' %}"></script>
<script type="text/javascript" src="{% static 'silk/lib/svg-pan-zoom.min.js' %}"></script>
Expand All @@ -23,7 +25,7 @@

{% block data %}
<div class="wrapper">
<div id="query-div">
<div id="query-div">
{% if silk_request.pyprofile %}
<div id="pyprofile-div">
<div class="heading">
Expand Down
2 changes: 2 additions & 0 deletions silk/templates/silk/profile_detail.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
{% load silk_inclusion %}
{% load static %}

{% block pagetitle %}Silky - Profile Detail - {{ silk_request.path }}{% endblock %}

{% block js %}
<script type="text/javascript" src="{% static 'silk/lib/viz-lite.js' %}"></script>
<script type="text/javascript" src="{% static 'silk/lib/svg-pan-zoom.min.js' %}"></script>
Expand Down
2 changes: 2 additions & 0 deletions silk/templates/silk/profiling.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
{% load static %}
{% load silk_inclusion %}

{% block pagetitle %}Silky - Profiling - {{ silk_request.path }}{% endblock %}

{% block menu %}
{% if silk_request %}
{% request_menu request silk_request %}
Expand Down
2 changes: 2 additions & 0 deletions silk/templates/silk/request.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
{% load silk_filters %}
{% load silk_inclusion %}
{% load static %}
{% block pagetitle %}Silky - Request - {{ silk_request.path }}{% endblock %}

{% block style %}
<link rel="stylesheet" href="{% static 'silk/css/components/cell.css' %}"/>
<link rel="stylesheet" href="{% static 'silk/css/components/numeric.css' %}"/>
Expand Down
2 changes: 2 additions & 0 deletions silk/templates/silk/requests.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
{% load silk_inclusion %}
{% load static %}

{% block pagetitle %}Silky - Requests{% endblock %}

{% block style %}
{{ block.super }}
<link rel="stylesheet" href="{% static 'silk/css/pages/requests.css' %}"/>
Expand Down
2 changes: 2 additions & 0 deletions silk/templates/silk/sql.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
{% load static %}
{% load silk_inclusion %}

{% block pagetitle %}Silky - SQL - {{ silk_request.path }}{% endblock %}

{% block js %}
<script type="text/javascript" src="{% static 'silk/lib/sortable.js' %}"></script>
{{ block.super }}
Expand Down
2 changes: 2 additions & 0 deletions silk/templates/silk/sql_detail.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
{% load silk_nav %}
{% load silk_inclusion %}

{% block pagetitle %}Silky - SQL Detail - {{ silk_request.path }}{% endblock %}

{% block js %}
{{ block.super }}
<script src="{% static 'silk/js/pages/sql_detail.js' %}"></script>
Expand Down
2 changes: 2 additions & 0 deletions silk/templates/silk/summary.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
{% root_menu request %}
{% endblock %}

{% block pagetitle %}Silky - Summary{% endblock %}

{% block style %}
{{ block.super }}
<link rel="stylesheet" href="{% static 'silk/css/pages/summary.css' %}"/>
Expand Down
Loading