Skip to content

Commit

Permalink
Break slightly less when adding new contenttypes
Browse files Browse the repository at this point in the history
  • Loading branch information
bobdenotter committed May 21, 2020
1 parent 5142eb4 commit 9fdd750
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 9 deletions.
18 changes: 10 additions & 8 deletions public/theme/skeleton/partials/_aside.twig
Original file line number Diff line number Diff line change
Expand Up @@ -55,14 +55,16 @@
{% setcontent records = ct.slug ~ "/latest/3" %}

<h5>{{ __('contenttypes.generic.recent', {'%contenttypes%': ct.name}) }}</h5>
<ul>
{% for record in records %}
<li><a href="{{ record|link }}">{{ record|title }}</a></li>
{% else %}
<li>{{ __('contenttypes.generic.no-recent', {'%contenttype%': ct.slug}) }}</li>
{% endfor %}
</ul>
<p><a href="{{ path('listing', {'contentTypeSlug': ct.slug}) }}">{{ __('contenttypes.generic.overview',{'%contenttypes%': ct.name}) }} &raquo;</a></p>
{% if records|length %}
<ul>
{% for record in records %}
<li><a href="{{ record|link }}">{{ record|title }}</a></li>
{% endfor %}
</ul>
<p><a href="{{ path('listing', {'contentTypeSlug': ct.slug}) }}">{{ __('contenttypes.generic.overview',{'%contenttypes%': ct.name}) }} &raquo;</a></p>
{% else %}
<p>{{ __('contenttypes.generic.no-recent', {'%contenttype%': ct.slug}) }}</p>
{% endif %}

{% endfor %}

Expand Down
2 changes: 1 addition & 1 deletion templates/content/_buttons.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@

<hr>
<div class="form-fieldsgroup__summary-fields">
{% if record.status == "published" and record.definition.viewless != true %}
{% if record.status == "published" and record|link(true) %}
<a href="{{ record|link(true) }}" class="btn btn-tertiary btn-sm" target="_blank">{{ macro.icon('fa-sign-out-alt') }} {{ __('action.view_saved') }}</a>
{% endif %}
<a href="{{ record.extras.deleteLink }}" class='action-remove-collection-item btn btn-sm btn-hidden-danger' data-confirmation="{{ 'action.confirm_delete'|trans }}">
Expand Down

0 comments on commit 9fdd750

Please sign in to comment.