Skip to content

Commit

Permalink
add logo
Browse files Browse the repository at this point in the history
  • Loading branch information
qinmingyuan committed Jan 15, 2025
1 parent d0cef76 commit 7af8ea2
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
Binary file added app/assets/images/org_logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 3 additions & 1 deletion app/views/admin/_org_admin.html.erb
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
<% if role_permit?(business: 'org', namespace: 'admin') %>
<div class="media">
<figure class="media-left">
<%# image_tag meta[0].logo, class: 'image is-64x64' if meta[0].logo.present? %>
<%= image_tag 'org_logo.png', class: 'image is-64x64' %>
</figure>
<div class="media-content">
<div class="content">
Expand All @@ -13,3 +14,4 @@
</div>
</div>
</div>
<% end %>
4 changes: 4 additions & 0 deletions lib/rails_org/engine.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,9 @@ class Engine < ::Rails::Engine
g.templates.unshift File.expand_path('lib/templates', RailsCom::Engine.root)
end

initializer 'rails_org.assets' do |app|
app.config.assets.paths << root.join('app/assets/images')
end

end # :nodoc:
end

0 comments on commit 7af8ea2

Please sign in to comment.