Skip to content

Commit

Permalink
minor updates
Browse files Browse the repository at this point in the history
  • Loading branch information
ketan404 committed Mar 13, 2024
1 parent df0c482 commit 1aa5df8
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 6 deletions.
2 changes: 1 addition & 1 deletion public/css/classic/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -2532,7 +2532,7 @@ column-count: 1;
border: 0;
padding: 0;
margin: 0;
background-color: #f05a22;
background-color: #3f819e;
display: flex;
flex-direction: column;
justify-content: center;
Expand Down
2 changes: 1 addition & 1 deletion public/css/classic/material/css/material-dashboard.css
Original file line number Diff line number Diff line change
Expand Up @@ -1045,7 +1045,7 @@ pre code {
display: flex;
flex-wrap: wrap;
margin-right: -15px;
margin-left: -15px;
/*margin-left: -15px;*/ /* commented on 13 March 2024 by SKK */
}

.no-gutters {
Expand Down
5 changes: 3 additions & 2 deletions resources/views/classic/search-results.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,9 @@
$classname = @$extra_attributes->results_classname;
@endphp
@if (!empty($document->meta_value($m->id)))
<!--div class="col-lg-{{ $w }}"-->
<div class="{{ $classname }}">
{{-- $m->label--}}
<div class="col-lg-{{ $w }}">
<div class="{{ $classname }}">&nbsp;</div>
@if ($m->type == 'Textarea')
{{ $document->meta_value($m->id) }}
@else
Expand Down
12 changes: 10 additions & 2 deletions resources/views/document-details.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -198,8 +198,13 @@ function showDeleteDialog(){
<span id="doc-title" class="col-md-12"><!--h4-->
@if($c->content_type == 'Uploaded documents')
@if($document->type == 'application/pdf')
@if(env('ENABLE_PDF_READER') == 1)
<a href="/collection/{{ $c->id }}/document/{{ $document->id }}/pdf-reader" target="_new"><img class="file-icon" src="/i/file-types/{{ $document->icon($document->path) }}.png" style="float:left;"></a>&nbsp;
<a title="Read online" href="/collection/{{ $document->collection_id }}/document/{{ $document->id }}/pdf-reader" target="_new">
@else
<a href="/collection/{{ $c->id }}/document/{{ $document->id }}" target="_new"><img class="file-icon" src="/i/file-types/{{ $document->icon($document->path) }}.png" style="float:left;"></a>&nbsp;
<a title="Read online" href="/collection/{{ $document->collection_id }}/document/{{ $document->id }}" target="_new">
@endif
@elseif($document->type == 'application/vnd.openxmlformats-officedocument.presentationml.presentation')
<a href="/collection/{{ $c->id }}/document/{{ $document->id }}"><img class="file-icon" src="/i/file-types/{{ $document->icon($document->path) }}.png" style="float:left;"></a>&nbsp;<a href="/collection/{{ $c->id }}/document/{{ $document->id }}">
@elseif(preg_match('/^audio/',$document->type) || preg_match('/^video/',$document->type))
Expand Down Expand Up @@ -247,11 +252,14 @@ function showDeleteDialog(){
$extra_attributes = empty($m->meta_field->extra_attributes) ? null : json_decode($m->meta_field->extra_attributes);
$w = empty($extra_attributes->width_on_info_page)? 12 : $extra_attributes->width_on_info_page;
$show_on_details_page = empty($extra_attributes->show_on_details_page)? '' : $extra_attributes->show_on_details_page;
$classname = @$extra_attributes->results_classname;
if($show_on_details_page == 0) continue;
@endphp
<div class="col-md-{{ $w }}">
<div class="col-md-{{ $w }}">

<label for="doc-meta-{{ $meta_labels[$m->meta_field_id] }}" class="col-md-12">{{ $meta_labels[$m->meta_field_id] }}</label>
<label for="doc-meta-{{ $meta_labels[$m->meta_field_id] }}" class="col-md-12">
<div class="{{ $classname }}">&nbsp;</div>
{{ $meta_labels[$m->meta_field_id] }}</label>
@if($m->meta_field->type == 'MultiSelect' || $m->meta_field->type == 'Select')
<span id="doc-meta-{{ $meta_labels[$m->meta_field_id] }}" class="col-md-12">{{ @implode(", ",json_decode($m->value)) }}</span>
@elseif ($m->meta_field->type == 'TaxonomyTree')
Expand Down

0 comments on commit 1aa5df8

Please sign in to comment.