mirror of https://github.com/zulip/zulip.git
139ebf387b
We currently have code to calculate the value of realm_icon_url, admin_emails and default_discount in two diffrent places. With the addition of showing confirmation links it would become three. The easiest way to deduplicate the code and make the view cleaner is by doing the calculations in template. Alternatively one can write a function that takes users, realms and confirmations as arguments and sets the value of realm_icon_url, admin_emails and default_discount appropriately in realm object according to the type of the confirmation. But that seems more messy than passing the functions directly to template approach. |
||
---|---|---|
.. | ||
analytics | ||
confirmation | ||
corporate | ||
tests | ||
two_factor | ||
zerver | ||
zilencer | ||
.gitignore | ||
404.html | ||
500.html |