Some updates to the tag overview for #3066 and #3067

This commit is contained in:
James Cole
2020-01-30 18:56:08 +01:00
parent a6fab50c20
commit b697b71e59
5 changed files with 127 additions and 103 deletions

View File

@@ -17,7 +17,7 @@
</div>
<form action="{{ route('tags.mass-destroy') }}" method="post">
<input type="hidden" name="_token" value="{{ csrf_token() }}"/>
{% for period,entries in clouds %}
{% for period, entries in tags %}
{% if entries|length > 0 %}
<div class="row">
<div class="col-lg-12 col-md-12 col-sm-12 col-xs-12">
@@ -28,19 +28,30 @@
</h3>
</div>
<div class="box-body">
<p class="tagcloud">
<div class="row">
{% for tagInfo in entries %}
<input type="checkbox" name="tags[]" value="{{ tagInfo.id }}">
<a style="font-size:{{ tagInfo.size }}px;" class="label label-success"
title="{{ tagInfo.created_at.formatLocalized(monthAndDayFormat) }}"
href="{{ route('tags.show',tagInfo.id) }}">
{% if tagInfo.location %}
<i class="fa fa-fw fa-map-marker"></i>
{% endif %}
<i class="fa fa-fw fa-tag"></i>
{{ tagInfo.tag }}</a>
<div class="col-xs-6 col-sm-4 col-md-3 col-lg-2"
style="line-height: 1.7em;"
><input type="checkbox" name="tags[]" value="{{ tagInfo.id }}"> <a
class="label label-success"
style="font-weight: normal;font-size:0.9em;"
title="{{ tagInfo.created_at.formatLocalized(monthAndDayFormat) }}"
href="{{ route('tags.show',tagInfo.id) }}">{% if tagInfo.location %}<i
class="fa fa-fw fa-map-marker"></i>{% endif %}<i class="fa fa-fw fa-tag"></i>{{ tagInfo.tag }}</a></div>
{% endfor %}
</p>
</div>
<ul class="list-inline">
{% for tagInfo in entries %}
<li>
<!--&nbsp;-->
</li>
{% endfor %}
</ul>
</div>
</div>
</div>
@@ -51,9 +62,9 @@
<div class="col-lg-12 col-md-12 col-sm-12 col-xs-12">
<p>
<a class="btn btn-success" href="{{ route('tags.create') }}"><i class="fa fa-plus fa-fw"></i> {{ ('no_tags_create_default')|_ }}</a>
<button type="submit" class="btn pull-right btn-danger" onclick="return confirm('{{ 'are_you_sure'|_|escape('js') }}');">
<i class="fa fa-fw fa-trash"></i> {{ 'delete_all_selected_tags'|_ }}
</button>
<button type="submit" class="btn pull-right btn-danger" onclick="return confirm('{{ 'are_you_sure'|_|escape('js') }}');">
<i class="fa fa-fw fa-trash"></i> {{ 'delete_all_selected_tags'|_ }}
</button>
</p>
</div>
</div>