mirror of
https://github.com/wallabag/wallabag.git
synced 2024-11-23 01:21:03 +00:00
Added default value for title on entry view
This commit is contained in:
parent
8ffcee8aff
commit
c04bde29a3
2 changed files with 4 additions and 4 deletions
|
@ -1,11 +1,11 @@
|
||||||
{% extends "WallabagCoreBundle::layout.html.twig" %}
|
{% extends "WallabagCoreBundle::layout.html.twig" %}
|
||||||
|
|
||||||
{% block title %}{{ entry.title|e|raw }} ({{ entry.domainName|removeWww }}){% endblock %}
|
{% block title %}{{ entry.title|e|raw|default('entry.default_title'|trans) }} ({{ entry.domainName|removeWww }}){% endblock %}
|
||||||
|
|
||||||
{% block content %}
|
{% block content %}
|
||||||
<div id="article">
|
<div id="article">
|
||||||
<header class="mbm">
|
<header class="mbm">
|
||||||
<h1>{{ entry.title|e|raw }} <a href="{{ path('edit', { 'id': entry.id }) }}" class="nostyle" title="{{ 'entry.view.edit_title'|trans }}">✎</a></h1>
|
<h1>{{ entry.title|e|raw |default('entry.default_title'|trans) }} <a href="{{ path('edit', { 'id': entry.id }) }}" class="nostyle" title="{{ 'entry.view.edit_title'|trans }}">✎</a></h1>
|
||||||
</header>
|
</header>
|
||||||
|
|
||||||
<div id="article_toolbar">
|
<div id="article_toolbar">
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{% extends "WallabagCoreBundle::layout.html.twig" %}
|
{% extends "WallabagCoreBundle::layout.html.twig" %}
|
||||||
|
|
||||||
{% block title %}{{ entry.title|striptags|raw }} ({{ entry.domainName|removeWww }}){% endblock %}
|
{% block title %}{{ entry.title|striptags|raw|default('entry.default_title'|trans) }} ({{ entry.domainName|removeWww }}){% endblock %}
|
||||||
|
|
||||||
{% block body_class %}entry{% endblock %}
|
{% block body_class %}entry{% endblock %}
|
||||||
|
|
||||||
|
@ -223,7 +223,7 @@
|
||||||
{% block content %}
|
{% block content %}
|
||||||
<div id="article">
|
<div id="article">
|
||||||
<header class="mbm">
|
<header class="mbm">
|
||||||
<h1>{{ entry.title|striptags|raw }} <a href="{{ path('edit', { 'id': entry.id }) }}" title="{{ 'entry.view.edit_title'|trans }}">✎</a></h1>
|
<h1>{{ entry.title|striptags|raw|default('entry.default_title'|trans) }} <a href="{{ path('edit', { 'id': entry.id }) }}" title="{{ 'entry.view.edit_title'|trans }}">✎</a></h1>
|
||||||
</header>
|
</header>
|
||||||
<aside>
|
<aside>
|
||||||
<div class="tools">
|
<div class="tools">
|
||||||
|
|
Loading…
Reference in a new issue