File tree 5 files changed +39
-0
lines changed
5 files changed +39
-0
lines changed Original file line number Diff line number Diff line change @@ -85,6 +85,12 @@ to construct thumbnail URLs.
85
85
- ` TACOS_URL ` : The GraphQL endpoint for the [ TACOS] ( https://github.com/mitlibraries/tacos/ ) application.
86
86
- ` TIMDEX_TIMEOUT ` : value to override the 6 second default for TIMDEX timeout.
87
87
88
+ ### NPS Survey Environment Variables (optional)
89
+
90
+ - ` NPS_BLURB ` : Text to display before the survey link. Survey link will still display if not provided.
91
+ - ` NPS_LINK_TEXT ` : Survey link text. If not present, survey does not display.
92
+ - ` NPS_URL ` : Survey link URL. If not present, survey does not display.
93
+
88
94
## Confirming functionality after updating dependencies
89
95
90
96
This application has good code coverage, so most issues are detected by just running tests normally:
Original file line number Diff line number Diff line change
1
+ .nps-feedback {
2
+ margin-top : 1em ;
3
+ padding : 20px 10px ;
4
+ background-color : $gray-d1 ;
5
+ color : $white ;
6
+ text-align : center ;
7
+ font-size : $fs-large ;
8
+ display : block ;
9
+
10
+ a {
11
+ color : $blue-bright ;
12
+ & :hover {
13
+ color : $green ;
14
+ }
15
+ & :active {
16
+ color : $magenta ;
17
+ }
18
+ }
19
+
20
+ @media (max-width : $bp-screen-md ) {
21
+ font-size : $fs-base ;
22
+ }
23
+ }
Original file line number Diff line number Diff line change 7
7
@import " _search" ;
8
8
@import " _results" ;
9
9
@import " _hint" ;
10
+ @import " _survey" ;
10
11
@import " _print" ;
Original file line number Diff line number Diff line change
1
+ <% return unless ENV.fetch('NPS_URL', false).present? %>
2
+ <% return unless ENV.fetch('NPS_LINK_TEXT', false).present? %>
3
+
4
+ <div class ="nps-feedback ">
5
+ < span class ="nps-blurb "> <%= ENV . fetch ( 'NPS_BLURB' , nil ) %> </ span >
6
+ < a class ="nps-link " href ="<%= ENV . fetch ( 'NPS_URL' ) %> "> <%= ENV . fetch ( 'NPS_LINK_TEXT' ) %> </ a >
7
+ </ div >
Original file line number Diff line number Diff line change 23
23
< p > Not finding what you need? <%= link_to ( 'Ask us' , 'https://libraries.mit.edu/ask/' ) %> </ p >
24
24
</ div >
25
25
26
+ <%= render partial : "nps_feedback" if ENV . fetch ( 'NPS_URL' , false ) . present? %>
27
+
26
28
< div id ="hint "> </ div >
27
29
28
30
< div class ="gridband layout-2c ">
You can’t perform that action at this time.
0 commit comments