Commit 4b07c15
committed
Only show the eyebrow in multi-source tabs
Why are these changes being introduced:
* It is believed that displaying the eyebrow in single-source tabs
(e.g., Alma, CDI, ASpace) is redundant and adds visual clutter.
Removing the eyebrow in these contexts should streamline the user
experience.
Relevant ticket(s):
* https://mitlibraries.atlassian.net/browse/USE-251
How does this address that need:
* adds `multi_source_tab?` helper method to determine if the active tab
includes multiple sources
* conditions display of eyebrow in search result partials using this
helper
Document any side effects to this change:
* we will need to remember to update the `multi_source_tab?` method
as tabs change over time1 parent 6f12d6a commit 4b07c15
File tree
4 files changed
+26
-2
lines changed- app
- helpers
- views/search
- test/helpers
4 files changed
+26
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
186 | 186 | | |
187 | 187 | | |
188 | 188 | | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
189 | 195 | | |
190 | 196 | | |
191 | 197 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
4 | 6 | | |
5 | 7 | | |
6 | 8 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
4 | 6 | | |
5 | 7 | | |
6 | 8 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
387 | 387 | | |
388 | 388 | | |
389 | 389 | | |
| 390 | + | |
| 391 | + | |
| 392 | + | |
| 393 | + | |
| 394 | + | |
| 395 | + | |
| 396 | + | |
| 397 | + | |
| 398 | + | |
| 399 | + | |
| 400 | + | |
| 401 | + | |
| 402 | + | |
| 403 | + | |
390 | 404 | | |
0 commit comments