Skip to content

Commit

Permalink
Javascript / HTML formatting fixes related to Prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
josegar74 authored and fxprunayre committed Oct 9, 2024
1 parent 3252d14 commit b3f5000
Show file tree
Hide file tree
Showing 6 changed files with 40 additions and 45 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -265,9 +265,9 @@
linksAndRelatedPromises.push(
$http.get(
apiPrefix +
"/related?type=" +
relatedTypes.join("&type=") +
(!isApproved ? "&approved=false" : ""),
"/related?type=" +
relatedTypes.join("&type=") +
(!isApproved ? "&approved=false" : ""),
{
headers: {
Accept: "application/json"
Expand All @@ -281,9 +281,9 @@
linksAndRelatedPromises.push(
$http.get(
apiPrefix +
"/associated?type=" +
associatedTypes.join(",") +
(!isApproved ? "&approved=false" : ""),
"/associated?type=" +
associatedTypes.join(",") +
(!isApproved ? "&approved=false" : ""),
{
headers: {
Accept: "application/json"
Expand Down Expand Up @@ -610,8 +610,8 @@
scopedName: params.remote
? ""
: params.name === qParams.name
? ""
: qParams.name,
? ""
: qParams.name,
uuidref: qParams.uuidDS,
uuid: qParams.uuidSrv,
url: qParams.remote ? qParams.url : "",
Expand Down Expand Up @@ -934,10 +934,10 @@
search: function (url, prefix, query) {
return $http.get(
url +
"?prefix=" +
prefix +
"&query=" +
query.replaceAll("https://doi.org/", "")
"?prefix=" +
prefix +
"&query=" +
query.replaceAll("https://doi.org/", "")
);
}
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,8 @@
ng-disabled="!canEnableLinkButton(selectRecords)"
>
<i class="fa gn-icon-{{mode}}"></i>
<i class="icon-external-link"></i>&nbsp; {{btn.label || ('saveLinkToSibling' | translate)}}
<i class="icon-external-link"></i>&nbsp; {{btn.label || ('saveLinkToSibling' |
translate)}}
</button>
<div data-gn-need-help="linking-records" class="pull-right"></div>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,11 +63,11 @@
data-ng-show="ctrl.currentTable == table"
ng-repeat="table in ctrl.tables"
>
<!-- <div class="pull-left">-->
<h4>
<span>{{table.name}}</span>
</h4>
<!-- </div>-->
<!-- <div class="pull-left">-->
<h4>
<span>{{table.name}}</span>
</h4>
<!-- </div>-->
<gn-features-table
gn-features-table-loader="table.loader"
gn-features-table-loader-map="ctrl.map"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,10 @@
<div data-ng-show="isWfsAvailable">
<!--admin buttons-->
<!--Facet count-->
<h4
data-ng-if="isFeaturesIndexed"
class="count"
data-ng-if="showCount"
>
<h4 data-ng-if="isFeaturesIndexed" class="count" data-ng-if="showCount">
{{count | number}}&nbsp;/&nbsp;{{countTotal | number}}&nbsp;<span translate=""
>features</span
>
>features</span
>
</h4>
<div class="btn-group dropup wfs-filter-group">
<button
Expand Down Expand Up @@ -144,26 +140,23 @@
data-ng-model="ctrl.filter.fullTextSearch"
/>
<div class="input-group-btn">
<button
data-ng-if="!managerOnly && isFeaturesIndexed"
data-gn-click-and-spin="resetFacets(false).then(filterWMS)"
title="{{'reset' | translate}}"
class="btn btn-default gn-reset-facets"
>
<i class="fa fa-fw fa-times"></i>
</button>

<button
data-ng-if="!managerOnly && isFeaturesIndexed"
data-gn-click-and-spin="resetFacets(false).then(filterWMS)"
title="{{'reset' | translate}}"
class="btn btn-default gn-reset-facets"
>
<i class="fa fa-fw fa-times"></i>
</button>

<button
class="btn btn-default"
title="{{'search' | translate}}"
data-ng-click="filterFacets()"
>
<i class="fa fa-fw fa-search"></i>
</button>

<button
class="btn btn-default"
title="{{'search' | translate}}"
data-ng-click="filterFacets()"
>
<i class="fa fa-fw fa-search"></i>
</button>
</div>

</div>
<button
data-ng-if="!managerOnly && isFeaturesIndexed"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,6 @@
</div>
</div>


<!-- delete and save-->
<div class="col-md-12 gn-nopadding-left gn-nopadding-right">
<div class="btn-toolbar pull-right">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,9 @@ <h3>{{date.type | translate}}</h3>
</ul>
</section>

<div ng-include="'../../catalog/views/default/templates/recordView/maintenance.html'"></div>
<div
ng-include="'../../catalog/views/default/templates/recordView/maintenance.html'"
></div>

<div data-ng-if="mdView.current.record.serviceType" class="gn-margin-bottom flex-row">
<span class="badge badge-rounded" title="{{'serviceType' | translate}}">
Expand Down

0 comments on commit b3f5000

Please sign in to comment.