File tree 10 files changed +9
-80
lines changed
10 files changed +9
-80
lines changed Original file line number Diff line number Diff line change @@ -7,30 +7,6 @@ def current_webpacker_instance
7
7
Avo . webpacker
8
8
end
9
9
10
- def render_logo
11
- render partial : "vendor/avo/partials/logo"
12
- rescue
13
- render partial : "avo/partials/logo"
14
- end
15
-
16
- def render_header
17
- render partial : "vendor/avo/partials/header"
18
- rescue
19
- render partial : "avo/partials/header"
20
- end
21
-
22
- def render_footer
23
- render partial : "vendor/avo/partials/footer"
24
- rescue
25
- render partial : "avo/partials/footer"
26
- end
27
-
28
- def render_scripts
29
- render partial : "vendor/avo/partials/scripts"
30
- rescue
31
- ""
32
- end
33
-
34
10
def render_license_warnings
35
11
render partial : "avo/sidebar/license_warnings" , locals : {
36
12
license : Avo ::App . license . properties
File renamed without changes.
Original file line number Diff line number Diff line change 1
1
< div class ="application-sidebar flex h-full bg-white text-white w-56 z-50 border-r border-gray-300 ">
2
2
< div class ="flex flex-col w-full ">
3
3
<%= link_to root_path , class : 'logo-placeholder h-16 bg-white p-2 flex justify-center' do %>
4
- <%= render_logo %>
4
+ <%= render partial : "avo/partials/logo" %>
5
5
<% end %>
6
6
7
7
< div class ="flex-1 flex flex-col justify-between ">
Original file line number Diff line number Diff line change 20
20
< div class ="flex-1 flex flex-col h-full overflow-auto ">
21
21
< div class ="relative bg-white p-2 shadow-md h-16 w-full flex flex-shrink-0 items-center z-50 " v-if ="layout !== 'blank' ">
22
22
< div class ="ml-6 ">
23
- <%= render_header %>
23
+ <%= render partial : "avo/partials/header" %>
24
24
</ div >
25
25
< div class ="flex-1 flex justify-center ">
26
26
< div class ="w-64 ">
31
31
32
32
< div class ="content p-8 flex-1 flex flex-col justify-between items-stretch <%= @container_classes %> ">
33
33
<%= yield %>
34
- <%= render_footer %>
34
+ <%= render partial : "avo/partials/footer" %>
35
35
</ div >
36
36
</ div >
37
37
</ div >
44
44
<% end %>
45
45
</ div >
46
46
47
- <%= render_scripts %>
47
+ <%= render partial : "avo/partials/footer" %>
48
48
</ body >
49
49
</ html >
Original file line number Diff line number Diff line change @@ -11,7 +11,11 @@ class EjectGenerator < ::Rails::Generators::Base
11
11
namespace "avo:eject"
12
12
13
13
TEMPLATES = {
14
- sidebar : "app/views/avo/sidebar/_sidebar.html.erb"
14
+ sidebar : "app/views/avo/sidebar/_sidebar.html.erb" ,
15
+ logo : "app/views/avo/partials/logo.html.erb" ,
16
+ header : "app/views/avo/partials/header.html.erb" ,
17
+ footer : "app/views/avo/partials/footer.html.erb" ,
18
+ scripts : "app/views/avo/partials/scripts.html.erb"
15
19
}
16
20
17
21
def handle
Load Diff This file was deleted.
Load Diff This file was deleted.
Load Diff This file was deleted.
Load Diff This file was deleted.
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments