You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The code should be pretty simple. At the moment we don't have the theme on transifex so might have to just hard-code the Dutch in the view.
FOI Page
<% if public_body.has_tag?('foia_url') %> <% public_body.get_tag_values('foia_url').each do |tag_value| %> <%= link_to _('FOIA Page'), tag_value %><br><%end%><%end%>
To add the URL to the page, they'd just tag the authority like foia_url:https://www.example.com, replacing the URL with the appropriate link.
FOI Coordinator
In this case we want a fallback if the authority doesn't have one.
<% if public_body.has_tag?('woo_coordinator') %><span><%=_('This authority has a Woo Coordinator! ✅')%></span><br><%else%><span><%=_('This authority does not have a Woo Coordinator yet! ❌')%></span><br><%end%>
I don't think there's a need for a tag value; it's just a case of marking that the authority has the coordinator by applying the woo_coordinator tag.
The text was updated successfully, but these errors were encountered:
See https://groups.google.com/a/mysociety.org/g/alaveteli/c/XVHJyht0f30/m/2u1VBrYqAwAJ.
Essentially what's wanted is extra attributes to link to the body's FOI Page and FOI Coordinator (they're obliged to have one).
We could do this with tags, akin to how we use tags for custom external links on WDTK.
The code should be pretty simple. At the moment we don't have the theme on transifex so might have to just hard-code the Dutch in the view.
FOI Page
To add the URL to the page, they'd just tag the authority like
foia_url:https://www.example.com
, replacing the URL with the appropriate link.FOI Coordinator
In this case we want a fallback if the authority doesn't have one.
I don't think there's a need for a tag value; it's just a case of marking that the authority has the coordinator by applying the
woo_coordinator
tag.The text was updated successfully, but these errors were encountered: