Skip to content

Commit

Permalink
fix(frontend): resolve duplicate components and unclosed divs
Browse files Browse the repository at this point in the history
Eliminate duplicate components and ensure all div tags are properly closed to maintain structure and functionality.
  • Loading branch information
Dioscorides committed Jul 5, 2024
1 parent dbb1a86 commit a293e13
Showing 1 changed file with 163 additions and 159 deletions.
322 changes: 163 additions & 159 deletions resources/views/public/single-institution.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@
@endsection
@section('last-edited')
@isset($library_data->created_at)
<meta name="created" content={{$library_data->created_at->format('Y-m-d')}}>
<meta name="created" content={{$library_data->created_at->format('Y-m-d')}}>
@endisset
@isset($library_data->updated_at)
<meta name="last-modified" content={{$library_data->updated_at->format('Y-m-d')}}>
<meta name="last-modified" content={{$library_data->updated_at->format('Y-m-d')}}>
@endisset
@endsection

Expand Down Expand Up @@ -67,169 +67,173 @@

<div class="row justify-content-center">

<div class="my-1">
@if($library_data->is_disabled == 1)
<div class="alert alert-danger text-center" role="alert" data-dmmapp="library-info">
<div class="my-1">
@if($library_data->is_disabled == 1)
<div class="alert alert-danger text-center" role="alert" data-dmmapp="library-info">
<h3 class="alert-heading"><i class="bi bi-exclamation-triangle-fill"></i> Broken link</h3>
<a href="{{ $library_data->website }}" target="_blank" class="btn btn-danger disabled" rel="noopener">Go to the
digitized manuscripts <sup><i class="bi bi-box-arrow-up-right small"></i></sup></a>
<p class="mt-3"> Sadly the link to the digitized medieval manuscripts belonging to this institution no longer works.<br>
Despite our best efforts, were unable to find the new location of this repository.<br>
This link has been confirmed as broken on <strong>{{ $library_data->last_edited }}</strong>
</p>
<hr>
<div class="text-center my-4">
<a href="https://docs.google.com/forms/d/e/1FAIpQLSfP_TNstBIoCI9mBhA81cN7XxASGx4cLknBOuyp44Tm7Qh9_g/viewform?usp=pp_url&entry.310414793={{$library_data->library}}&entry.1084339932={{$library_data->id}}&entry.1224640710=Website+(ex.+%22The+reported+URL+is+wrong%22)&entry.2019590872=The+working+link+for+this+institution+is:"
rel="noopener" class="btn btn-danger mt-2" target="_blank" role="button" aria-pressed="true">
<i class="bi bi-heart-fill"></i> Report a working link! <sup><i
class="bi bi-box-arrow-up-right small"></i></sup>
</a>
@else
<div class="alert alert-light text-center" role="alert" data-dmmapp="library-info">
<div class="my-1">
<a href="{{ $library_data->website }}" target="_blank" class="btn btn-lg btn-success" rel="noopener"><i class="bi bi-link-45deg"></i> Go to the
digitized manuscripts <sup><i
class="bi bi-box-arrow-up-right small"></i></sup></a>
@endif

</div>
</div>
</div>
<div id="main-data">
<div class="container">
<div class="card">
<div class="card-header" data-dmmapp="institution-card">Institution details</div>
<div class="card-body">
<div class="table-responsive mb-4">
<table class="table">
<thead>
<tr>
<th class="col-4" scope="col">Type</th>
<th class="col-8" scope="col">Data</th>
</tr>
</thead>
<tbody>
<tr>
<th scope="row">Institution name</th>
<td data-dmmapp="library">{{ $library_data->library }}</td>
</tr>
<tr>
<th scope="row">URL to digitized items</th>
<td data-dmmapp="url" class="text-break">{{ $library_data->website }}
</td>
</tr>
<tr>
<th scope="row">N<sup>o</sup> of digitized items (estimate)</th>
<td>{{ $library_data->quantity }}</td>
</tr>
<tr>
<th scope="row">IIIF</th>
<td>
@if ($library_data->iiif == '0')
No
@else
Yes
@endif
</td>
</tr>
<tr>
<th scope="row">Digitized items' copyright</th>
<td>{{ $library_data->copyright }}</td>
</tr>
<tr>
<th scope="row">Uses a Free Cultural Works License</th>
<td>
@if ($library_data->is_free_cultural_works_license == '0')
No
@else
Yes
<a href="{{ $library_data->website }}" target="_blank" class="btn btn-danger disabled"
rel="noopener">Go to the
digitized manuscripts <sup><i class="bi bi-box-arrow-up-right small"></i></sup></a>
<p class="mt-3"> Sadly the link to the digitized medieval manuscripts belonging to this institution
no longer works.<br>
Despite our best efforts, were unable to find the new location of this repository.<br>
This link has been confirmed as broken on <strong>{{ $library_data->last_edited }}</strong>
</p>
<hr>
<div class="text-center my-4">
<a href="https://docs.google.com/forms/d/e/1FAIpQLSfP_TNstBIoCI9mBhA81cN7XxASGx4cLknBOuyp44Tm7Qh9_g/viewform?usp=pp_url&entry.310414793={{$library_data->library}}&entry.1084339932={{$library_data->id}}&entry.1224640710=Website+(ex.+%22The+reported+URL+is+wrong%22)&entry.2019590872=The+working+link+for+this+institution+is:"
rel="noopener" class="btn btn-danger mt-2" target="_blank" role="button" aria-pressed="true">
<i class="bi bi-heart-fill"></i> Report a working link! <sup><i
class="bi bi-box-arrow-up-right small"></i></sup>
</a>
@else
<div class="alert alert-light text-center" role="alert" data-dmmapp="library-info">
<div class="my-1">
<a href="{{ $library_data->website }}" target="_blank"
class="btn btn-lg btn-success" rel="noopener"><i class="bi bi-link-45deg"></i> Go
to the
digitized manuscripts <sup><i
class="bi bi-box-arrow-up-right small"></i></sup></a>
@endif
</td>
</tr>
@if (empty($library_data->notes))
@else
<tr>
<th scope="row">Notes</th>
<td>{{ $library_data->notes }}</td>
</tr>
@endif
</tbody>
</table>
</div>
<h4>Geographical information</h4>
<div class="table-responsive mb-4">
<table class="table">
<thead>
<tr>
<th class="col-4" scope="col">Type</th>
<th class="col-8" scope="col">Data</th>
</tr>
</thead>
<tbody>
<tr>
<th scope="row">Nation</th>
<td>{{ $library_data->nation }}</td>
</tr>
<tr>
<th scope="row">City</th>
<td> {{ $library_data->city }} </td>
</tr>
<tr>
<th scope="row">Latitude</th>
<td>{{ $library_data->lat }}</td>
</tr>
<tr>
<th scope="row">Longitude</th>
<td>{{ $library_data->lng }}</td>
</tr>
</tbody>
</table>

