Browse Source

add dynamical favicons

master
ghost 9 months ago
parent
commit
1200fdf8d0
  1. 2
      templates/default/layout.html.twig
  2. 1
      templates/default/main/namespace.html.twig
  3. 1
      templates/default/main/transaction.html.twig

2
templates/default/layout.html.twig

@ -4,7 +4,7 @@ @@ -4,7 +4,7 @@
<meta charset="UTF-8" />
<title>{% block title %}{{ app.name }}{% endblock %}</title>
<link rel="stylesheet" type="text/css" href="/css/{{ app.theme }}.css?{{ app.version }}" />
<link rel="icon" href="{% block favicon %}/favicon.ico{% endblock %}" />
{% block favicon %}{% endblock %}
</head>
<body>
{% block body %}{% endblock %}

1
templates/default/main/namespace.html.twig

@ -1,5 +1,6 @@ @@ -1,5 +1,6 @@
{% extends 'default/layout.html.twig' %}
{% block title %}{% if title %}{{ title }} - {% endif %}{% if request.get('part') > 1 %}{{ 'Part' | trans | upper }} {{ request.get('part') }} - {% endif %}{{ app.name }}{% endblock %}
{% block favicon %}<link rel="icon" href="{{ request.get('namespace') | jIdenticon }}" />{% endblock %}
{% block body %}
<div class="t-center px-16 pt-54">
<div class="mx-a mw-560 px-16">

1
templates/default/main/transaction.html.twig

@ -1,5 +1,6 @@ @@ -1,5 +1,6 @@
{% extends 'default/layout.html.twig' %}
{% block title %}{% if title %}{{ title }} - {% endif %}{{ app.name }}{% endblock %}
{% block favicon %}<link rel="icon" href="{{ record.namespace | jIdenticon }}" />{% endblock %}
{% block body %}
<div class="t-center px-16 pt-54">
<div class="mx-a mw-560 px-16">

Loading…
Cancel
Save