-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Why these changes are being introduced: We want to provide users multiple paths to request help from the GIS team. Relevant ticket(s): https://mitlibraries.atlassian.net/browse/GDT-129 How this addresses that need: This adds an 'Ask GIS' link to all views except the index: * On the results page with reuslts, in the filter sidebar below the filters. * On the results page with no results, in a sidebar to the right. * On the full record page, in the sidebar below fact panels. There is a minor difference in placement for the results view in smaller viewports, which is accommodated with media queries. Side effects of this change: The new `ask` partial contains both the logic for the existing 'Ask Us' link and the 'Ask GIS' link. In order to minimize the complexity, both use the same markup. This removes the descriptive paragraph for 'Ask Us' and changes the header from 'Ask Us' to 'Need help?', both of which seem like usability improvements.
- Loading branch information
Showing
5 changed files
with
52 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
<% if display == 'view-aside' %> | ||
<div class="col1qr-sidebar"> | ||
<% end %> | ||
<div class="bit ask-us <%= display %>"> | ||
<h3 class="title">Need help?</h3> | ||
<% if Flipflop.enabled?(:gdt) %> | ||
<a class="btn button-secondary" href="https://libraries.mit.edu/ask-gis">Ask GIS</a> | ||
<% else %> | ||
<a class="btn button-secondary" href="https://libraries.mit.edu/ask/">Ask Us</a> | ||
<% end %> | ||
</div> | ||
<% if display == 'view-aside' %> | ||
</div> | ||
<% end %> |