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

Manage offices url as a setting #1318

Merged

Conversation

ferblape
Copy link

This PR connects with #1315, and it moves the I18n key offices_url to a setting that can be stablished by an admin.

@ferblape ferblape force-pushed the 1315-manage-offices_url-as-setting branch from 55d31c6 to ca2370e Compare December 29, 2016 09:31
@@ -50,7 +50,7 @@
<ul>
<li>
<%= t("verification.letter.new.office",
office: link_to(t("verification.letter.new.offices"), t("verification.letter.new.offices_url"),
office: link_to(t("verification.letter.new.offices"), Setting['verification_offices_url'],
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please use setting['verification_offices_url'] instead.
There is a setting helper method to use in views and have the settings memoized per request.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok!

@kikito kikito merged commit 465a93f into consuldemocracy:master Jan 3, 2017
@ferblape ferblape deleted the 1315-manage-offices_url-as-setting branch January 6, 2017 08:58
mlovic pushed a commit to wairbut-m2c/consul that referenced this pull request Jul 10, 2018
…m-order

Fix random order for budget investments
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.

3 participants