</div>
</div>
</div>
<h4>Blog post availability and additional data</h4>
<div class="table-responsive mb-4">
<table class="table">
<thead>
<tr>
<th class="col-4" scope="col">Type</th>
<th class="col-8" scope="col">Data</th>
</tr>
</thead>
<tbody>
<tr>
<th scope="row">Has a related Sexy Codicology post</th>
<td>
@if ($library_data->has_post == '0')
No
@else
Yes
@endif
</td>
</tr>
@if ($library_data->has_post == '0')
@else
<tr>
<th scope="row">Sexy Codicology post URL</th>
<td>{{ $library_data->post_url }}</td>
</tr>
@endif
<tr>
<th scope="row">DMMapp ID</th>
<td>{{ $library_data->id }}</td>
</tr>
<tr>
<th scope="row">DMMapp URL slug</th>
<td>{{ $library_data->library_name_slug }}</td>
</tr>
</tbody>
</table>
<div id="main-data">
<div class="container">
<div class="card">
<div class="card-header" data-dmmapp="institution-card">Institution details</div>
<div class="card-body">
<div class="table-responsive mb-4">
<table class="table">
<thead>
<tr>
<th class="col-4" scope="col">Type</th>
<th class="col-8" scope="col">Data</th>
</tr>
</thead>
<tbody>
<tr>
<th scope="row">Institution name</th>
<td data-dmmapp="library">{{ $library_data->library }}</td>
</tr>
<tr>
<th scope="row">URL to digitized items</th>
<td data-dmmapp="url" class="text-break">{{ $library_data->website }}
</td>
</tr>
<tr>
<th scope="row">N<sup>o</sup> of digitized items (estimate)</th>
<td>{{ $library_data->quantity }}</td>
</tr>
<tr>
<th scope="row">IIIF</th>
<td>
@if ($library_data->iiif == '0')
No
@else
Yes
@endif
</td>
</tr>
<tr>
<th scope="row">Digitized items' copyright</th>
<td>{{ $library_data->copyright }}</td>
</tr>
<tr>
<th scope="row">Uses a Free Cultural Works License</th>
<td>
@if ($library_data->is_free_cultural_works_license == '0')
No
@else
Yes
@endif
</td>
</tr>
@if (empty($library_data->notes))
@else
<tr>
<th scope="row">Notes</th>
<td>{{ $library_data->notes }}</td>
</tr>
@endif
</tbody>
</table>
</div>
<h4>Geographical information</h4>
<div class="table-responsive mb-4">
<table class="table">
<thead>
<tr>
<th class="col-4" scope="col">Type</th>
<th class="col-8" scope="col">Data</th>
</tr>
</thead>
<tbody>
<tr>
<th scope="row">Nation</th>
<td>{{ $library_data->nation }}</td>
</tr>
<tr>
<th scope="row">City</th>
<td> {{ $library_data->city }} </td>
</tr>
<tr>
<th scope="row">Latitude</th>
<td>{{ $library_data->lat }}</td>
</tr>
<tr>
<th scope="row">Longitude</th>
<td>{{ $library_data->lng }}</td>
</tr>
</tbody>
</table>
</div>
<h4>Blog post availability and additional data</h4>
<div class="table-responsive mb-4">
<table class="table">
<thead>
<tr>
<th class="col-4" scope="col">Type</th>
<th class="col-8" scope="col">Data</th>
</tr>
</thead>
<tbody>
<tr>
<th scope="row">Has a related Sexy Codicology post</th>
<td>
@if ($library_data->has_post == '0')
No
@else
Yes
@endif
</td>
</tr>
@if ($library_data->has_post == '0')
@else
<tr>
<th scope="row">Sexy Codicology post URL</th>
<td>{{ $library_data->post_url }}</td>
</tr>
@endif
<tr>
<th scope="row">DMMapp ID</th>
<td>{{ $library_data->id }}</td>
</tr>
<tr>
<th scope="row">DMMapp URL slug</th>
<td>{{ $library_data->library_name_slug }}</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>

<x-disclaimer/>
<x-patreon/>

</div>
<x-disclaimer/>
<x-patreon/>
@endsection
Expand Down

0 comments on commit a293e13

Please sign in to comment.