-
-
Notifications
You must be signed in to change notification settings - Fork 4.7k
search design details #1606
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
search design details #1606
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
- Loading branch information
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -217,7 +217,7 @@ | |
| $status.addClass('emptycontent').removeClass('status'); | ||
| $status.html(''); | ||
| $status.append('<div class="icon-search"></div>'); | ||
| $status.append('<h2>' + t('core', 'No search results in other folders') + '</h2>'); | ||
| $status.append('<h2>' + t('core', 'No search results in other folders {filter}', {filter:this._filter}) + '</h2>'); | ||
|
||
| } else { | ||
| $status.removeClass('emptycontent').addClass('status'); | ||
| $status.text(n('core', '{count} search result in another folder', '{count} search results in other folders', count, {count:count})); | ||
|
|
||

There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same here, you can use html instead of text if you want to add
<strong>Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
find('p').html(t('files', "No entries in this folder match '{tag}{filter}{endtag}'", {filter:this._filter}, null, {'escape': false}).replace('{tag}', '<strong>').replace('{endtag}', '</strong>'));There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same here ;)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You mean
{tag}and{endtag}?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@skjnldsv I meant if the solution you suggested works, you are welcome to add a commit :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Well it works, I used the same as here nextcloud/mail#57 (review)
But I can't tell you if this will cause issue with the translators or not. I don't really knows how they work :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@skjnldsv then go ahead and add a commit in this branch, you should be able to since you are in the Nextcloud organization ;) You know Javascript better than me. :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Okay, I will commit. But we need to be sure the issue you raised with the translators is fine! :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@skjnldsv Looks good 👍