Skip to content

Commit

Permalink
minor updates
Browse files Browse the repository at this point in the history
  • Loading branch information
shraddha404 committed Feb 19, 2024
1 parent 470daed commit 5e30bdd
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion app/Traits/Search.php
Original file line number Diff line number Diff line change
Expand Up @@ -612,7 +612,8 @@ private function datatableFormatResults($data){
$action_icons .= '<a class="btn btn-primary btn-link" title="Read online" href="/collection/'.$d->collection_id.'/document/'.$d->id.'/pdf-reader" target="_blank"><i class="material-icons">open_in_browser</i></a>';
}
else if(preg_match('/^audio/',$d->type) || preg_match('/^video/',$d->type)){
$action_icons .= '<a class="btn btn-primary btn-link" title="Play" href="/collection/'.$d->collection_id.'/document/'.$d->id.'/media-player" target="_blank"><i class="material-icons">play_arrow</i></a>';
// commented the line below since the video/audio can be played on the details page.
//$action_icons .= '<a class="btn btn-primary btn-link" title="Play" href="/collection/'.$d->collection_id.'/document/'.$d->id.'/media-player" target="_blank"><i class="material-icons">play_arrow</i></a>';
}
else{
$action_icons .= '<a class="btn btn-primary btn-link" title="Download" href="/collection/'.$d->collection_id.'/document/'.$d->id.'" target="_blank"><i class="material-icons">cloud_download</i></a>';
Expand Down
2 changes: 1 addition & 1 deletion resources/views/collection.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,7 @@ function randomString(length) {
<div class="row text-center">
<div class="col-12">
<div class="float-container" style="width:100%;">
<label for="collection_search">{{ __('Start typing to initiate search within the document content') }}</label>
<label for="collection_search">{{ __('Start typing minimum of 4 characters to initiate search within the document content') }}</label>
<input type="text" class="search-field" id="collection_search" />
<style>
.dataTables_filter {
Expand Down
2 changes: 1 addition & 1 deletion resources/views/dashboard.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@
@endif
<ul>
@foreach ($user_downloads as $d)
<li><a href="/document/{{ @$d->document->id }}">{{ @$d->document->title }}</a></li>
<li><a href="/collection/{{ @$d->document->collection_id }}/document/{{ @$d->document->id }}/details">{{ @$d->document->title }}</a></li>
@endforeach
</ul>
</div>
Expand Down

0 comments on commit 5e30bdd

Please sign in to comment.