Skip to content
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

Allow overriding of status_tag label #638

Merged

Conversation

felixbuenemann
Copy link
Contributor

There are cases, where you don't want the label of the status_tag, to be the same as its status, eg. to use translated labels or for rewording.

This patch adds a new option :label, that allows to override the label, without changing the class.

@mattvague
Copy link
Contributor

Thanks Felix, good idea. Can't merge this in until there are specs testing this behaviour though. Will be happy to merge this once there is.

@felixbuenemann
Copy link
Contributor Author

Thanks for reminding me of the specs, it also caught a bug in my code that's fixed now.

@felixbuenemann
Copy link
Contributor Author

@mattvague is this ready to merge now?

mattvague added a commit that referenced this pull request Oct 20, 2011
…rride

Allow overriding of status_tag label
@mattvague mattvague merged commit 9d6e3c8 into activeadmin:master Oct 20, 2011
@mattvague
Copy link
Contributor

Yup, haha sorry bud forgot about this one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants