Skip to content

Commit

Permalink
[OGM] Warn about OGM no longer being maintained
Browse files Browse the repository at this point in the history
  • Loading branch information
yrodiere authored and gsmet committed Mar 8, 2022
1 parent ceda967 commit 9dc517f
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 11 deletions.
6 changes: 2 additions & 4 deletions _layouts/blog-post.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,8 @@ layout: base
.ui.container
= partial( 'blog/post-title.html.haml', {"post" => page} )

- if page.project == 'search'
.project-reminder
.ui.container
= partial( "project/#{page.project}/project-reminder.html.haml" )
- if page.project == 'search' || page.project == 'ogm'
= partial( "project/#{page.project}/project-reminder.html.haml" )

.ui.container.blog-article
.content#content
Expand Down
5 changes: 5 additions & 0 deletions _partials/project/ogm/project-reminder.html.haml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
.project-reminder.warning
.ui.container
%h4
%i.icon.exclamation.triangle
Hibernate OGM is not maintained anymore
16 changes: 9 additions & 7 deletions _partials/project/search/project-reminder.html.haml
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
%p
Hibernate Search is a library that
integrates Hibernate ORM with Apache Lucene or Elasticsearch
by automatically indexing entities,
enabling advanced search functionality: full-text, geospatial, aggregations and more.
For more information, see
%a(href='https://hibernate.org/search/') Hibernate Search on hibernate.org.
.project-reminder
.ui.container
%p
Hibernate Search is a library that
integrates Hibernate ORM with Apache Lucene or Elasticsearch
by automatically indexing entities,
enabling advanced search functionality: full-text, geospatial, aggregations and more.
For more information, see
%a(href='https://hibernate.org/search/') Hibernate Search on hibernate.org.
5 changes: 5 additions & 0 deletions stylesheets/blog-styles.scss
Original file line number Diff line number Diff line change
Expand Up @@ -243,6 +243,11 @@
padding-bottom: 18px;
padding-top: 20px;
margin-bottom: 0;

&.warning {
background-color: #fffaf3;
color: #573a08;
}
}

.blog-article {
Expand Down

0 comments on commit 9dc517f

Please sign in to comment.