... | ... | @@ -117,3 +117,71 @@ $ scl enable git19 rh-ruby22 -- bin/rake db:setup RAILS_ENV=development |
|
|
|
|
|
Test to make sure everything's working properly.
|
|
|
|
|
|
## Diff Guide to removing the `awesim_branding` gem.
|
|
|
|
|
|
The AwesimBranding gem contains a number of helper methods that were available in `AwesimRails`. These helpers have been deprecated and are replaced by similar functionality in the OodAppkit gem. The AwesimBranding gem allows for a smooth transition of existing applications to our OOD infrastructure, but ongoing support is limited and you are encouraged to update to OodAppkit.
|
|
|
|
|
|
#### Remove the `awesim_branding` gem
|
|
|
|
|
|
```diff
|
|
|
-gem 'awesim_branding', :git => 'git@github.com:AweSim-OSC/awesim_branding.git', :tag => 'v1.0.0'
|
|
|
```
|
|
|
|
|
|
#### Update `app/assets/stylesheets/application.css.scss`
|
|
|
|
|
|
```diff
|
|
|
-@import "awesim";
|
|
|
+
|
|
|
+// this MUST occur before you import bootstrap
|
|
|
+@import "ood_appkit/bootstrap-overrides";
|
|
|
|
|
|
// Load up bootstrap style sheet
|
|
|
@import "bootstrap";
|
|
|
|
|
|
-// display header at top of app layout
|
|
|
-body {
|
|
|
- @extend .awesim-banner-background-img;
|
|
|
-}
|
|
|
-
|
|
|
+// this MUST occur after the bootstrap import
|
|
|
+@import "ood_appkit";
|
|
|
```
|
|
|
|
|
|
#### Update `app/views/layouts/application.html.erb`
|
|
|
|
|
|
##### Remove the `awesim_banner`
|
|
|
|
|
|
```diff
|
|
|
<body>
|
|
|
|
|
|
-<%= awesim_banner "Container Fill", "SIM" %>
|
|
|
-
|
|
|
<header>
|
|
|
```
|
|
|
|
|
|
##### Replace `awesim_breadcrumbs` with OodAppkit navbar breadcrumbs
|
|
|
|
|
|
```diff
|
|
|
- <nav class="navbar navbar-inverse navbar-static-top" role="navigation">
|
|
|
+ <nav class="ood-appkit navbar navbar-inverse navbar-static-top" role="navigation">
|
|
|
<div class="container-fluid">
|
|
|
<!-- Brand and toggle get grouped for better mobile display -->
|
|
|
<div class="navbar-header">
|
|
|
. . . .
|
|
|
</button>
|
|
|
- <%= awesim_breadcrumbs 'Container Fill Sim' %>
|
|
|
+ <ul class="navbar-breadcrumbs">
|
|
|
+ <li><%= link_to OodAppkit.dashboard.title, OodAppkit.dashboard.url.to_s %></li>
|
|
|
+ <li><%= link_to 'Container Fill Sim', root_path %></li>
|
|
|
+ </ul>
|
|
|
</div>
|
|
|
```
|
|
|
|
|
|
##### Replace the `docs_path` with `wiki_path`
|
|
|
|
|
|
```diff
|
|
|
- <%= link_to "Tutorial", docs_path('Home') %>
|
|
|
+ <%= link_to "Tutorial", wiki_path('Home') %>
|
|
|
```
|
|
|
|
|
|
Further information at [OodAppkit](https://github.com/OSC/ood_appkit/) |
|
|
\ No newline at end of file |