Improve subtitle

This commit is contained in:
Chocobozzz 2020-09-16 10:54:52 +02:00
parent 6fda76fac6
commit d23d9cb503
No known key found for this signature in database
GPG Key ID: 583A612D890159BE
3 changed files with 24 additions and 8 deletions

View File

@ -5,7 +5,7 @@
<h1>{{indexName}}</h1> <h1>{{indexName}}</h1>
<h4 v-translate>A video index developed by <a href="https://framasoft.org" target="_blank">Framasoft</a></h4> <h4 v-translate>A search engine of <a href="https://joinpeertube.org" target="_blank">PeerTube</a> videos and channels, developed by <a href="https://framasoft.org" target="_blank">Framasoft</a></h4>
<img class="search-home" src="/img/search-home.png" alt=""> <img class="search-home" src="/img/search-home.png" alt="">
</header> </header>
@ -32,11 +32,14 @@
.search-home { .search-home {
width: 300px; width: 300px;
height: 250px;
margin: 30px 0 0 0; margin: 30px 0 0 0;
} }
h1 { h1 {
font-size: 50px; font-size: 50px;
// Because it's loaded dynamically
min-height: 70px;
margin: 0; margin: 0;
text-align: center; text-align: center;
} }

View File

@ -30,7 +30,8 @@
<div class="button-rows"> <div class="button-rows">
<button class="filters-button peertube-button" v-on:click="toggleFilters()"> <button class="filters-button peertube-button" v-on:click="toggleFilters()">
<translate>Filters</translate> <translate>Filters</translate>
<span v-if="activeFilters" v-translate="{ activeFilters: activeFilters }"> (%{activeFilters} active)</span> &nbsp;
<span v-if="activeFilters">({{ activeFilters }})</span>
<div class="arrow-down"></div> <div class="arrow-down"></div>
</button> </button>
@ -165,16 +166,28 @@
</div> </div>
<div id="results-anchor" class="results-summary" v-if="(searchedTerm && resultsCount === 0) || (resultsCount !== null && resultsCount !== 0)"> <div id="results-anchor" class="results-summary" v-if="(searchedTerm && resultsCount === 0) || (resultsCount !== null && resultsCount !== 0)">
<span v-if="searchedTerm && resultsCount === 0" v-translate>No results found for</span>&nbsp; <span v-if="searchedTerm && resultsCount === 0" v-translate>No results found for</span>
<span v-if="resultsCount !== null && resultsCount !== 0" v-translate="{ resultsCount: resultsCount }">%{resultsCount} results found for</span>&nbsp;
&nbsp;
<span v-if="resultsCount !== null && resultsCount !== 0">
<translate :translate-n="resultsCount" translate-plural="%{resultsCount} results found for">%{resultsCount} result found for</translate>
</span>
&nbsp;
<strong> <strong>
{{ searchedTerm }} {{ searchedTerm }}
<span v-if="activeFilters > 0" v-translate="{ activeFilters: activeFilters }">with %{activeFilters} active filters</span> <span v-if="activeFilters > 0">
<translate :translate-n="activeFilters" translate-plural="with %{activeFilters} active filters">with %{activeFilters} active filter</translate>
</span>
</strong> </strong>
&nbsp; &nbsp;
<span v-translate="{ instancesCount: instancesCount }">on %{instancesCount} indexed PeerTube websites</span> <span>
<translate :translate-n="instancesCount" translate-plural="on %{instancesCount} indexed PeerTube websites">on %{instancesCount} indexed PeerTube website</translate>
</span>
</div> </div>
<div v-for="result in results" :key="getResultKey(result)"> <div v-for="result in results" :key="getResultKey(result)">
@ -619,7 +632,7 @@
}, },
homeTitleMessage () { homeTitleMessage () {
return this.$gettextInterpolate(this.$gettext('Display the video index homepage')) return this.$gettext('Display homepage')
} }
}, },

View File

@ -19,7 +19,7 @@ log:
search-instance: search-instance:
name: 'PeerTube Search Index' name: 'PeerTube Search Index'
description: 'Search for your favorite PeerTube videos and channels!' description: 'A search engine of PeerTube videos and channels, developed by Framasoft'
legal_notices_url: '' legal_notices_url: ''
instances-index: instances-index: