-
-
Notifications
You must be signed in to change notification settings - Fork 3.3k
Add the ability to customize the footer. #4641
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
varyonic
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
My preference would be to enable use of a partial but I am fine with this.
timoschilling
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I agree with @varyonic, a partial is a better way.
|
what if this already works? ActiveAdmin.application.footer = proc { render_to_string partial: 'footer' }but I haven't check |
|
@blimmer, ping |
|
I haven't had time to look into a partial and am not sure my timeline on availability to look. If this solution isn't acceptable it might make sense to close this PR and open an issue to track that implementation. |
|
I mentioned preferring a partial, but I do think this is acceptable. |
|
Agreed - it seemed like the investigation / implementation of the partial was blocking from the requested changes indication on the PR |
|
I close this PR, it should be implemented as parial or proc |
|
@timoschilling I'm disappointed. Next time I won't suggest a preference when I approve. |
|
Agreed. This implementation is better than what we have now (which is no ability to customize the footer at all), IMO. |
let us discuss this again
Fivell
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
for me common scenario is put company copyrights to footer , that almost always in this format
Company name - start year - current year.
So I can't use and still need monkey-patch this because current year should be evaluated
docs/1-general-configuration.md
Outdated
|
|
||
| ## Footer Customization | ||
|
|
||
| By default, Active Admin displayed a "Powered by ActiveAdmin" message on every |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
...Active Admin displays...
| # == Footer | ||
| # | ||
| # By default, the footer shows the current Active Admin version. You can | ||
| # override the content of the fotter here. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
s/fotter/footer/
varyonic
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This PR supports using a proc.
By default, it will still default to the "Powered by Active Admin <version>", but this allows folks to customize that message.
7c16ae6 to
c30dd56
Compare
|
Fixed a couple of typos, squashed and force-rebased. |
Fivell
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
|
closes #4758 |
|
Maybe some can make a PR to add the proc support in the docs and the initializer template |
| @@ -0,0 +1,28 @@ | |||
| Feature: Site title | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
s/title/footer/
|
Agreed, though much of this was copied from Greg's original site_title where this is not documented either. |
|
This is a nice improvement, thanks Ben and friends! |
|
Ironically this was one of the topics of an old post by Philippe. |
By default, it will still default to the "Powered by Active Admin
<version>", but this allows folks to customize that message.We wanted to append additional environmental information to better understand bug reports from our internal customers. To accomplish this today, I created
app/admin/footer.rb, but it would be nice to set this as a configuration value.In determining how to do this with my app, I found several resources (stack overflow, gists, blog posts) which indicated to me that this would be a useful feature for people.