Skip to content

Commit

Permalink
FIX - removido alterações desnecessárias no código
Browse files Browse the repository at this point in the history
  • Loading branch information
LeonardoZanotti committed Aug 15, 2024
1 parent 234e23b commit ba1ddb5
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
18 changes: 9 additions & 9 deletions src/modules/Entities/views/project/single.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
['label' => $label, 'url' => $app->createUrl('search', 'projects')],
['label' => $entity->name, 'url' => $app->createUrl('project', 'single', [$entity->id])],
];

?>

<div class="main-app">
Expand All @@ -44,7 +45,7 @@
<dl v-if="entity.id && global.showIds[entity.__objectType]" class="metadata__id">
<dt class="metadata__id--id"><?= i::__('ID') ?></dt>
<dd><strong>{{entity.id}}</strong></dd>
</dl>
</dl>
<dl v-if="entity.type">
<dt><?= i::__('Tipo') ?></dt>
<dd :class="[entity.__objectType+'__color', 'type']"> {{entity.type.name}} </dd>
Expand All @@ -68,7 +69,7 @@
<div v-if="entity.telefonePublico" class="additional-info__item">
<p class="additional-info__item__title"><?php i::_e("telefone:"); ?></p>
<p class="additional-info__item__content">{{entity.telefonePublico}}</p>
</div>
</div>

<div v-if="entity.emailPublico" class="additional-info__item">
<p class="additional-info__item__title"><?php i::_e("email:"); ?></p>
Expand Down Expand Up @@ -105,25 +106,24 @@
</mc-container>
</div>
</mc-tab>

<mc-tab label="<?= i::_e('Subprojetos') ?>" slug="subprojects">
<mc-tab label="<?= i::_e('Subprojetos') ?> (<?= count($entity->children) ?>)" slug=" subprojects">
<div class="single-project__subproject">
<mc-container>
<main class="grid-12">
<mc-entities v-if="entity.children" type="project" select="name,type,shortDescription,files.avatar,seals,terms" :query="{id: `IN(${entity.children})`}" :limit="20" watch-query>
<mc-entities v-if="entity.children" type="project" select="name,type,shortDescription,files.avatar,seals,terms" :query="{id: `IN(${entity.children.map((c) => c._id)})`}" :limit="20" watch-query>
<template #default="{entities}">
<entity-card :entity="entity" v-for="entity in entities" :key="entity.__objectId" class="col-12">
<template #avatar>
<mc-avatar :entity="entity" size="medium"></mc-avatar>
</template>
<template #type>
<span>
<?= i::__('TIPO: ') ?>
<template #type>
<span>
<?= i::__('TIPO: ') ?>
<span :class="['upper', entity.__objectType+'__color']">{{entity.type.name}}</span>
</span>
</template>
</entity-card>
</template>
</template>
</mc-entities>

<div v-if="!entity.children" class="single-project__not-found">
Expand Down
4 changes: 2 additions & 2 deletions src/modules/Search/views/search/project.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@
</create-project>
</template>
<template #default="{pseudoQuery}">
<div class="tabs-component__panels">
<div class="tabs-component__panels" style="margin-top: 90px;">
<div class="search__tabs--list">
<search-list :pseudo-query="pseudoQuery" type="project" select="name,type,shortDescription,files.avatar,seals,terms" >
<search-list :pseudo-query="pseudoQuery" type="project" select="name,type,shortDescription,files.avatar,seals,terms">
<template #filter>
<search-filter-project :pseudo-query="pseudoQuery"></search-filter-project>
</template>
Expand Down

0 comments on commit ba1ddb5

Please sign in to comment.