diff --git a/src/app/pages/search/search.page.html b/src/app/pages/search/search.page.html
index 375675c34..17727fe78 100644
--- a/src/app/pages/search/search.page.html
+++ b/src/app/pages/search/search.page.html
@@ -146,7 +146,11 @@
src="assets/images/icons-viagem.svg">
-
{{ searchDocument.Assunto}}
+
+
+ {{ searchDocument.Assunto}}
+ {{ searchDocument.appName}}
+
{{ searchDocument.EntidadeOrganicaNome }}
{{ formateIsoDate(searchDocument.Data) }}
diff --git a/src/app/pages/search/search.page.scss b/src/app/pages/search/search.page.scss
index 79a489d33..c045b9293 100644
--- a/src/app/pages/search/search.page.scss
+++ b/src/app/pages/search/search.page.scss
@@ -155,7 +155,7 @@ ion-slide{
.content{
width: 100%;
margin-left: 10px;
- p{
+ .result-name{
margin: 0px;
width: 100%;
font-family: Roboto;
@@ -169,6 +169,22 @@ ion-slide{
font-weight: 300;
color: #797979;
}
+ .app-name{
+ background: #42b9f2;
+ border-radius: 18px;
+ text-align: center;
+ display: flex;
+ align-items: center;
+ padding: 0px 5px;
+ color: white;
+ font-size: 9pt;
+ font-weight: 500;
+ height: 19px;
+ -webkit-border-radius: 18px;
+ -moz-border-radius: 18px;
+ -ms-border-radius: 18px;
+ -o-border-radius: 18px;
+ }
span.documente-date{
}
diff --git a/src/app/pages/search/search.page.ts b/src/app/pages/search/search.page.ts
index c4d902356..d165c7b1f 100644
--- a/src/app/pages/search/search.page.ts
+++ b/src/app/pages/search/search.page.ts
@@ -36,6 +36,8 @@ export class SearchPage implements OnInit {
showLoader: boolean;
+ currentPath: string
+
// See http://idangero.us/swiper/api/ for valid options.
slideOpts = {
slidesPerView: parseInt(`${window.innerWidth/147}`, 10),
@@ -53,6 +55,8 @@ export class SearchPage implements OnInit {
private search: SearchService,
private modalCtrl: ModalController,) {
this.ordinance = "recent";
+
+ this.currentPath= window.location.pathname;
}
ngOnInit() {
@@ -220,6 +224,7 @@ export class SearchPage implements OnInit {
// bind respose
this.sortArrayISODate(res.Documents).forEach(e => {
+ e['appName'] = 'Correspondencia'
this.searchDocuments.push(e)
});
@@ -245,6 +250,7 @@ export class SearchPage implements OnInit {
this.sortArrayISODate(res.Documents).forEach(e => {
+ e['appName'] = 'ArquivoDespachoElect'
this.searchDocuments.push(e)
});