Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
E
extensions.typo3.org
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
61
Issues
61
List
Boards
Labels
Service Desk
Milestones
Iterations
Merge Requests
8
Merge Requests
8
Requirements
Requirements
List
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issue
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
services
extensions.typo3.org
extensions.typo3.org
Commits
f589043d
Commit
f589043d
authored
Jun 07, 2018
by
Thomas Löffler
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Show exact match of extension key search more prominent
parent
55569c3e
Pipeline
#4549
passed with stages
in 9 minutes and 9 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
6 deletions
+13
-6
html/typo3conf/ext/ter_layout/Resources/Private/Partials/Solr/Result/Document.html
...yout/Resources/Private/Partials/Solr/Result/Document.html
+3
-4
html/typo3conf/ext/ter_layout/Resources/Private/Templates/Solr/Results.html
.../ter_layout/Resources/Private/Templates/Solr/Results.html
+10
-2
No files found.
html/typo3conf/ext/ter_layout/Resources/Private/Partials/Solr/Result/Document.html
View file @
f589043d
...
...
@@ -3,8 +3,7 @@
xmlns:s=
"http://typo3.org/ns/ApacheSolrForTypo3/Solr/ViewHelpers"
>
<f:section
name=
"Document"
>
<li
class=
"card card-size-medium mb-3{f:if(condition:document.isElevated, then: ' results-elevated')}"
<
{
f:if
(
condition:exactMatch
,
then:
'
div
',
else:
'
li
')}
class=
"card card-size-medium mb-3{f:if(condition:exactMatch, then: ' border-primary bg-light')}"
data-document-score=
"{document.score}"
data-document-id=
"{document.id}"
data-document-url=
"{document.url}"
...
...
@@ -55,10 +54,10 @@
</div>
<f:if
condition=
"{document.insecure_boolS}"
>
<f:else>
<a
class=
"btn
btn-outline-primary
btn-block mb-0"
href=
"{document.extensionDownloadZipUrl_stringS}"
>
<a
class=
"btn
{f:if(condition:exactMatch, then: 'btn-primary', else: 'btn-outline-primary')}
btn-block mb-0"
href=
"{document.extensionDownloadZipUrl_stringS}"
>
<i
class=
"fa fa-download"
></i>
Download version {document.extensionVersion_stringS} as ZIP
</a>
</f:else>
</f:if>
</
li
>
</
{
f:if
(condition:exactMatch,
then:
'div',
else:
'li')}
>
</f:section>
html/typo3conf/ext/ter_layout/Resources/Private/Templates/Solr/Results.html
View file @
f589043d
...
...
@@ -9,7 +9,6 @@
<div
class=
"container-fluid"
>
<f:render
partial=
"Search/Form"
section=
"Form"
arguments=
"{search:search, additionalFilters:additionalFilters, pluginNamespace: pluginNamespace, resultSet: resultSet}"
/>
<f:if
condition=
"{resultSet.usedSearch.numberOfResults}"
>
<f:else>
<div
class=
"alert alert-danger mt-3"
>
...
...
@@ -44,9 +43,18 @@
<f:if
condition=
"{hasSearched}"
>
<s:widget.resultPaginate
resultSet=
"{resultSet}"
configuration=
"{templatePath:'EXT:ter_layout/Resources/Private/Templates/Solr/ViewHelpers/Widget/ResultPaginate/Index.html'}"
>
<f:variable
name=
"exactMatchFound"
value=
"0"
/>
<f:if
condition=
"{resultSet.usedQuery.queryString -> f:format.case(mode:'lower')} == {documents.0.extensionKey_stringS}"
>
<f:render
partial=
"Result/Document"
section=
"Document"
arguments=
"{resultSet:resultSet, document:documents.0, exactMatch: 1}"
/>
<f:variable
name=
"exactMatchFound"
value=
"1"
/>
</f:if>
<ol
start=
"{pagination.displayRangeStart}"
class=
"results-list list-unstyled card-container"
>
<f:for
each=
"{documents}"
as=
"document"
iteration=
"iterator"
>
<f:render
partial=
"Result/Document"
section=
"Document"
arguments=
"{resultSet:resultSet, document:document}"
/>
<f:if
condition=
"{exactMatchFound} && {iterator.isFirst}"
>
<f:else>
<f:render
partial=
"Result/Document"
section=
"Document"
arguments=
"{resultSet:resultSet, document:document}"
/>
</f:else>
</f:if>
</f:for>
</ol>
</s:widget.resultPaginate>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment