Skip to content

Commit e370a38

Browse files
authored
Merge pull request #64 from MITLibraries/rdi-213-splash-page
Add context about application
2 parents a7f57d9 + d5672f6 commit e370a38

File tree

5 files changed

+13
-2
lines changed

5 files changed

+13
-2
lines changed

Gemfile.lock

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -302,6 +302,7 @@ GEM
302302
PLATFORMS
303303
x86_64-darwin-19
304304
x86_64-darwin-20
305+
x86_64-darwin-21
305306
x86_64-linux
306307

307308
DEPENDENCIES

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,8 @@ change as part of the work.
4949

5050
## Optional Environment Variables
5151

52+
- `ABOUT_APP`: If populated, an 'about' partial containing the contents of this variable will render on
53+
`basic_search#index`.
5254
- `GLOBAL_ALERT`: The main functionality for this comes from our theme gem, but when set the value will be rendered as
5355
safe html above the main header of the site.
5456
- `TIMDEX_INDEX`: Name of the index, or alias, to provide to the GraphQL endpoint. Defaults to `nil` which will let TIMDEX determine the best index to use. Wildcard values can be set, for example `rdi*` would search any indexes that begin with `rdi` in the underlying OpenSearch instance behind TIMDEX.

app/assets/stylesheets/partials/_search.scss

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,3 +76,8 @@
7676
}
7777
}
7878
}
79+
80+
/* about section */
81+
.about {
82+
margin-top: 5rem;
83+
}
Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
<%= content_for(:title, "Search | MIT Libraries") %>
22

33
<div class="space-wrap">
4-
<p>Herzliche Glückwunsch!</p>
5-
64
<%= render partial: "search/form" %>
5+
<%= render partial: "static/about" if ENV.fetch('ABOUT_APP', nil) %>
76
</div>

app/views/static/_about.html.erb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
<div class="about bit">
2+
<h3 class="hd-5">About</h3>
3+
<%= ENV.fetch('ABOUT_APP', nil).html_safe %>
4+
</div>

0 commit comments

Comments
 (0)